Probability

A sphere that is nearly all equator

On an ordinary globe, the band within a tenth of the radius of the equator holds a tenth of the surface. On a sphere in a thousand dimensions the same band holds 99.85% of it, and the band of a fifth holds all but about two parts in ten billion. Almost every point of a high-dimensional sphere is near every equator at once — and so any function that cannot change quickly is, over almost all of the sphere, almost constant.
17 min read 5 figures Order out of noiseSmall cases lie

Worth reading first: No single input can move it far · The median of many small averages.

The concentration inequalities met so far have been about sums and functions of many independent inputs: an average lands near its mean, and a function no single input can move far lands near its median. There is a geometric version of the same phenomenon, and it is the most striking of them because nothing in it is random at the start. It is a fact about the shape of a sphere in many dimensions, and it says that almost all of that shape is somewhere it seems it has no business being.

Take the unit sphere in nn dimensions — all points at distance one from the origin — and any equator: the points whose first coordinate is zero. Ask what share of the sphere’s surface lies within a distance ε\varepsilon of that equator. On the ordinary sphere, in three dimensions, the answer is exactly ε\varepsilon. In a thousand dimensions, with ε=0.1\varepsilon = 0.1, it is 99.85%99.85\%. The equator is not special — every equator gets the same share — so almost every point of a high-dimensional sphere is close to every equator at once. This is called concentration of measure, and it was first noticed, in essentially this form, by Paul Lévy around 1920.

The share of a sphere near its equator

How much of a sphere lies near its equator. Curves of the share of the sphere within ε of the equator against ε, for spheres in 3, 10, 100, 1000 dimensions: a straight line in three dimensions, a near step in a thousand.
Fig. 1 The share of a sphere’s surface lying within a distance ε of its equator — the points whose first coordinate is between −ε and ε — for spheres in 3, 10, 100 and 1000 dimensions. On the ordinary sphere it is exactly ε, Archimedes’ hat-box theorem. In 1000 dimensions the band of half-width 0.1 already holds 99.8% of the sphere, and the band of half-width 0.2 leaves out only 1.7×10101.7 \times 10^{-10} of it.

In three dimensions the curve is a straight line, and that is a famous theorem. Archimedes proved that a band cut from a sphere by two parallel planes has the same area as the band they cut from the cylinder wrapped round the sphere — the hat-box theorem — so the area of a band depends only on its width, and a band of width 2ε2\varepsilon holds a share ε\varepsilon of the sphere. The figure checks the three-dimensional curve against the straight line at every point it draws.

In ten dimensions the curve already bends: the band of half-width 0.10.1 holds 23%23\% of the sphere, not 10%10\%. In a hundred dimensions it holds 68%68\%, and in a thousand, 99.85%99.85\%. The band of half-width 0.20.2 holds 44%44\% in ten dimensions, 95.5%95.5\% in a hundred, and all but 1.7×10101.7 \times 10^{-10} in a thousand. As the dimension grows, the curve turns into a step: nothing, then everything, with the jump at a width of order 1/n1/\sqrt n.

One coordinate of a random direction

The band’s share is the chance that the first coordinate of a point chosen uniformly on the sphere is between ε-\varepsilon and ε\varepsilon. So the figure is really a picture of how one coordinate of a random unit vector is distributed.

One coordinate of a random unit vector. Density curves of the first coordinate of a uniform random point on the sphere in 3, 10, 100 dimensions, flat in three and increasingly concentrated near zero.
Fig. 2 The distribution of the first coordinate of a point chosen uniformly on the unit sphere in 3, 10 and 100 dimensions. In three it is flat on the interval from −1 to 1 — the hat-box theorem again — and in higher dimensions it becomes a peak around zero whose width shrinks like 1/n1/\sqrt{n}. In 100 dimensions it is within 0.8% of a normal curve with standard deviation 1/100=0.11/\sqrt{100} = 0.1.

In three dimensions it is flat: every value from 1-1 to 11 equally likely, which is the hat-box theorem in the language of probability. In nn dimensions its density is proportional to (1t2)(n3)/2(1 - t^2)^{(n-3)/2} — the factor records how much room the remaining n1n - 1 coordinates have when the first is fixed at tt — and as nn grows that factor falls off steeply away from zero. By a hundred dimensions the distribution is within 0.8%0.8\% of a normal curve with standard deviation 1/100=0.11/\sqrt{100} = 0.1.

