A Fast and Accurate Analytic Method of Calculating Galaxy Two-point Correlation Functions

Chong-Chong He
7/14/2021
astro-ph.GAastro-ph.IM

Official code: chongchonghe/analytic-2pcf (2 stars, Python, BSD-2-Clause, last commit 2021-11-15).

Abstract

We have developed a new analytic method to calculate the galaxy two-point correlation functions (TPCFs) accurately and efficiently, applicable to surveys with finite, regular, and mask-free geometries. We have derived simple, accurate formulas of the normalized random-random pair counts $RR$ as functions of the survey area dimensions.

Show full abstract

We have also suggested algorithms to compute the normalized data-random pair counts $DR$ analytically. With all edge corrections fully accounted for analytically, our method computes $RR$ and $DR$ with perfect accuracy and zero variance in $O(1)$ and $O(N_{\rm g})$ time, respectively. We test our method on a galaxy catalogue from the EAGLE simulation. Our method calculates $RR+DR$ at a speed 3 to 6 orders of magnitude faster than the brute-force Monte Carlo method and 2.5 orders of magnitude faster than tree-based algorithms. For a galaxy catalogue with 10 million data points in a cube, this reduces the computation time to under 1 minute on a laptop. Our analytic method is favored over the traditional Monte Carlo method whenever applicable. Some applications in the study of correlation functions and power spectra in cosmological simulations and galaxy surveys are discussed. However, we recognize that its applicability is very limited for realistic surveys with masks, irregular shapes, and/or weighted patterns.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Analytic calculation of the two-point correlation functions.

22PythonJul 14, 20215 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{he2021fast,
  title  = {A Fast and Accurate Analytic Method of Calculating Galaxy Two-point Correlation Functions},
  author = {Chong-Chong He},
  year   = {2021},
  eprint = {2107.06918},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.06918}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.06918.svg)](https://codeofpaper.com/paper/2107.06918)

Discussion