[Math] the nearest-neighbor distribution in this picture

geometric-probabilitypr.probability

Consider the following process: sample $n$ points uniformly at random in the unit square, and for each point $i$, let $d_i$ be the distance from $i$ to its nearest neighbor. Finally, let $z_i = d_i\sqrt{n}$. My question is, what is known about the limiting distribution for the $z_i$'s as $n\to\infty$? Here is a histogram for $n=10^6$:

Nearest neighbor distribution

I am most interested in the first-order behavior near $z=0$. It looks like we have $f(z) \approx 0.14z$ or thereabouts but for all I know it might not even be linear.

Best Answer

If $n$ points are placed uniformly at random in the unit square, then the distribution is very close to a Poisson process with intensity $n$. Scaling the process by $\sqrt n$, it’s like a Poisson process with intensity 1. Conditioning a Poisson Process on the existence of a point at $x$, the remainder of the process is a Poisson process with the same intensity.

The probability that the nearest neighbor is more than $r$ away is the probability that a Poisson random variable with mean $\pi r^2$ takes the value 0, that is $e^{-\pi r^2}$. Differentiating, we see the density (which appears in your graph) is $2\pi re^{-\pi r^2}$.

The graph of this per wolfram alpha: enter image description here

Related Question