Fast n-point correlation functions and three-point lensing application
Lucy Liuxuan Zhang, Ue-Li Pen
TL;DR
The paper introduces a fast, tree-based algorithm for computing two-point, three-point, and general n-point correlation functions using a balanced monopole binary tree, achieving roughly O(N log N) to O(N theta_c^-4 log terms) scaling in 2D. It details mainstream and accuracy-driven subdivision strategies, and provides explicit node-to-node computations for both scalar and spin-2 fields, including weak gravitational lensing applications. The method generalizes to n-PCF in k dimensions, with a configurable accuracy parameter theta_c, and demonstrates favorable speed, accuracy, and memory characteristics compared with brute force and FFT-based approaches. This framework enables full 3PCF analyses on catalogs with up to around a million galaxies and is poised for application to upcoming large-scale surveys in lensing and CMB studies.
Abstract
We present a new algorithm to rapidly compute the two-point (2PCF), three-point (3PCF) and n-point (n-PCF) correlation functions in roughly O(N log N) time for N particles, instead of O(N^n) as required by brute force approaches. The algorithm enables an estimate of the full 3PCF for as many as 10^6 galaxies. This technique exploits node-to-node correlations of a recursive bisectional binary tree. A balanced tree construction minimizes the depth of the tree and the worst case error at each node. The algorithm presented in this paper can be applied to problems with arbitrary geometry. We describe the detailed implementation to compute the two point function and all eight components of the 3PCF for a two-component field, with attention to shear fields generated by gravitational lensing. We also generalize the algorithm to compute the n-point correlation function for a scalar field in k dimensions where n and k are arbitrary positive integers.
