Why does the ratio between nearest and farthest neighbor distances converge to 1 in high dimensions?

Quick Overview

Asks why the nearest and farthest neighbors of a query end up at almost the same distance as the number of dimensions grows. Tests concentration of measure, how the mean and spread of a distance scale with dimension, the assumptions behind the result, and the effect of the distance norm.

Why does the ratio between nearest and farthest neighbor distances converge to 1 in high dimensions?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why does the ratio between nearest and farthest neighbor distances converge to 1 in high dimensions? Here the ratio is $D_{\max} / D_{\min}$, where $D_{\min}$ and $D_{\max}$ are the distances from a query point to its nearest and farthest points in a dataset. ```hint Write the distance as a sum Expand the squared Euclidean distance coordinate by coordinate, then ask how its mean and its standard deviation each grow with the number of dimensions d. ``` ```hint Relative or absolute Compare the gap between the farthest and nearest distance with the size of a typical distance. Which of the two controls the ratio? ``` ### What a Strong Answer Covers - Writes the squared distance as a sum of per-coordinate terms and derives how its mean and spread scale with d. - Connects the shrinking relative spread to the ratio approaching 1. - Distinguishes the relative contrast from the absolute gap between the farthest and nearest distance. - States the assumptions behind the result and says when real data escapes them. - Discusses how the choice of distance norm changes the effect. ### Follow-up Questions - What does this result mean for k-nearest neighbors and approximate nearest neighbor search on real embeddings? - How does the intrinsic dimension of a dataset differ from its number of features, and how could you estimate it? - Why do fractional $L_p$ norms keep more contrast, and what do you give up by using them? - What is hubness in high-dimensional nearest neighbor graphs, and how does it relate to distance concentration?

Overview: Asks why the nearest and farthest neighbors of a query end up at almost the same distance as the number of dimensions grows. Tests concentration of measure, how the mean and spread of a distance scale with dimension, the assumptions behind the result, and the effect of the distance norm.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why does the ratio between nearest and farthest neighbor distances converge to 1 in high dimensions? Here the ratio is Dmax⁡/Dmin⁡D_{\max} / D_{\min}, where Dmin⁡D_{\min} and Dmax⁡D_{\max} are the distances from a query point to its nearest and farthest points in a dataset.

What a Strong Answer Covers Guidance

  • Writes the squared distance as a sum of per-coordinate terms and derives how its mean and spread scale with d.
  • Connects the shrinking relative spread to the ratio approaching 1.
  • Distinguishes the relative contrast from the absolute gap between the farthest and nearest distance.
  • States the assumptions behind the result and says when real data escapes them.
  • Discusses how the choice of distance norm changes the effect.

Follow-up Questions Guidance

  • What does this result mean for k-nearest neighbors and approximate nearest neighbor search on real embeddings?
  • How does the intrinsic dimension of a dataset differ from its number of features, and how could you estimate it?
  • Why do fractional LpL_p norms keep more contrast, and what do you give up by using them?
  • What is hubness in high-dimensional nearest neighbor graphs, and how does it relate to distance concentration?