Say I uniformly at random distribute $x = n^3$ (independent identically distributed) points in a ball of radius $r=1$ in $\mathbb{R}^3$.
What can be said about the expected maximum, minimum, and mean distance between the nearest neighbours of any given point, asymptotically as $n\to\infty$?
Trying to simulate these, I get:
Don't mind the "Theoretical Mean" value too much, that's really just for the slope. It's $\frac{1}{x} = \frac{1}{n^3}$ where $n$ is the number of points.
I'm getting:
Min Distance Fit:
Slope: -2.0084
Intercept: 1.0666
R²: 0.9336
Equation: y = 1.0666 * x^(-2.0084)
Mean Distance Fit:
Slope: -1.0253
Intercept: 0.9858
R²: 0.9987
Equation: y = 0.9858 * x^(-1.0253)
Max Distance Fit:
Slope: -0.8986
Intercept: 1.7097
R²: 0.9918
Equation: y = 1.7097 * x^(-0.8986)
So those are pretty good fits, but is there anything known about this in exact terms?
I know for just two points the answer for the mean ought to be $\frac{35}{36}\approx0.9722$ according to this answer https://math.stackexchange.com/a/167983/49989
The slope of the minimum is conspicuously close to -2.
I also saw there is this https://en.wikipedia.org/wiki/Complete_spatial_randomness which, if I did it right, implies that for completely uniformly distributed points of a given density I end up with
$$ P\left(r,\rho,N\right)=\frac{3^{1-N}\left(4\pi\rho\right)^N r^{3 N - 1}e^{-\frac{4}{3}\pi\rho r^3}}{\left(N - 1\right)!} $$
for the probability of the distance $r$ to the $N^\text{th}$ nearest neighbour given a density $\rho$.
I guess I could just substitute $\rho = \frac{3 n}{4 \pi R^3}$ for $n$ points in a volume of radius $R$ which gives me
$$ \frac{3 e^{-n\frac{r^3}{R^3}}\left(n\frac{r^3}{R^3}\right)^N}{r\left(N-1\right)!} $$
for which the expectation (over the domain $0\leq r\leq\infty$) should end up being
$$ \frac{R\ \Gamma\left(N+\frac{1}{3}\right)}{n^\frac{1}{3} \Gamma\left(N\right)} $$
and that does seem to be reasonably close to the result of the mean of the nearest neighbour, though it doesn't really agree: It predicts that, for a sphere of radius $R=1$ and $x=n^3$ points I get
$$ \frac{\Gamma\left(\frac{4}{3}\right)}{x}\approx\frac{\text{0.89298}}{x} $$
rather than
$$ \approx\frac{\text{0.9858}}{x^\text{1.0253}} $$
but I'm not sure whether that's within the error of the simulation. It sure doesn't look like it on the plot: Variance quickly becomes quite small for larger sets of points (at least for the mean fit) and the line is clearly slightly steeper than this analytical value.