Let be two independent -dimensional standard Gaussian vectors. Compute and as functions of . Why does the ratio tend to as , and how does this break distance-based methods like -NN?
Foundations, Curse of dimensionality
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can prove distance concentration analytically for Gaussian vectors and connect it to the failure of Euclidean nearest neighbours in high dimensions.
Key idea
The squared distance is a sum of independent -scaled terms, so its mean grows as while its standard deviation grows only as ; their ratio means all pairwise distances collapse to nearly the same value.
Steps
- Write the distribution of the difference vector: since and are independent , , so its coordinates are independent random variables.
- Compute the per-coordinate moments: write with . Then . Because has variance (from ), .
- Sum over the independent coordinates for :
- Take the relative fluctuation ratio:
- Interpret for -NN: in high dimensions with isotropic or noisy features, almost every pair of distinct points sits at Euclidean distance from every other point, with tiny relative separation. The nearest neighbour is barely closer than the farthest neighbour, so Euclidean distance loses discriminative power unless irrelevant dimensions are removed or the data lie on a low-dimensional manifold.
Common mistakes
- Writing instead of , forgetting that for and scaling by .
- Forgetting that has variance per coordinate rather than , which would give instead of for the mean squared distance.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Foundations: Suppose a feature has mean and variance , and each entry is missing independently with probability (MCAR). If missing entries are replaced by , what are the mean and variance of the imputed feature , how does this affect with a target , and why is adding a binary missingness indicator often better?
Next in Foundations: A colleague standardises all features using the mean and standard deviation of the entire dataset, selects the 20 features most correlated with the label , and then runs 5-fold cross-validation to tune and report the accuracy of a classifier. Is the resulting CV accuracy unbiased, how do you fix the pipeline, and how badly can full-dataset feature screening distort pure random noise?