The reason is a counting argument that needs no calculus. The squares of the nn coordinates of a unit vector add up to one. By symmetry they have the same average, so each has average square 1/n1/n, and each coordinate is typically of size 1/n1/\sqrt n. A random unit vector in a thousand dimensions has coordinates around 0.030.03 each — every coordinate is small, although together they make a vector of length one. That is the whole of the concentration near the equator: the first coordinate is small because every coordinate is.

The normal curve is not an accident either. A uniform random point on the sphere can be produced by drawing nn independent normal numbers and dividing by the length of the resulting vector. In high dimension that length is almost exactly n\sqrt n — it is the square root of a sum of many independent squares, which concentrates — so each coordinate is almost exactly a normal number divided by n\sqrt n. The sphere in high dimension is, to a very good approximation, a cloud of independent normal coordinates scaled down.

The same computation, read in physics, is the origin of the bell curve of molecular speeds. A gas of NN molecules with a fixed total energy has its 3N3N velocity components constrained to a sphere: the sum of their squares is fixed by the energy. If every point of that sphere is equally likely — the assumption of statistical mechanics — then any one velocity component is distributed like one coordinate of a random point on a sphere in 3N3N dimensions, and with NN in the billions of billions that is a normal distribution to any accuracy anyone could measure. The Maxwell distribution of velocities, which Maxwell derived in 1860 from assumptions about collisions, is the shadow of a very high-dimensional sphere on one of its axes; Henri Poincaré and Émile Borel made the observation precise, and it is sometimes called the Poincaré–Borel lemma. The bell curve that coin flips build and the bell curve a sphere casts are the same curve for the same reason: many small independent contributions, constrained or summed.

Two random directions are nearly perpendicular

A consequence that sounds more surprising than it is: pick two directions at random in high dimension, and they are almost certainly almost at right angles.

Two random directions are nearly at right angles. Histograms of the angle between two random unit vectors in 3, 30, 300 dimensions, increasingly concentrated at 90 degrees.
Fig. 3 The angle between two independent random directions, for 6,000 pairs in 3, 30 and 300 dimensions. In three dimensions the angles spread over every value, most often near 90° but with plenty near 0° and 180°. In thirty dimensions 65% of pairs are within ten degrees of a right angle; in three hundred, essentially all of them.

The cosine of the angle between two unit vectors is their dot product, and by symmetry it is distributed exactly like the first coordinate of a random unit vector: fix the first vector as the north pole, and the second one’s first coordinate is the cosine. So the cosine is of size 1/n1/\sqrt n, and the angle is within a few multiples of 1/n1/\sqrt n radians of 90°90°. In three dimensions only 17%17\% of random pairs are within ten degrees of perpendicular; in thirty, 65%65\%; in three hundred, essentially every pair.

That is why high-dimensional space has room for exponentially many nearly perpendicular directions — far more than nn exactly perpendicular ones — and it is the geometric fact behind the Johnson–Lindenstrauss lemma, which says that any set of NN points in high dimension can be projected onto a random subspace of dimension only about logN\log N with all their distances nearly preserved. Random directions do not interfere with each other, because they are almost orthogonal, and that is the resource random projections spend.

Functions that cannot change quickly are nearly constant

The equator is only one set, and the first coordinate only one function. The real content of concentration of measure is that the same thing happens for every function that cannot change quickly.

Call a function on the sphere 1-Lipschitz if it never changes by more than the distance moved: f(x)f(y)xy|f(x) - f(y)| \le |x - y|. The first coordinate is such a function. So is the distance to any fixed point, the largest coordinate, and the sum of the sizes of the coordinates divided by n\sqrt n. The theorem is that every such function, evaluated at a random point of a high-dimensional sphere, is within a few multiples of 1/n1/\sqrt n of its median with overwhelming probability — the same scale as for the first coordinate, whatever the function.

A function on a high-dimensional sphere is nearly constant. Histograms of the scaled sum of absolute coordinates of random points on spheres in 10, 100, 1000 dimensions, narrowing around the square root of two over pi.
Fig. 4 The sum of the sizes of the coordinates of a random point on the unit sphere, divided by n\sqrt{n} — a function that changes no faster than the point moves — for 3,000 random points in each of 10, 100 and 1000 dimensions. Its values bunch ever more tightly, with spread 0.062, 0.021 and 0.007, around 2/π=0.798\sqrt{2/\pi} = 0.798. On a sphere of high dimension any such function is nearly constant.

