Skip to content
nonconvexcard

High-Dimensional Geometry and Concentration of the Norm

Why a Gaussian vector lives on a thin shell, why random directions are nearly orthogonal, and why almost all of a sphere's volume sits near any equator.

High-Dim ProbabilityAdvanced⏱ 3 hours13 min readhigh dimensionnorm concentrationspherespherical caporthogonality
5 problems →

The norm of a random vector

PropositionThe expected norm of a Gaussian vector

Let X∼N(0,Id)X \sim \Ncal(0,I_d). Then E∥X∥22=d\E\norm{X}_2^2 = d exactly, and

d−1d  ≤  d−1  ≤  E∥X∥2  ≤  d,Var⁡(∥X∥2)≤1.\sqrt{d} - \frac{1}{\sqrt d} \;\le\; \sqrt{d-1} \;\le\;\E\norm{X}_2 \;\le\; \sqrt d, \qquad \Var\big(\norm{X}_2\big) \le 1 .
TheoremConcentration of the norm

Let X=(X1,…,Xd)X = (X_1,\dots,X_d) have independent, mean-zero coordinates with EXi2=1\E X_i^2 = 1 and ∥Xi∥ψ2≤K\norm{X_i}_{\psi_2} \le K. Then there is an absolute constant CC with

∥∥X∥2−d∥ψ2≤CK2.\Big\| \norm{X}_2 - \sqrt d \Big\|_{\psi_2} \le CK^2 .

Equivalently, P(∣∥X∥2−d∣≥t)≤2exp⁡(−ct2/K4)\P\big(\big|\norm{X}_2 - \sqrt d\big| \ge t\big) \le 2\exp\big(-ct^2/K^4\big) for all t≥0t \ge 0, with cc absolute. The bound does not depend on dd.

Key idea

Step 3 is where the dimension cancels. The squared norm has fluctuations of order d\sqrt d — that is the ordinary central-limit scaling for a sum of dd terms — and the square root map has derivative 1/(2d)1/(2\sqrt d) at the relevant point, so the fluctuations of the norm itself are of order d⋅1/d=1\sqrt d \cdot 1/\sqrt d = 1. Nothing deeper than the chain rule is happening, but the consequence is the defining phenomenon of the subject.

Run it: The norm of a Gaussian vectorThe distribution of ‖X‖₂ for X ~ N(0, I_d) as the dimension grows, against the √d prediction.

What this does not say

The theorem is about the norm, not about the coordinates. Each coordinate XiX_i is a perfectly ordinary N(0,1)\Ncal(0,1) variable, spread over the whole real line; nothing about it concentrates. The concentration is a property of the aggregate, and it requires independence across coordinates. Correlated coordinates — the normal case for real embeddings — can fail this badly: if all coordinates are equal, ∥X∥2=d∣X1∣\norm{X}_2 = \sqrt d|X_1| has fluctuations of order d\sqrt d.

Near-orthogonality

PropositionRandom directions are nearly orthogonal

Let u,vu, v be independent and uniform on the unit sphere Sd−1S^{d-1}. Then

E⟨u,v⟩=0,Var⁡(⟨u,v⟩)=1d,P(∣⟨u,v⟩∣≥t)≤2e−dt2/2.\E\ip{u}{v} = 0, \qquad \Var\big(\ip{u}{v}\big) = \frac1d, \qquad \P\big(|\ip{u}{v}| \ge t\big) \le 2e^{-dt^2/2}.
Run it: Embedding geometry and retrievalCosine similarity between random unit vectors in R^d, and the separation available to a retriever.

Spheres, caps and shells

TheoremMeasure concentration on the sphere

Let σ\sigma be the uniform probability measure on Sd−1S^{d-1} and fix a unit vector θ\theta. For t∈[0,1]t \in [0,1],

σ({u:⟨u,θ⟩≥t})≤e−dt2/2.\sigma\big(\{u : \ip{u}{\theta} \ge t\}\big) \le e^{-dt^2/2}.

In particular, for t=c/dt = c/\sqrt d the cap still carries a constant fraction of the measure, while for tt fixed the fraction is exponentially small in dd.

PropositionVolume concentrates in a thin shell

Let BdB^d be the unit ball in Rd\R^d and ε∈(0,1)\eps \in (0,1). The fraction of the volume of BdB^d lying at radius less than 1−ε1-\eps is exactly (1−ε)d≤e−εd(1-\eps)^d \le e^{-\eps d}. Consequently, all but an e−εde^{-\eps d} fraction of the volume lies in the shell of thickness ε\eps at the boundary.

Taking ε=5/d\eps = 5/d: over 99%99\% of the volume of the dd-dimensional unit ball lies within 5/d5/d of the surface. In R1000\R^{1000}, that is the outermost half-percent of the radius.

HeuristicThe curse and the blessing are the same phenomenon

Heuristic — a reasoning shortcut that predicts the right answer in the regimes discussed here. It is not a proof and can fail outside them.

Concentration is usually introduced as the "curse of dimensionality" and separately as the reason random projections work. They are the same statement seen from two sides.

The pessimistic reading: if all pairwise distances between nn random points concentrate around the same value 2d\sqrt{2d}, then "nearest neighbour" carries almost no information — the nearest and the farthest point are within a 1±O(log⁡n/d)1 \pm O(\sqrt{\log n/d}) factor of each other. This is the precise version of the failure of local methods discussed on the nearest neighbours page.

The optimistic reading: if every geometric quantity is this predictable, then a random linear map preserves it, because there is nothing left to vary. That is Johnson–Lindenstrauss.

What this does not say

Neither reading is a theorem about real data. Both assume the points are drawn independently from an isotropic distribution. Real data typically lies near a low-dimensional structure, in which case the relevant dimension is the intrinsic one and the concentration is correspondingly weaker. When nearest-neighbour search works well on a nominally 768768-dimensional embedding, it is because the data is not isotropic in R768\R^{768} — and quantifying that gap is an open practical problem, not a solved one.

Problems

Concentration of the norm — the transfer stepProof · Advanced · 30 min How many nearly-orthogonal directions fit in R^d?Proof · Advanced · 30 min Volume concentrates near the boundaryNumerical · Beginner · 15 min Simulate the measure of a spherical capCoding · Intermediate · 30 min Distance contrast in high dimensionProof · Advanced · 1 hour

References

These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.

Results stated on this page

Experiments

Problems (5)

All problems