Efficient Computation of N-point Correlation Functions in D Dimensions

Oliver H. E. Philcox, Zachary Slepian
6/18/2021
21 citations
astro-ph.IMphysics.app-phphysics.comp-ph

No official code found. Best implementation: oliverphilcox/encore (22 stars, C, MIT, last commit 2025-09-04). 1 more below.

Abstract

We present efficient algorithms for computing the $N$-point correlation functions (NPCFs) of random fields in arbitrary $D$-dimensional homogeneous and isotropic spaces. Such statistics appear throughout the physical sciences, and provide a natural tool to describe stochastic processes. algorithms for computing the NPCF components have $\mathcal{O}(n^N)$ complexity (for a data set containing $n$ particles); their application is thus computationally infeasible unless $N$ is small.

Show full abstract

By projecting the statistic onto a suitably-defined angular basis, we show that the estimators can be written in a separable form, with complexity $\mathcal{O}(n^2)$, or $\mathcal{O}(n_{\rm g}\log n_{\rm g})$ if evaluated using a Fast Fourier Transform on a grid of size $n_{\rm g}$. Our decomposition is built upon the $D$-dimensional hyperspherical harmonics; these form a complete basis on the $(D-1)$-sphere and are intrinsically related to angular momentum operators. Concatenation of $(N-1)$ such harmonics gives states of definite combined angular momentum, forming a natural separable basis for the NPCF. As $N$ and $D$ grow, the number of basis components quickly becomes large, providing a practical limitation to this (and all other) approaches: however, the dimensionality is greatly reduced in the presence of symmetries; for example, isotropic correlation functions require only states of zero combined angular momentum. We provide a \textsc{Julia} package implementing our estimators, and show how they can be applied to a variety of scenarios within cosmology and fluid dynamics. The efficiency of such estimators will allow higher-order correlators to become a standard tool in the analysis of random fields.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
oliverphilcox/encoreCommunity22CMIT2025-09-04
oliverphilcox/NPCFs.jlCommunity17JuliaMIT2021-12-09
MIT

encore: Efficient isotropic 2-, 3- and 4-point correlation functions in C++ and CUDA

228C, CudaDec 14, 20201 years agoMIT
MIT

N-Point Correlation Functions in Julia

171JuliaSep 2, 20214 years agoMIT

Similar Papers

Cite this paper

@article{philcox2021efficient,
  title  = {Efficient Computation of N-point Correlation Functions in D Dimensions},
  author = {Oliver H. E. Philcox and Zachary Slepian},
  year   = {2021},
  eprint = {2106.10278},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10278}
}

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/2106.10278.svg)](https://codeofpaper.com/paper/2106.10278)

Discussion