The function in the figure has nothing to do with any equator. Its values in ten dimensions spread over a range of several tenths; in a thousand dimensions they are within about 0.0070.007 of 2/π=0.798\sqrt{2/\pi} = 0.798, the value the normal-coordinate picture predicts, since each coordinate’s size averages 2/(πn)\sqrt{2/(\pi n)}. The spread shrinks by a factor of about three each time the dimension grows tenfold — like 1/n1/\sqrt n, as the theorem says. A function that is free to vary across the whole sphere in principle takes almost exactly one value on almost all of it.

This is the geometric twin of the bounded-differences inequality. There, a function of many independent inputs that no single input could move far was nearly constant; here, a function of a point on a sphere that no small movement can change much is nearly constant. Both are consequences of one phenomenon — many small independent influences, whether coordinates or inputs, averaging each other out — and in high dimensions a single point is already many small influences. It is also the reason the median of many small averages works: a median is a Lipschitz summary of its inputs, and the concentration of a count of failed blocks is the same averaging again.

Lévy’s inequality: fatten half and get everything

The sharpest form of the theorem is an isoperimetric statement, and it explains why the equator is the right thing to have looked at. On the ordinary plane, the circle encloses the most area for a given fence, and equivalently, among all sets of a given area, the disc grows least when fattened by a margin ε\varepsilon. Lévy proved the analogue on the sphere: among all subsets of the sphere of a given measure, a spherical cap grows least when fattened by ε\varepsilon. A hemisphere is a cap of measure one half, so every set holding half the sphere, fattened by ε\varepsilon, holds at least as much as a fattened hemisphere does — which is the band computation from the first figure, extended to one side.

Fatten half a sphere, and almost nothing is left over. The share of the sphere more than ε beyond the equator, exactly and as bounded by e^(−nε²/2), for spheres in 10, 100, 1000 dimensions, on a logarithmic scale.
Fig. 5 Start from a hemisphere and fatten it by ε: what is left over is the cap of points more than ε beyond the equator. Its exact share of the sphere (solid) against the bound enε2/2e^{-n\varepsilon^2/2} (dashed), for 10, 100 and 1000 dimensions, on a logarithmic scale. The bound holds at every point drawn, and the leftover falls like a Gaussian in εn\varepsilon\sqrt{n}.

The leftover is bounded by enε2/2e^{-n\varepsilon^2/2}, and the figure computes the exact leftover and confirms the bound at every point drawn. In a thousand dimensions, fattening a hemisphere by 0.20.2 leaves out less than 10910^{-9} of the sphere. Combined with isoperimetry this gives the Lipschitz theorem at once: for a 1-Lipschitz function ff with median MM, the set where fMf \le M holds half the sphere, its ε\varepsilon-fattening is contained in the set where fM+εf \le M + \varepsilon, and so ff exceeds M+εM + \varepsilon on a share at most enε2/2e^{-n\varepsilon^2/2}. Every half of a high-dimensional sphere, however it is shaped, is within a short distance of almost everything.

A ball that is almost all skin

The sphere’s surface concentrates near every equator; the ball it bounds concentrates in a second way, near its surface. Shrinking the ball’s radius by a factor 1ε1 - \varepsilon shrinks its volume by (1ε)n(1 - \varepsilon)^n, so the shell between radius 1ε1 - \varepsilon and 11 holds a share 1(1ε)n1 - (1 - \varepsilon)^n of the volume. In three dimensions a shell one hundredth thick holds about 3%3\% of the ball. In a thousand dimensions it holds 10.9910001 - 0.99^{1000}, which is 99.996%99.996\%. A high-dimensional orange is almost all peel.

The two concentrations together describe where a uniformly random point of a high-dimensional ball is: almost certainly within a hair of the surface, and almost certainly within a hair of every equator through the centre. There is no contradiction — the region near the surface and near a given equator is still most of the surface — but it means that the ball’s “interior”, in any intuitive sense, is empty. Nearly all of its volume, and nearly all of its surface, lives in a thin band that no picture of a ball in three dimensions suggests.

The cube, which is secretly round

