Self-Similarity of $k$-Nearest Neighbor Distributions in Scale-Free Simulations

Lehman H. Garrison, Tom Abel, Daniel J. EisensteinarXiv 2021 · DOI · arXiv

TL;DR

This paper introduces the $k$-nearest neighbor probability distribution function ($k$NN-PDF) as a novel tool to assess the convergence of cosmological $N$-body simulations. By applying this method to scale-free simulations, the authors demonstrate that the $k$NN-PDF can quantify convergence in terms of particle numbers and densities, offering a more comprehensive view than traditional two-point statistics, especially in non-Gaussian regimes. They find that simulations with 32 particles or more show good convergence in halo-like regions, while fewer particles remain unconverged.

What Problem Does This Paper Address?

Cosmological $N$-body simulations are crucial for understanding the evolution of the universe, but they rely on discretizing a continuous physical system with a finite number of particles ($N$). This discretization introduces a "resolution limit" below which the simulation's accuracy degrades. Determining this limit is essential for interpreting simulation results. Traditional methods, like analyzing two-point correlation functions (2PCF), are effective for Gaussian regimes but struggle to capture the complex, non-Gaussian structures that emerge in the non-linear evolution of the universe, such as the dense cores of dark matter halos. Furthermore, parameters like softening length, introduced to prevent numerical artifacts, also influence resolution and require careful assessment. This paper aims to develop and apply a new statistical tool, the $k$NN-PDF, to better probe and quantify simulation convergence, particularly in these non-linear, non-Gaussian regimes.

Methods

The core of this paper is the application of the $k$-nearest neighbor probability distribution function ($k$NN-PDF). This statistic measures the probability distribution of the distance to the $k$-th nearest neighbor from a random point in the simulation volume. Unlike the 2PCF, the $k$NN-PDF is sensitive to higher-order correlations and can incorporate non-Gaussian information.

A key aspect of their methodology is the use of "scale-free simulations." These simulations are designed with a specific power-law power spectrum and cosmological parameters such that gravity's self-similar nature can be exploited. This self-similarity implies that the statistical properties of the simulation at small scales and early times should be a rescaled version of the properties at large scales and later times. By applying a self-similar rescaling to the $k$NN-PDF, the authors can compare different epochs and particle numbers to assess convergence. If the rescaled PDFs do not overlap, it indicates a breakdown in self-similarity and thus a lack of convergence.

The authors also employ "importance sampling" to improve the accuracy of their $k$NN-PDF measurements, particularly in the tails of the distribution (i.e., in very dense or very sparse regions). This technique biases the sampling of random points to regions of interest, reducing noise and allowing for more precise measurements with a finite number of random probes.

Datasets

The study utilizes a single scale-free $N$-body simulation with $N=1024^3$ particles and a spectral index $n_s = -2$. This simulation was run using the ABACUS $N$-body code. Full particle outputs were generated at 38 epochs, logarithmically spaced in scale factor. The analysis was performed on 10 selected epochs, with a factor of 2 in $M_{nl}$ (a measure related to the mass scale) between each epoch. For the $k$NN-PDF measurement, $4 \times 10^8$ random points were used per epoch.

Key Insights and Ideas

  • $k$NN-PDF as a Non-Gaussian Probe: The $k$NN-PDF is a powerful tool for assessing convergence beyond the limitations of two-point statistics, as it naturally incorporates information from higher-order correlations, which are crucial in the non-linear regime.
  • Self-Similarity as a Convergence Test: The concept of self-similarity in scale-free simulations provides a robust framework for testing convergence. Deviations from self-similar scaling in the $k$NN-PDF directly indicate where the simulation is no longer accurately representing the underlying continuous physics.
  • Particle Number is Key for Halos: Convergence in the high-density (halo) regime is strongly dependent on the number of particles. The study finds that 32 particles are sufficient for good convergence in halo cores, a significant improvement over what might be inferred from simpler metrics.
  • Softening Length's Limited Impact: While reducing the softening length does improve resolution slightly, it doesn't fundamentally change the particle number requirement for convergence. This suggests that particle number is a more dominant factor in resolving dense structures than softening alone.
  • Voids are More Challenging: The low-density (void) regime shows a narrower range of convergence and is more sensitive to the limitations of the analysis method, particularly the steepness of the PDF in these regions.

Key Results

  • Halo Convergence: Simulations with 32 particles or more show good convergence in halo-like regions (densities $\delta > 7000$). For 512 particles, convergence extends to $\delta \approx 10^5$.
  • Unconverged Regimes: Simulations with 16 particles or fewer are found to be unconverged in the halo regime.
  • Resolution Limit: The minimum resolved comoving length scale is found to be around $l/10$, where $l$ is the mean interparticle spacing.
  • Void Convergence: In the low-density regime, convergence is found for 16 particles and greater over a narrow range of densities ($\delta \approx -0.88$ to $-0.955$).
  • Softening Impact: Halving the softening length provides a modest improvement (10-30%) in resolved length scale, but does not enable convergence for fewer particles.

Limitations and Future Work

  • Void Analysis Limitations: The analysis of voids is limited by a narrow range of densities and the steepness of the $k$NN-PDF, which makes horizontal slicing less effective. The authors suggest that complementary analyses, such as vertical slicing, might be needed for a more thorough investigation of voids.
  • Particle Granularity: The analysis has a factor-of-two granularity in mass resolution. It's possible that a finer resolution between 16 and 32 particles could reveal intermediate convergence behavior.
  • Halo Internal Structure: The $k$NN-PDF, as used here, probes the spherically-averaged mass within a radius, not the internal structure of halos. Further work could explore how internal structure convergence relates to these findings.
  • Generalizability: While this study uses a scale-free simulation, future work could apply the $k$NN-PDF to more realistic cosmological simulations (e.g., $\Lambda$CDM) to assess convergence in those contexts.

Summary updated

Abstract

We use the $k$-nearest neighbor probability distribution function ($k$NN-PDF, Banerjee & Abel 2021) to assess convergence in a scale-free $N$-body simulation. Compared to our previous two-point analysis, the $k$NN-PDF allows us to quantify our results in the language of halos and numbers of particles, while also incorporating non-Gaussian information. We find good convergence for 32 particles and greater at densities typical of halos, while 16 particles and fewer appears unconverged. Halving the softening length extends convergence to higher densities, but not to fewer particles. Our analysis is less sensitive to voids, but we analyze a limited range of underdensities and find evidence for convergence at 16 particles and greater even in sparse voids.
BibTeX
@misc{garrison2021self,
  author = {Lehman H. Garrison and Tom Abel and Daniel J. Eisenstein},
  title = {{Self-Similarity of $k$-Nearest Neighbor Distributions in Scale-Free Simulations}},
  year = {2021},
  eprint = {2109.06991},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.06991},
}
Figure