For , the nearest neighbour distance is the th order statistic of . Each has continuous distribution function on . The probability integral transform makes independent and identically distributed random variables with the uniform distribution on . Monotonicity of gives , a uniform order statistic. Strict monotonicity is not needed at this stage.
For , counting observations below gives
Differentiating and cancelling consecutive terms gives the Beta distribution:
The Gamma function identity identifies this with the stated normalization. Ratios of Beta function integrals yield the moments
This is the probability content of a nearest neighbour ball identity, specialized to intervals on the real line.
Now write . The Lipschitz bound gives
Thus
Strict positivity of the probability density function makes continuous and strictly increasing from zero to one, so its inverse function is defined for every .
For the requested conditional calculation, suppose . At the preceding bound gives
Therefore , and substituting in the approximation proves the inverse probability content bound for a Lipschitz density:
The same argument works, without , on the meaningful local range with .
Since the nearest neighbour density estimator obeys , its conditional bound follows from the Beta distribution moments:
Hence, under the printed location condition,
The conditional inverse function bound also bounds , so the expected value in this calculation is finite under those formal hypotheses.
There is, however, a genuine flaw in the original PDF: the printed condition has no admissible points when is strictly positive on all of . A probability density function on all of cannot have Lipschitz constant zero, so . Its Lipschitz bound forces
Integrating this triangular lower envelope gives the Lipschitz density height bound
The inequality is strict because the probability density function has positive mass outside the finite interval. Thus everywhere. The last two conditional conclusions above are valid implications but vacuous as printed. Dropping strict positivity gives only , with equality forcing the entire probability density function to be the normalized triangular envelope. The local inverse bound does not justify replacing the printed condition by its reverse in the final expected value bound, since ranges over all of .
The intended monotone rearrangement is
Here is the quantile function of , agreeing with the ordinary inverse when is continuous and strictly increasing. With an atomless measure , its cumulative distribution function is continuous, and the probability integral transform makes uniform on for . Thus . The one-dimensional monotone rearrangement theorem says this transport map minimizes the cost for convex continuous , whenever the cost integrals are well defined. Values at exceptional endpoints may be chosen arbitrarily.
The printed assumptions omit an essential source condition. Invertibility of alone does not ensure an admissible transport map. For example, and a standard normal distribution satisfy the stated condition on , but is always a Dirac measure. There is no solution to the Monge optimal transport problem in this example. The boxed answer therefore requires the additional assumption that is an atomless measure, or an equivalent condition making the displayed map admissible. For arbitrary sources the always admissible monotone transport plan is , which need not be induced by a map.