The cube shows the same phenomenon in a form that looks paradoxical. The cube [1,1]n[-1, 1]^n has corners at distance n\sqrt n from its centre and faces at distance 11, so it seems very far from round: in a thousand dimensions the corners are thirty-two times further out than the faces. Yet a point chosen uniformly in the cube is at distance very nearly n/3\sqrt{n/3} from the centre — its squared distance is a sum of nn independent squares, each averaging 1/31/3, and a sum of many independent pieces concentrates. So almost all of the cube’s volume lies in a thin shell at radius n/3\sqrt{n/3}, far from both the faces and the corners.

The high-dimensional cube is best pictured as a ball of radius n/3\sqrt{n/3} with 2n2^n extremely thin spikes reaching out to the corners — spikes that are long but hold almost no volume. It is one reason that regular polytopes in high dimension are so few and so strange: the cube, the cross-polytope and the simplex are the only ones, and all three look, from the point of view of their volume, like spheres with a few peculiar extremities.

Why the curse of dimensionality is a blessing too

Concentration of measure is one face of what is usually called the curse of dimensionality. Most of a high-dimensional ball’s volume lies near its surface, most of a cube’s volume lies near its corners, and grids of points become hopelessly sparse — which is why grids fail and random points succeed at computing integrals in many dimensions. Random sampling works there precisely because of concentration: the average of a function over random points concentrates on the function’s mean, and it concentrates at a rate that does not depend on the dimension.

The same fact makes high-dimensional statistics both hard and possible. It is hard because distances lose contrast — when every pair of random points is at nearly the same distance, as they are on a high-dimensional sphere, “nearest neighbour” means little. It is possible because averages and Lipschitz summaries are extraordinarily stable, so that quantities computed from high-dimensional data can be trusted even when the data themselves are too spread out to picture. Vitali Milman, who turned Lévy’s observation into a central tool of geometry in the 1970s, called it the phenomenon that makes high-dimensional objects look simple from far enough away.

What the curves cannot show

They cannot show the sphere. A sphere in a thousand dimensions cannot be drawn; the figures draw distributions of numbers computed from it — a coordinate, an angle, a function value — and those distributions are what the theorems are about. The band shares are computed exactly from the density of one coordinate; the angles and function values are sampled, with the sample sizes stated.

They cannot show every Lipschitz function. The theorem is about all of them at once, with the same enε2/2e^{-n\varepsilon^2/2}; the figure shows one function. That the same bound holds for every set of half the sphere is Lévy’s isoperimetric inequality, quoted, and its proof — by symmetrisation, pushing mass towards a cap without increasing the fattened measure — is not drawn.

And they cannot show what happens away from the sphere. Concentration holds on the sphere, on the cube with the uniform measure, for Gaussian space, and for many other spaces, with different constants; it fails on spaces that are “thin” in some direction, and the figures show only the sphere, where the constants are exact.

Still open: the right constant for every convex body

On the sphere the concentration is completely understood. For a general convex body in high dimension — a cube, a simplex, the ball of some unusual norm — the question of how concentrated its volume is near its “equators” has a precise conjecture attached. The Kannan–Lovász–Simonovits conjecture, from 1995, says that every convex body, suitably normalised, is at least as concentrated as a Gaussian up to a universal constant, in the sense that its thinnest cut is controlled by its variance. After two decades of slow progress, Yuansi Chen proved in 2021 that the constant grows more slowly than any power of the dimension, and further work has since reduced it to a polylogarithm; whether it is bounded by a constant independent of the dimension, as conjectured, remains open.

Near every equator at once

On the unit sphere in nn dimensions, the share of the surface within ε\varepsilon of any equator tends to one as nn grows, and at a width of order 1/n1/\sqrt n. In three dimensions the share is exactly ε\varepsilon by Archimedes’ hat-box theorem; in a thousand, a band of half-width 0.10.1 holds 99.85%99.85\%. The reason is that every coordinate of a random unit vector is of size 1/n1/\sqrt n, and each is nearly normal.

The same concentration makes two random directions nearly perpendicular, makes every 1-Lipschitz function of a random point nearly constant, and, by Lévy’s isoperimetric inequality, makes every set holding half the sphere within a small distance of almost all of it, with the leftover bounded by enε2/2e^{-n\varepsilon^2/2}. It is why random sampling works in high dimension and why high-dimensional data can be summarised stably.

In high dimension, the typical is overwhelmingly typical — which is why a single random sample of a high-dimensional thing is often enough to know the whole.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Concentration of measureCurse of dimensionalityDimensionIsoperimetric inequalityLipschitz functionNormal distributionOrthogonalitySphereTail bound