High-Dimensional Probability
What does randomness look like in a thousand dimensions?
The part opens with Levy's equator: a point drawn uniformly from the sphere in a thousand dimensions has its first coordinate within 0.062 of zero with probability 95%, for any coordinate fixed in advance. From that picture it builds the non-asymptotic toolkit. Sub-Gaussian and sub-exponential variables and their Orlicz norms give Hoeffding, Bernstein and Chernoff bounds, set against exact binomial tails; thin shells, near-orthogonality and Johnson-Lindenstrauss follow. Lipschitz functions of Gaussians concentrate (Tsirelson, Ibragimov and Sudakov, by Herbst's argument), which gives the singular values of an n by p Gaussian matrix as root n plus or minus root p, covariance estimation at the rate of the square root of p/n, and a real correlation spectrum read against Marchenko-Pastur. Matrix Bernstein, Dudley's integral with Sudakov's minoration, and the comparison inequalities of Slepian, Sudakov-Fernique and Gordon lead to Gaussian widths and the escape through the mesh. The part turns there to Part 32's experiment: the statistical dimension of the l1 descent cone computes the Donoho-Tanner curve. It ends on the Board, where a Wald interval for a rare proportion covers 90.9% and the Hoeffding interval is valid and five times wider.
What you need. Part 43's measure-theoretic probability (moment generating functions, the CLT, large deviations), Part 48's chaining, and linear algebra (singular values, operator norm).
- Hook
- the sphere's equator
- Mathematics
- sub-Gaussian and sub-exponential tools, Gaussian and Talagrand concentration, ε-nets, matrix Bernstein, chaining, Slepian and Gordon, Gaussian widths, statistical dimension
- Built
- statkit.hdp
What you will be able to do
Bachelor's
- Explain the equator picture: why one coordinate of a random point on a high-dimensional sphere is about normal with variance 1/n, and why that does not hold for all equators at once.
Master's
- Compute Hoeffding, Bernstein and Chernoff bounds for a binomial mean and compare them with the exact tail.
- Predict the largest and smallest singular values of a Gaussian matrix and the operator-norm error of a sample covariance from n and p.
PhD
- Prove Gaussian concentration for Lipschitz functions by Herbst's argument and derive from it the bound on a Gaussian matrix's extreme singular values.
- Prove Dudley's bound and Sudakov's minoration, and state Slepian's, Sudakov-Fernique's and Gordon's inequalities with what each compares.
- Derive the phase transition of basis pursuit from Gordon's escape through the mesh and the statistical dimension of the descent cone.
Practice
- Choose between a Wald, a Hoeffding and an empirical Bernstein interval for a bounded mean, and report what each assumes and what it costs in width.
- Read a sample correlation spectrum against the Marchenko-Pastur edge and a permutation null without mistaking the count of large eigenvalues for a number of factors.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Bachelor's 7 min · Master's 10 min · PhD 51 min · Practice 10 min.
- 0The sphere's equatorBachelor's4 min
- 1Sub-Gaussian and sub-exponential variablesPhD4 min
- 2High-dimensional geometryPhD4 min
- 3Concentration of Lipschitz functionsPhD4 min
- 4Random matrices, non-asymptoticallyPhD5 min
- 5Matrix concentrationPhD4 min
- 6Chaining revisitedPhD6 min
- 7Gaussian comparisonPhD5 min
- 8Gaussian widths and the escape through the meshPhD4 min
- 9The statistical dimensionPhD5 min
- 10The Board: intervals from concentrationPractice4 min
- Recap, problems, and the road aheadAll tracks3 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.
The sphere's equatorBachelor's4 min
Choose a point uniformly at random on the surface of a sphere and look at one of its coordinates. In three dimensions that coordinate is spread evenly between minus one and one: Archimedes knew that the sphere's area is uniform in height. In a thousand dimensions it is within about six hundredths of zero with probability ninety-five percent. So almost all of a high-dimensional sphere lies in a thin band around its equator. And since nothing distinguishes one coordinate from another, the same is true for each fixed equator. This is not a simultaneous claim: every point is the pole of some equator. Paul Lévy noticed this in his 1922 lectures. It was the first instance of what is now called concentration of measure, and it is the key to this part.
Each disc stands for a sphere, and the shaded band is the region around the equator that holds ninety-five percent of the sphere's area. In three dimensions the band is almost the whole sphere, out to . In ten dimensions, out to . In a hundred, , and in a thousand, : the band narrows like one point nine six over root n. The sphere, in high dimensions, is a thin waist of an object.
The exact law of one coordinate: its density is proportional to one minus x squared, to the power n minus three over two. In three dimensions the power is zero and the density is flat, Archimedes' theorem. In ten and a hundred dimensions it is a bump that narrows. In a thousand dimensions it is almost exactly normal with variance one over n. And three hundred points simulated on the thousand-dimensional sphere sit exactly where the formula says, in a sliver around zero.
The same numbers as a table. The share of the sphere within a tenth of the equator is percent in three dimensions, percent in a hundred, and percent in a thousand. A fixed band swallows the whole sphere, and the band holding a fixed share shrinks like one over root n. Most of the sphere is near any equator fixed in advance. The equator cannot be chosen after seeing the point.
The sphere's equator is one face of a single phenomenon. A Gaussian vector in n dimensions has length root n, give or take about point seven, whatever n is: it lives on a thin shell. Two independent random directions are almost exactly perpendicular. A Lipschitz function of Gaussian inputs has dimension-free concentration when its Lipschitz constant stays bounded. And the singular values of a random matrix sit in a predictable window. This part makes each of these precise, non-asymptotically, with explicit constants, because Part fifty-two will need them at finite n and p.
Three promises are due. Part forty-three proved limit theorems with the dimension fixed; chapters one to three give tail bounds that hold at every n, in every dimension. Part forty-eight developed chaining and Talagrand's inequality for empirical processes; chapters six to eight turn them into general tools for Gaussian processes. And Part thirty-two showed basis pursuit recovering sparse vectors along the Donoho–Tanner curve, as an experiment; chapters eight and nine explain where that curve comes from.
Numbers: 95% half-width of x₁: 0.95 (n = 3), 0.60 (10), 0.196 (100), 0.062 (1,000), 0.0196 (10,000); mass within 0.1: 10% → 100%
1Sub-Gaussian and sub-exponential variablesPhD4 min
Sub-Gaussian and sub-exponential variables: tails you can count on, at every n. The workhorse of the subject is a norm that measures how heavy a tail is. The psi-two norm of a random variable is the smallest t such that the expectation of e to the X squared over t squared is at most two. Variables with a finite psi-two norm are called sub-Gaussian. Up to universal constants, three statements are equivalent: the norm is at most K, the tails fall like e to the minus t squared over K squared, and, after centering, the moment generating function is bounded by that of a normal with variance a universal constant times K squared. With the absolute value in place of the square we get the psi-one norm and sub-exponential variables, whose tails fall like e to the minus t over K. And the product of two sub-Gaussians is sub-exponential, which is why a chi-square variable, a sum of squared normals, has sub-exponential rather than Gaussian tails.
Some values, estimated from two hundred thousand draws and checked against exact formulas. The standard normal has psi-two norm root eight thirds, about ; a random sign has one over root log two, about ; the uniform with variance one lies between. The Laplace and the centred exponential have exponential tails: their psi-two norm is infinite, but their psi-one norm is finite. Bounded variables are always sub-Gaussian; heavy-tailed ones, like the t, are neither.
The two basic inequalities. For a weighted sum of independent, mean-zero sub-Gaussians, the general Hoeffding inequality: Gaussian tails, with the variance replaced by K squared times the squared length of the weights. For independent, mean-zero sub-exponentials, Bernstein's inequality has a Gaussian regime for small deviations and an exponential regime for large ones. Small deviations look Gaussian; large ones only exponential, because a single big summand can dominate. For bounded variables with small variance, Bernstein's classical form uses the variance itself rather than the range, which is everything for rare events.
The difference matters most for rare events. Two hundred trials of an event with probability two percent, and the chance that the observed rate exceeds two percent by t. In white, the exact binomial tail. In red, Hoeffding's bound, which only knows that each trial lies between zero and one, and is hopelessly loose: it treats a two percent event as if it were a coin toss. In purple, Bernstein's bound, which uses the variance, and is orders of magnitude tighter. In green, Chernoff's bound with the exact Kullback–Leibler exponent, tighter still. The more a bound knows about the variables, the closer it comes to the truth.
For a fair coin, at a tenth above a half, the exact tail is , Hoeffding gives and Bernstein : the bounds are upper guarantees, not approximations to the exact probability. For the rare event, at four points above two percent, the exact tail is , while Hoeffding gives . For a coin the variance is already as large as a bounded variable allows, so Hoeffding loses little. For rare events only a bound that sees the variance is any use, the same lesson as Bousquet's inequality in Part forty-eight.
Numbers: ψ₂(N(0, 1)) = √(8/3) = 1.63, ψ₂(Rademacher) = 1/√(log 2) = 1.20; Hoeffding vs Bernstein vs exact at p = 0.02, n = 200
2High-dimensional geometryPhD4 min
High-dimensional geometry: thin shells, right angles, and random projections. Take a standard Gaussian vector in n dimensions. Its squared length is a chi-square with n degrees of freedom: mean n, standard deviation root two n. Taking the square root, the length is root n plus a fluctuation whose standard deviation tends to one over root two, about point seven one, in the large-dimension limit. And the tails are Gaussian: the length is within t of root n except with probability e to the minus c t squared. So a Gaussian in a thousand dimensions does not fill a ball. Its mass sits on a thin spherical shell of radius about thirty-two, like a soap bubble, with almost nothing near the centre, even though the density is largest there.
The numbers. The expected length grows like root n, from in two dimensions to about a hundred in ten thousand, while its standard deviation stays near point seven one: at ten, at ten thousand, with simulation agreeing. Meanwhile the inner product of two independent random directions has standard deviation one over root n, and the angle between them crowds around ninety degrees, with a spread of degrees in a thousand dimensions.
The law of the angle between two random directions has density proportional to the sine of the angle to the power n minus two. In three dimensions any angle is possible. As the dimension grows the density squeezes towards ninety degrees, and in a thousand dimensions two random directions are perpendicular to within a couple of degrees. A union bound then gives exponentially many directions, e to the c epsilon squared n of them, all pairwise within epsilon of orthogonal. High-dimensional space has room for far more nearly perpendicular directions than it has dimensions, which is what makes random features and embeddings work.
These facts give the Johnson–Lindenstrauss lemma. Take N points in a huge dimension d, and map them by a random Gaussian matrix with k rows, scaled by one over root k. For a single pair, the squared distance after projection, relative to before, is a chi-square with k degrees of freedom over k, which is within one plus or minus epsilon except with probability e to the minus c epsilon squared k. A union bound over all pairs needs only k of order log N over epsilon squared: for two hundred points and thirty percent squared-distance distortion and at least ninety-five percent simultaneous success probability, dimensions. William Johnson and Joram Lindenstrauss proved this in 1984. The striking part is what is absent: the original dimension d does not appear at all.
Two hundred points in five thousand dimensions, arranged in two loose clusters, projected to k dimensions. In gold, the worst squared-distance distortion over all nineteen thousand nine hundred pairs. The purple line is the root-log-N-over-k rate proxy; it is not a confidence bound. At five hundred dimensions the worst pair is distorted by percent and percent of pairs are within ten. A tenfold reduction in dimension, with these measured squared-distance distortions, and by a matrix that never looked at the data.
Numbers: SD of ‖g‖: 0.655 (n = 2) → 0.707 (n = 10,000); angle SD 51.6° → 0.58°; JL with N = 200 in R⁵⁰⁰⁰: k = 500 worst squared-distance distortion 26%, 89% of squared-distance ratios within 10%; all-pairs 95% sufficient bound k = 1,208 for ε = 0.3
3Concentration of Lipschitz functionsPhD4 min
The general principle. A function of n variables is L-Lipschitz if moving the input a distance d moves the output at most L times d. Boris Tsirelson, Ildar Ibragimov and Vladimir Sudakov proved in 1976 that if the input is a standard Gaussian vector, the function exceeds its mean by t with probability at most e to the minus t squared over two L squared. Its variance is at most L squared, the Gaussian Poincaré inequality. What is remarkable is what is missing: the dimension n. The length of the vector, its largest coordinate, the operator norm of a random matrix, a supremum of linear forms with bounded coefficient norms: these are Lipschitz, and all concentrate around their means with Gaussian tails, in any dimension.
One proof, in outline, because it shows where the dimension goes. Leonard Gross's Gaussian log-Sobolev inequality of 1975 bounds the entropy of a squared function by twice its expected squared gradient. Applied to the exponential of lambda f over two, it becomes a differential inequality for the log moment generating function of f, Herbst's argument. Integrating it gives exactly the sub-Gaussian bound of chapter one, with variance proxy L squared. And the dimension never enters, because log-Sobolev inequalities tensorize: if each coordinate satisfies one, the product measure satisfies the same inequality with the same constant.
A Gaussian vector in a thousand dimensions, twenty thousand times. The purple curve is the concentration bound, valid for every one-Lipschitz function. The length of the vector is one: its upper tail, in blue, sits under the bound, and its variance, , is half the Poincaré bound of one. The largest coordinate is another: its tail, in gold, falls much faster, and its variance is only . The theorem is a guarantee, not a prediction: some Lipschitz functions concentrate far more than it promises, and the maximum is one of them, a phenomenon called superconcentration.
The maximum of n independent standard normals. Its mean grows like the root of two log n, but slowly: at ten, at ten thousand, always below the root of two log n. And its standard deviation shrinks, from to . The maximum of ten thousand Gaussians is very nearly a fixed number, which is why Part thirty-three's Bonferroni thresholds and Part fifty's universal thresholds work as well as they do.
The same concentration holds on the sphere of radius root n: Lipschitz functions of a uniform point concentrate with Gaussian tails, independent of the dimension. The first coordinate is one-Lipschitz, which explains the hook: on the unit sphere it is within a few over root n of zero. Lévy's proof rested on the spherical isoperimetric inequality: among all sets with a given area, spherical caps have the smallest boundary. So the set of points within a small distance of a half-sphere, the equatorial band thickened on one side, already contains almost all of the sphere, and any Lipschitz function, being nearly its median on that set, is nearly constant.
Beyond Gaussian inputs. For independent bounded coordinates, Michel Talagrand's convex-distance inequality of 1995 does the same job, for convex, one-Lipschitz functions: they are within t of their median except with probability four e to the minus t squared over four, whatever the dimension. Convexity cannot be dropped: there are non-convex Lipschitz functions of bounded coordinates that do not concentrate at this rate. And the same mechanism lies under Part forty-eight's Talagrand inequality for the supremum of an empirical process, which is a supremum of sample sums. Its general proof does not require convexity in the original observations.
Numbers: n = 1,000: Var‖g‖ = 0.49, Var max gᵢ = 0.125 (bound 1); E max: 1.54 (n = 10) → 3.85 (10,000)
4Random matrices, non-asymptoticallyPhD5 min
Random matrices, non-asymptotically: root n plus or minus root p, and what it says about covariances.
The operator norm of a matrix is the supremum of u transpose A v over unit vectors: a supremum of linear forms, so the methods of chapter three apply. The standard argument replaces the sphere by a finite epsilon-net, a set of points within epsilon of every unit vector. A volume argument shows one exists with at most one plus two over epsilon, to the p, points, and the norm on the net controls the norm everywhere. Each A v has a concentrated length, and a union bound over the exponentially many net points costs only a term of order p in the exponent. The result: for an n by p matrix with independent, mean-zero sub-Gaussian entries with a common norm bound, the operator norm is at most a constant times root n plus root p, with overwhelming probability.
Gaussian matrices with four hundred rows and a varying number of columns. Yehoram Gordon's inequality, from chapter seven, gives the white curves: the expected largest singular value is at most root n plus root p, and the smallest at least root n minus root p. The simulated largest values sit just under the upper curve: at a hundred columns, against thirty. The smallest sit just above the lower one: against ten. As square Gaussian matrices grow, their smallest singular value tends to zero; at a fixed size it is positive almost surely, and the matrix becomes nearly singular, which is why least squares fails when p approaches n.
What this means for covariance estimation. Two thousand observations of five hundred variables, all independent with variance one. The true covariance is the identity: every eigenvalue is one. The sample covariance's eigenvalues spread from to . They follow the Marchenko–Pastur law of 1967, whose support runs from one minus root gamma, squared, to one plus root gamma, squared, with gamma the ratio of variables to observations. Two thousand observations sounds like a lot, but with five hundred variables the sample covariance badly distorts the spectrum, inflating the largest eigenvalues and shrinking the smallest, with no signal at all.
The operator-norm error of the sample covariance, for a hundred variables. With a hundred observations it is , useless; with three thousand two hundred, . The simulation tracks the edge of the Marchenko–Pastur law, two root gamma plus gamma. The error is of order the root of p over n. So estimating a p by p covariance matrix to accuracy epsilon in operator norm needs about p over epsilon squared observations: linear in the dimension, even though the matrix has p squared entries. The non-asymptotic theory gives the same answer at every n.
Real data: the Wisconsin breast cancer measurements of Part thirty-four, five hundred and sixty-nine biopsies and thirty features of the cell nuclei. The Marchenko–Pastur band is an asymptotic reference for standardized independent noise, not a finite-sample confidence band. Its edges here are to . eigenvalues stand clearly above it. This suggests strong dependence, but crossing an asymptotic edge alone is not a calibrated test. The largest alone carries percent of the total variance, and the top five percent. Many eigenvalues fall below the band, because several features are nearly linear combinations of others, radius, perimeter and area, for instance. Random matrix theory supplies the null against which a spectrum is judged.
A check that needs no theory: shuffle each feature's values independently, keeping every empirical margin and breaking the rowwise associations, under an independent-column null. The shuffled data's largest eigenvalue is , inside the Marchenko–Pastur edge of , in this one shuffle. A single shuffle does not calibrate a test. The real largest eigenvalue is , about times the edge. To calibrate the comparison we also use three hundred ninety-nine independent column permutations. Their largest-eigenvalue distribution gives a global independence-null reference. This is related to Horn's parallel analysis; it does not prove a count of latent factors.
Numbers: n = 400: s_max 29.72 vs 30 and s_min 10.14 vs 10 at p = 100; MP with γ = 1/4: eigenvalues 0.26–2.24; cancer: 5 eigenvalues above the MP edge 1.51, top 13.28 (44%), top five 85%; one shuffled top 1.47; 399-shuffle maximum threshold 1.513 and global independence-null top-eigenvalue p = 0.0025
5Matrix concentrationPhD4 min
Matrix concentration: Bernstein's inequality, for sums of random matrices. Why sums of random matrices? Because many statistical objects are sums of independent random matrices. The sample covariance minus the truth is an average of the independent matrices x x transpose minus sigma. A random graph's adjacency matrix is a sum of independent edges, each contributing a rank-two matrix. Sampling entries, rows or columns of a large matrix, as in matrix completion and randomized linear algebra, produces such sums too. In each case we want the operator norm of the sum: Bernstein's inequality, but for matrices.
The setting: independent, symmetric, p by p random matrices, each with mean zero and operator norm at most L. Their matrix variance, v, is the operator norm of the sum of the expected squares, the exact analogue of the sum of variances. Joel Tropp's matrix Bernstein inequality of 2012, sharpening Rudolf Ahlswede and Andreas Winter's of 2002, says that the norm of the sum exceeds t with probability at most two p times the scalar Bernstein bound. In expectation: the root of two v log two p, plus a third of L log two p. The only cost of moving from numbers to matrices is the dimension factor p in front, which becomes a log p in the bound. The proof replaces the moment generating function by a trace exponential, and uses Lieb's concavity theorem of 1973 where the scalar proof uses independence.
A test: fifty-dimensional vectors drawn uniformly from the sphere of radius root fifty, so each has identity covariance and is bounded, and the error of their sample covariance. Matrix Bernstein's bound, in purple, with L equal to p over n and variance p minus one over n. The simulated error, in teal: with a hundred observations, with three thousand two hundred. The Marchenko–Pastur edge, in white, is the asymptotic answer, and it is very close. The matrix Bernstein bound holds at every sample size and is about times too large here, a modest price for a bound that needed only a norm bound and a variance.
Is the log p factor a weakness of the proof? Not in general. Take diagonal matrices, each a random sign in one random diagonal position. Their sum is diagonal. Conditional on the position counts, its diagonal entries are independent sign sums; the counts themselves are dependent. That is the maximum of p roughly Gaussian variables, of size the root of two log p: the log p factor is real. For matrices that are spread out in every direction, like the sphere's rank-one matrices we just simulated, the log p disappears, and the truth is Marchenko–Pastur's two root p over n. A major advance on when the log p can be reduced came in 2023, by Afonso Bandeira, March Boedihardjo and Ramon van Handel, whose theory of intrinsic freeness says when a random matrix behaves like the free, rotation-invariant model.
What it buys. For isotropic vectors whose squared norm is bounded by a constant times p, matrix Bernstein gives covariance estimation with order p log p over epsilon squared observations, for small epsilon. Spectral clustering, because a random graph's adjacency matrix is its expected value plus a matrix whose norm the inequality controls, so the top eigenvectors reveal the communities. Matrix completion, in Part fifty-two, where a few observed entries concentrate around the full matrix. And randomized numerical linear algebra, where a sample of columns preserves a matrix's spectrum.
Numbers: p = 50: E‖S − I‖ 1.73 (n = 100) → 0.25 (n = 3,200); bound about 1.6× the truth; MP edge close
6Chaining revisitedPhD6 min
Chaining revisited: the supremum of a Gaussian process, scale by scale. A centred Gaussian process indexed by a set T, with its canonical metric: the distance between two indices is the standard deviation of the difference of their variables. The expected supremum turns out to be a purely geometric property of T in this metric. For N variables of standard deviation at most sigma, the union bound gives sigma times the root of two log N. But when the variables are strongly correlated, as at neighbouring times of a continuous process, the union bound counts nearly identical variables as if they were independent, and badly overestimates.
Chaining, as in Part forty-eight. Approximate each index t by its nearest point in a net at scale two to the minus k, for every k. Then the variable at t is a telescoping sum of links between successive approximations. At level k there are at most the square of the net's size of distinct links, each with standard deviation of order two to the minus k, so a union bound at each level costs two to the minus k times the root of the log of the net's size. Coarse levels have few long links; fine levels many short ones. Adding the levels gives Richard Dudley's entropy integral of 1967: the expected supremum is at most a constant times the integral of the root log covering number.
An example: Brownian motion observed at N equally spaced times on the unit interval. Its canonical distance is the root of the time difference, so an epsilon-net needs about one over epsilon squared points. The union bound, in red, grows without limit: at ten thousand points. The simulated expected maximum, in blue, levels off at the root of two over pi, , the exact answer from the reflection principle. The entropy-rate integral, in purple, computed down to the grid's resolution, also levels off, at the root of pi over two, , before a theorem constant and covering-number discretization corrections. This truncated rate integral alone is not a certified finite-grid upper bound. Chaining sees that the maximum of a continuous process is finite; a single-scale union bound cannot.
A lower bound in the other direction. Suppose T contains N points that are pairwise at least epsilon apart in the canonical metric. Vladimir Sudakov proved in 1969 that the expected supremum is then at least a constant times epsilon times the root of log N: Epsilon times the entropy integrand is a lower bound at each scale. The proof compares the process with independent normals of variance epsilon squared over two, using the Sudakov–Fernique expectation comparison from the next chapter: separated variables are less correlated, and less correlated variables have a larger maximum. For a thousand points one unit apart, the expected supremum is at least . So Dudley's integral is an upper bound and the largest epsilon times its integrand a lower bound; how far apart they can be is the next question.
Dudley's integral is not always sharp. The standard counterexample is an ellipsoid with axes one over root k. The supremum of the Gaussian process over it is the length of a weighted Gaussian vector, about the root of the sum of the squared axes, which grows like the root of log p: at ten dimensions, at ten thousand. But the covering numbers of this ellipsoid make Dudley's integral grow like log p itself. So the ratio between the bound and the truth grows without limit. The integral treats every scale as if it were spread over all of T, when the set is thin in most directions.
The fix, in a glimpse: generic chaining. Instead of integrating covering numbers, choose a sequence of sets, the k-th with at most two to the two to the k points, and measure each point's distances to them. The first net has exactly one point. Talagrand's gamma-two functional is the best possible worst-case sum for a separable process with the required metric regularity. Xavier Fernique proved the upper bound in 1975, and Michel Talagrand proved in 1987 that it is also a lower bound: the expected supremum of a Gaussian process equals gamma two up to universal constants. The only change from Dudley is that the sum over scales is taken for each point separately before the supremum, so the sets can be fine where the set is large and coarse where it is thin. The moral: the size of a Gaussian supremum is a purely geometric quantity, known exactly up to constants. Talagrand received the Abel Prize in 2024, in part for this theorem.
Numbers: Brownian grid max 0.80 = √(2/π); union bound 4.29 at N = 10⁴; entropy-rate integral → √(π/2) = 1.25, without a theorem constant or covering discretization correction; ellipsoid aₖ = 1/√k: E sup 1.67 → 3.11 vs log p 2.3 → 9.2
7Gaussian comparisonPhD5 min
Gaussian comparison: less correlated means a larger maximum. David Slepian, at Bell Labs in 1962, asked how the correlations of Gaussian variables affect their maximum. Take two centred Gaussian vectors with the same variances. If every pairwise correlation of X is at most the corresponding correlation of Y, then X's maximum is stochastically larger: it exceeds every threshold with at least as much probability. In particular its expected maximum is at least as large. The proof interpolates between the two vectors and differentiates; Gaussian integration by parts turns the derivative into a sum of covariance differences, each with a known sign.
A thousand standard normals sharing a common correlation rho, built from independent ones plus a shared component. Independent, their expected maximum is . The shared component adds nothing to the maximum on average, so the expected maximum is the root of one minus rho times the independent value: the white curve, matched by simulation. At correlation one half, two variables are exactly one unit apart in the canonical metric, so this is the case of Sudakov's bound, which the purple line shows is attained: . Slepian's lemma in one picture: as the correlation rises, the maximum falls, all the way to a single normal's mean of zero.
Sudakov and Fernique removed the condition of equal variances. If every increment of X is at least as large as the corresponding increment of Y, then X's expected maximum is at least Y's. Only distances matter, which is why the supremum is a property of the canonical metric. Sudakov's minoration follows at once: on an epsilon-separated set, the increments are at least those of independent normals with variance epsilon squared over two. So does a contraction principle: a one-Lipschitz map between Euclidean index sets can only shrink the Gaussian expected supremum. Rademacher contraction is a separate theorem with its own conditions.
Yehoram Gordon extended the comparison in 1985 to min-max quantities, minimum over one index of a maximum over another. The smallest singular value of a matrix is such a quantity. Compare u transpose G v, for an n by p standard Gaussian matrix G, u on the p-dimensional unit sphere and v on the n-dimensional unit sphere, with the much simpler process built from two independent Gaussian vectors. Their increments satisfy Gordon's conditions, so the min-max of the first is at least that of the second. Evaluating the simple one gives the expected smallest singular value at least root n minus root p, and Slepian gives the largest at most root n plus root p: chapter four's white curves, exact bounds at every n and p.
The numbers behind chapter four's picture. For every number of columns, the simulated largest singular value lies below root n plus root p, and the smallest above root n minus root p: at four hundred columns, the floor is zero, and the simulated smallest is . Gordon's bounds hold for the expectation. The singular values are one-Lipschitz functions of the matrix's entries, so chapter three's concentration puts each within a constant of its mean, with Gaussian tails.
A modern sharpening. Mihailo Stojnic noticed in 2013 that under compactness, continuity and convex-concave structure, Gaussian min-max comparison controls both tails, with probability factors of two. It is not equality of the two random problems. Christos Thrampoulidis, Samet Oymak and Babak Hassibi turned this into the convex Gaussian min-max theorem of 2015: a min-max involving a Gaussian matrix behaves like the much simpler one built from two Gaussian vectors. Since the lasso and many other estimators are such min-max problems, their exact risk, when p and n grow in proportion, can be read off from a problem in two scalar variables. Comparison inequalities give not just bounds but exact limits, which is the subject of Part fifty-nine.
Numbers: 1,000 exchangeable normals: E max 3.24 √(1 − ρ); ρ = 1/2 attains Sudakov's 2.29
8Gaussian widths and the escape through the meshPhD4 min
The Gaussian width of a set T is the expected supremum of the Gaussian process indexed by T: the largest inner product of a random Gaussian direction with a point of T. Everything in the last two chapters applies to it. Geometrically, it is the average half-width of T measured along a random direction, scaled by the mean length of a standard Gaussian vector, asymptotic to root p. The Euclidean ball has width about root p. The l-one ball, the cross-polytope, has width only about the root of two log two p, because a random direction is nearly orthogonal to all of its corners at once. For a cone, the squared width of its intersection with the sphere acts as its effective dimension: how many dimensions the cone really occupies.
Exact widths, by quadrature. The Euclidean ball's grows like root p: in ten dimensions, a hundred in ten thousand. The cross-polytope's grows only like the root of log p: in ten thousand dimensions, a little under the root of two log two p. That is the geometric fact under all of sparse recovery. In ten thousand dimensions, the l-one ball is, on average over directions, about twenty-five times thinner than the Euclidean ball it sits inside, though both reach the same distance along the coordinate axes.
The question the widths answer. We take m Gaussian measurements of a p-dimensional vector with only s non-zero entries, with fewer measurements than unknowns. Basis pursuit, from Part thirty-two, returns the solution of the equations with the smallest l-one norm. It recovers the truth exactly if and only if the null space of A meets the descent cone only at zero. The descent cone is the set of directions in which the l-one norm does not increase from the truth. If some null-space direction lay in it, moving along it would keep the equations satisfied and not increase the norm, and the truth would not be the unique minimizer.
The picture, drawn in the plane with the SphereShell. The gold region is the descent cone, and its intersection with the sphere is a cap. The null space of a Gaussian matrix is a uniformly random subspace. If it passes the cone by, basis pursuit recovers the vector exactly. If it cuts through, recovery fails. In two dimensions a random line hits a quarter-circle cone half the time. In high dimensions the cap is an exponentially small part of the sphere, chapter two's geometry again, and the question becomes how large the subspace can be and still miss it.
Yehoram Gordon answered it in 1988 with his min-max comparison: the escape through the mesh. For a compact subset T of the sphere, a uniformly random subspace of codimension m misses T with high probability when its width lies sufficiently below the mean length of an m-dimensional Gaussian vector. The gap sets the probability bound. For the descent cone of the l-one norm at an s-sparse vector, the squared width is at most about two s log of p over s, so that many measurements suffice, as Venkat Chandrasekaran, Benjamin Recht, Pablo Parrilo and Alan Willsky showed in 2012. For closed convex descent cones, the next chapter supplies a converse with a finite-dimensional transition window. There is no such converse for every arbitrary subset of the sphere.
Numbers: w(B₂) = 3.08 → 100.0; w(B₁) = 1.88 → 4.02 for p = 10 → 10,000
9The statistical dimensionPhD5 min
The statistical dimension: the Donoho–Tanner curve, explained. In 2014, Dennis Amelunxen, Martin Lotz, Michael McCoy and Joel Tropp defined the statistical dimension of a convex cone: the expected squared length of a Gaussian vector's projection onto it. For a subspace of dimension k it is exactly k, so it extends the notion of dimension to cones. It is within one of the squared Gaussian width of the cone's intersection with the sphere. Their approximate kinematic formula says that a random subspace of codimension m misses the cone with high probability when m exceeds the statistical dimension by a multiple of root p, and hits it when m falls short by as much. A transition of width root p, controlled around the statistical dimension. This does not assert an exact fifty-percent crossing at finite p.
For the l-one descent cone, the statistical dimension has a formula, accurate up to a small error term: the smallest expected squared distance from a Gaussian vector to a scaled copy of the subdifferential of the l-one norm at the truth. The subdifferential is the set of vectors equal to the signs on the support and between minus one and one elsewhere. The distance splits by coordinate: on the support, the distance from g to plus or minus tau; off it, the amount by which g exceeds tau in absolute value, which is soft thresholding. Minimizing the expectation gives a computable upper bound on the statistical dimension. The exact dimension instead averages the per-draw minimum; interchanging minimum and expectation creates a gap.
The test, in a hundred dimensions. For each sparsity and each number of measurements, twenty random problems solved by basis pursuit. Green squares were always recovered exactly; red ones never. Part thirty-two drew this picture as an experiment. The gold curve is the deterministic infimum-of-expectations upper proxy, computed without simulation. At ten non-zero entries it is , and the empirical success rate first passes one half at measurements. With only twenty trials per square, the empirical crossing is coarse and uncertain. The upper proxy tracks the transition; it is not an exact finite-p fifty-percent threshold.
A check of the formula. For each sparsity, the deterministic upper bound from the formula, and the simulated expected squared distance with the best threshold chosen for each draw: against at ten. The per-draw minimization estimates the actual statistical dimension, with a reported Monte Carlo standard error; the deterministic formula is an upper bound. The familiar rate of two s log of p over s has the right shape, but it overshoots most for the sparsest problems: at ten, it is , against an upper proxy of . Only when s is a large fraction of p does it fall below, where its approximations no longer apply.
The recipe works for any convex regularizer. For a low-rank matrix recovered by minimizing the nuclear norm, the statistical dimension is at most three r times the sum of the dimensions minus r, a small multiple of the number of free parameters in a rank-r matrix. For a vector of signs recovered by the l-infinity norm, it is exactly half the dimension. For separating two superposed signals, each with its own regularizer, randomly oriented demixing succeeds with high probability when the sum of the statistical dimensions is below the ambient dimension by a sufficient finite-dimensional margin. The number of measurements a convex method needs is the statistical dimension of its descent cone, a single geometric number that can be computed before any data are collected.
Is the phase transition a Gaussian accident? David Donoho and Jared Tanner tested it in 2009 on matrices of random signs, random Fourier rows and many other ensembles, and found closely related transitions in the tested regimes; structured matrices require separate arguments. Samet Oymak and Joel Tropp proved in 2018 that the location of universality holds under symmetry, normalization, moment and nondegeneracy assumptions in the theorem, in an asymptotic regime. Structured measurement matrices, like the partial Fourier matrices of MRI scanners, follow it closely in practice. But the guarantee is for random designs: a coherent or adversarial matrix can need far more measurements.
Numbers: p = 100: upper proxy = 6.1 (s = 1), 32.9 (s = 10), 75.0 (s = 40); half-success at m = 35 for s = 10; exact-per-draw simulated δ = 32.211 (MCSE 0.093, 10,000 draws) vs upper proxy 32.879; 20 trials per recovery square, not an exact finite-p half-success threshold
10The Board: intervals from concentrationPractice4 min
The Board: intervals from concentration, valid at every n, and what that costs. Three intervals for a probability from n yes-or-no outcomes. The Wald interval of Part eleven uses the central limit theorem, and so is only asymptotically right. Inverting Hoeffding's inequality from chapter one gives an interval whose coverage is guaranteed at every sample size for independent observations bounded in zero to one, whatever the probability, but whose width ignores the variance. Andreas Maurer and Massimiliano Pontil's empirical Bernstein interval of 2009 uses the sample variance, with a correction for having estimated it, and keeps the guarantee. The trade: guarantees that hold at every n cost width, and using the variance buys some of it back when the variance is small.
Their half-widths with two hundred observations, as a function of the observed sample proportion. The unbiased sample variance is used for empirical Bernstein. Wald's, in red, shrinks to for a rare event with probability two percent. Hoeffding's, in purple, is whatever the probability: five times wider for the rare event. The empirical Bernstein interval, in green, adapts to the variance, at two percent, but pays for its constants near one half. It is the narrower of the two guaranteed intervals below a probability of about .
An honest comparison. With four successes in two hundred trials, the Wald interval runs from about zero to . The exact Clopper–Pearson interval of Part eleven runs from to , and is valid at every n too. The empirical Bernstein and Hoeffding intervals are wider still. For a single Bernoulli mean, where the exact law is the binomial, the exact interval beats both bounds. Concentration earns its keep where no exact law is available: for sums of random matrices, suprema over function classes, and confidence sequences, which is to say, for most of modern statistics.
Concentration has one more gift. A confidence sequence is a sequence of intervals that covers the truth at every sample size simultaneously, with probability ninety-five percent. The crude way is a union bound over sample sizes, spending a smaller error rate at each, which puts a log n inside the square-root width. The sharp way uses Ville's inequality of 1939: a nonnegative martingale starting at one exceeds one over alpha with probability at most alpha, ever. Part forty-four's betting paths are such martingales. The payoff is that an analyst may look at the data as often as they like and stop whenever they choose, with the confidence-sequence guarantee. The intervals pay for this through their width: the peeking problem of Part thirty-five, solved by concentration.
What the theory says about practice. A bound that holds at every sample size protects you exactly where the central limit theorem has not yet arrived, as with rare events. In high dimensions, sample covariance spectra are spread out even when there is no signal at all, so a spectrum must be compared with a null, from Marchenko–Pastur or from shuffling. The maximum of many Gaussians is nearly a constant, so root two log p identifies the maximum scale, while a finite-sample error guarantee still requires calibration. And the number of measurements a convex method needs can be computed before any data are collected.
Numbers: Wald 90.9% at p = 0.02; Hoeffding half-width 0.096 vs Wald 0.019; 4/200: Clopper–Pearson [0.0055, 0.0504]
Recap, problems, and the road aheadAll tracks3 min
Part fifty-one in eleven lines. Lévy's equator. Sub-Gaussian and sub-exponential tails. Thin shells and the Johnson–Lindenstrauss lemma. The concentration of Lipschitz functions. Random matrices without asymptotics, Marchenko–Pastur, and a real covariance spectrum judged against it. Matrix Bernstein. Chaining by Dudley, Sudakov's lower bound and generic chaining. Gaussian comparison by Slepian, Fernique and Gordon. Widths and the escape through the mesh. The statistical dimension, which explains the phase transition of sparse recovery. And intervals from concentration on the Board.
A promise for the next part. This one described how random vectors, matrices and processes behave in high dimension. It fitted no models: it was probability, not yet statistics. Part fifty-two puts these tools to work on estimation with more parameters than observations, where they become the proofs of the lasso's rates, of covariance estimation and of matrix completion.
Where it comes back. Part fifty-two proves that random designs satisfy restricted eigenvalue conditions and derives the lasso's rate, and studies sparse PCA against the spiked covariance model, to which Part fifty-nine returns. Part fifty-four uses Rademacher complexity and contraction for learning theory. Part fifty-eight builds confidence sequences from Ville's inequality. And Part fifty-nine studies estimators when p and n grow together, where Marchenko–Pastur is the starting point.
Six problems, with full solutions in the README. Hoeffding's lemma; the sphere's coordinate; Johnson–Lindenstrauss for one pair; three Lipschitz functions; the exchangeable maximum; and two statistical dimensions. Pause here if you want to try them.
The books this part follows: Vershynin's High-Dimensional Probability, Wainwright's chapters two to six, Boucheron, Lugosi and Massart, Ledoux, Tropp's matrix concentration, and Talagrand; with the papers from Lévy to Amelunxen, Lotz, McCoy and Tropp.
Fifty-one parts of sixty-five. In high dimensions, randomness becomes predictable. A random point sits on the equator, a random vector on a thin shell, a random matrix has expected extreme singular values bounded by root n minus root p and root n plus root p, with random deviations around those expectations, and the maximum of a million Gaussians is very nearly a fixed number. That predictability is what makes statistics with many parameters possible at all. Next, Part fifty-two: high-dimensional statistics.
Where it goes next. These are the proofs of Part 52: the maximum of p Gaussians sets the lasso's penalty, Gordon's inequality gives restricted eigenvalues, matrix Bernstein drives matrix completion. Rademacher complexity and contraction return in Part 54, confidence sequences in Part 58, Marchenko-Pastur and the convex Gaussian min-max theorem in Part 59; Problem 10 of the qualifying exam (Part 55) is a matrix Bernstein bound.
Key results
The part's results in one place, for revision.
Try it
Lab 51 · Concentration in high dimensions: the equator, the shell, and root n plus or minus root p
Sample points uniformly on spheres of growing dimension and check the mass of the exact 95% equatorial band; check that the norm of a Gaussian vector has standard deviation near 0.707 in every dimension; and compare the extreme singular values of n x p Gaussian matrices with Gordon's bounds.
python -m videos.stats.labs 51
needs numpy, scipy, matplotlib · download lab51.py ·
source on GitHubn = 3: 95% half-width of one coordinate 0.9500 (1.96/sqrt(n) = 1.1316) simulated mass 0.949
n = 10: 95% half-width of one coordinate 0.6021 (1.96/sqrt(n) = 0.6198) simulated mass 0.948
n = 100: 95% half-width of one coordinate 0.1956 (1.96/sqrt(n) = 0.1960) simulated mass 0.951
n = 1000: 95% half-width of one coordinate 0.0620 (1.96/sqrt(n) = 0.0620) simulated mass 0.951
n = 2: sd of ||g|| 0.6560 exact 0.6551 (mean 1.25)
n = 100: sd of ||g|| 0.7053 exact 0.7062 (mean 9.97)
n = 10000: sd of ||g|| 0.7077 exact 0.7071 (mean 100.00)
400 x 25: mean largest / smallest singular value 24.50 / 15.52 Gordon: at most 25.00, at least 15.00
400 x 50: mean largest / smallest singular value 26.37 / 13.23 Gordon: at most 27.07, at least 12.93
400 x 100: mean largest / smallest singular value 29.48 / 10.28 Gordon: at most 30.00, at least 10.00
400 x 200: mean largest / smallest singular value 33.82 / 6.06 Gordon: at most 34.14, at least 5.86
One coordinate of a random point on the sphere is about N(0, 1/n); the norm of a Gaussian vector is sqrt(n) give or take 0.71 in any dimension; a tall Gaussian matrix stretches every direction by between sqrt(n) - sqrt(p) and sqrt(n) + sqrt(p).
The code (79 lines; it asserts its own result)
"""Lab 51: the sphere's equator, the thin shell and the singular values of a Gaussian matrix, against exact laws."""
import numpy as np
from videos.coursekit import labs
from explainer.stats.kit import hdp
TITLE = "Concentration in high dimensions: the equator, the shell, and root n plus or minus root p"
GOAL = ("Sample points uniformly on spheres of growing dimension and check the mass of the exact 95% equatorial "
"band; check that the norm of a Gaussian vector has standard deviation near 0.707 in every dimension; and "
"compare the extreme singular values of n x p Gaussian matrices with Gordon's bounds.")
TASKS = [
"Fix the band's half-width at 0.1 and print hdp.sphere_band_mass(0.1, n) for n = 3 to 10,000. At which n does "
"it pass 99%?",
"Replace the Gaussian matrix entries by Rademacher signs. Do the extreme singular values still sit near root n "
"plus or minus root p?",
"Draw two independent directions with hdp.sample_sphere and plot their angle's standard deviation against n; "
"compare with 1/sqrt(n) radians.",
]
def run(seed=0):
rng = np.random.default_rng(seed)
lab = labs.Lab()
dims = [3, 10, 100, 1000]
for n in dims:
t = hdp.sphere_band_for(0.95, n)
x1 = hdp.sample_sphere(n, 20000, rng)[:, 0]
inside = float(np.mean(np.abs(x1) <= t))
lab.row(f"n = {n}: 95% half-width of one coordinate", f"{t:.4f} (1.96/sqrt(n) = {1.96 / np.sqrt(n):.4f}) "
f"simulated mass {inside:.3f}")
assert abs(inside - 0.95) < 0.01, "the exact band holds 95%"
assert abs(hdp.sphere_band_mass(t, n) - 0.95) < 1e-9
assert abs(hdp.sphere_band_for(0.95, 1000) - 0.062) < 5e-4, "the film's number"
shell = {}
for n in (2, 100, 10000):
norms = np.sqrt(rng.chisquare(n, 200000))
shell[n] = (float(norms.std()), hdp.norm_chi_moments(n)["sd"], float(norms.mean()))
lab.row(f"n = {n}: sd of ||g||", f"{shell[n][0]:.4f} exact {shell[n][1]:.4f} (mean {shell[n][2]:.2f})")
assert abs(shell[n][0] / shell[n][1] - 1) < 0.02, "the chi law's sd"
assert abs(shell[10000][1] - np.sqrt(0.5)) < 1e-3, "the shell's thickness does not grow with n"
n = 400
ps = [25, 50, 100, 200]
ext = []
for p in ps: # as hdp.singular_extremes, by the eigenvalues of X'X (quick on any BLAS)
ev = np.array([np.linalg.eigvalsh((X := rng.standard_normal((n, p))).T @ X)[[0, -1]] for _ in range(12)])
sv = np.sqrt(ev)
ext.append({"max": sv[:, 1].mean(), "min": sv[:, 0].mean(), "max_sd": sv[:, 1].std(), "min_sd": sv[:, 0].std(),
"gordon_max": np.sqrt(n) + np.sqrt(p), "gordon_min": np.sqrt(n) - np.sqrt(p)})
for p, e in zip(ps, ext):
lab.row(f"400 x {p}: mean largest / smallest singular value",
f"{e['max']:.2f} / {e['min']:.2f} Gordon: at most {e['gordon_max']:.2f}, at least {e['gordon_min']:.2f}")
assert e["gordon_min"] < e["min"] < e["max"] < e["gordon_max"], "Gordon's bounds on the expectations"
assert e["gordon_max"] - e["max"] < 0.9 and e["min"] - e["gordon_min"] < 0.9, "and they are nearly attained"
lab.note = ("One coordinate of a random point on the sphere is about N(0, 1/n); the norm of a Gaussian vector "
"is sqrt(n) give or take 0.71 in any dimension; a tall Gaussian matrix stretches every direction by "
"between sqrt(n) - sqrt(p) and sqrt(n) + sqrt(p).")
fig, ax = labs.figure(2, size=(11, 4.2))
x = np.linspace(-1, 1, 2001)
for n, color in zip((3, 10, 100), (labs.BLUE, labs.GREEN, labs.GOLD)):
ax[0].plot(x, hdp.sphere_coordinate_pdf(x, n), color=color, label=f"n = {n}")
t = hdp.sphere_band_for(0.95, n)
ax[0].plot([-t, t], [-0.12 * (1 + dims.index(n))] * 2, color=color, lw=4, solid_capstyle="butt")
ax[0].text(-0.98, -0.52, "bars: the band holding 95%", color=labs.MUTED, fontsize=9, va="center")
ax[0].set(title="Exact density of one coordinate on the sphere", xlabel="x1", ylabel="density", ylim=(-0.65, 4.3))
ax[0].legend()
ax[1].plot(ps, [e["gordon_max"] for e in ext], color=labs.MUTED, ls="--", label="sqrt(n) ± sqrt(p)")
ax[1].plot(ps, [e["gordon_min"] for e in ext], color=labs.MUTED, ls="--")
ax[1].errorbar(ps, [e["max"] for e in ext], yerr=[2 * e["max_sd"] for e in ext], fmt="o", color=labs.RED,
label="largest singular value (± 2 sd)")
ax[1].errorbar(ps, [e["min"] for e in ext], yerr=[2 * e["min_sd"] for e in ext], fmt="o", color=labs.BLUE,
label="smallest singular value (± 2 sd)")
ax[1].set(title="Gaussian matrices with n = 400 rows", xlabel="columns p", ylabel="singular value")
ax[1].legend(loc="center left")
lab.fig = fig
return lab
Now change it
- Fix the band's half-width at 0.1 and print hdp.sphere_band_mass(0.1, n) for n = 3 to 10,000. At which n does it pass 99%?
- Replace the Gaussian matrix entries by Rademacher signs. Do the extreme singular values still sit near root n plus or minus root p?
- Draw two independent directions with hdp.sample_sphere and plot their angle's standard deviation against n; compare with 1/sqrt(n) radians.
Problems, with solutions
Try each problem before opening its solution.
-
Hoeffding's lemma. Show that a variable in \([a, b]\) with mean zero has \(E e^{\lambda X} \le e^{\lambda^2(b-a)^2/8}\) (Hoeffding's lemma).
Solution
- Let ψ(λ) = log E e^{λX}. Then ψ(0) = 0, ψ′(0) = EX = 0, and ψ″(λ) is the variance of X under the tilted law dQ ∝ e^{λX} dP.
- Any law on [a, b] has variance at most (b − a)²/4, so ψ″ ≤ (b − a)²/4. Taylor's theorem gives ψ(λ) ≤ λ²(b − a)²/8.
-
The sphere's coordinate. For \(x\) uniform on \(S^{n-1}\), show \(E x_1^2 = 1/n\) and that \(\sqrt n\, x_1 \to N(0, 1)\).
Solution
- By symmetry, E x₁² = … = E xₙ², and they sum to 1, so E x₁² = 1/n.
- Write x = g/‖g‖. Then √n x₁ = g₁/(‖g‖/√n), and ‖g‖/√n → 1 by the LLN, so √n x₁ → N(0, 1) by Slutsky.
-
Johnson–Lindenstrauss for one pair. Prove Johnson–Lindenstrauss for one pair: \(P(|\,\|Gu\|^2/k - 1| > \varepsilon) \le 2e^{-k\varepsilon^2/8}\), \(\|u\| = 1\).
Solution
- For a k × d matrix G with N(0, 1) entries and a unit u, Gu ~ N(0, I_k), so ‖Gu‖² ~ χ²_k.
- χ²_k − k is sub-exponential, and Bernstein gives P(|χ²_k/k − 1| > ε) ≤ 2e^{−kε²/8} for ε ≤ 1.
- For 0 < ε ≤ 1 and failure probability α, a union bound over N(N − 1)/2 pairs is at most N(N − 1)e^{−kε²/8}. Thus k ≥ (8/ε²) log(N(N − 1)/α) suffices. The order log N/ε² alone does not specify a confidence level.
-
Three Lipschitz functions. Show that \(\|g\|\) and \(\max_i g_i\) are 1-Lipschitz, and that \(s_{\max}(A)\) is 1-Lipschitz in the entries of \(A\).
Solution
- The reverse triangle inequality gives |‖x‖ − ‖y‖| ≤ ‖x − y‖. Also |max xᵢ − max yᵢ| ≤ max|xᵢ − yᵢ| ≤ ‖x − y‖.
- |s_max(A) − s_max(B)| ≤ ‖A − B‖_op ≤ ‖A − B‖_F, the Euclidean norm of the entries.
-
The exchangeable maximum. For exchangeable \(X_i = \sqrt{1-\rho}Z_i + \sqrt\rho W\), show \(E\max_i X_i = \sqrt{1-\rho}\,E\max_i Z_i\).
Solution
- max_i(√(1 − ρ)Zᵢ + √ρ W) = √(1 − ρ) max_i Zᵢ + √ρ W, since W is common to every i.
- Take expectations: E W = 0.
-
Two statistical dimensions. Show the statistical dimension of an orthant in \(\mathbb R^p\) is \(p/2\), and of a \(k\)-dimensional subspace is \(k\).
Solution
- The projection onto a k-dimensional subspace L gives ‖Π_L g‖² ~ χ²_k, with mean k.
- The projection onto the orthant is (gᵢ)₊ coordinatewise, and E(gᵢ)₊² = 1/2, so δ = p/2.
Notes and sources
Where it comes back
- Part 52: restricted eigenvalues of random designs, the lasso's rate, sparse PCA, matrix completion.
- Part 54: Rademacher complexity, contraction and uniform laws for learning theory.
- Part 58: confidence sequences from Ville's inequality.
- Part 59: proportional asymptotics, where Marchenko–Pastur and the CGMT give exact risks.
Glossary
- Tails.
- Sub-Gaussian; sub-exponential; Orlicz norm ψ₂, ψ₁; variance proxy; MGF bound: tail classes.
- Hoeffding's inequality and lemma; Bernstein's inequality; Chernoff bound; empirical Bernstein: inequalities.
- Geometry and concentration.
- Concentration of measure; thin shell; near-orthogonality; Johnson–Lindenstrauss lemma: high-dimensional geometry.
- Lipschitz function; Gaussian concentration; Poincaré inequality; log-Sobolev inequality; Herbst's argument; tensorization; isoperimetry; convex-distance inequality; superconcentration: the machinery.
- Random matrices.
- Operator norm; ε-net; singular values; Marchenko–Pastur law; spiked spectrum; parallel analysis: spectra.
- Matrix variance; matrix Bernstein; trace exponential; Lieb's theorem; intrinsic freeness: sums of matrices.
- Gaussian processes.
- Canonical metric; covering number; Dudley's entropy integral; Sudakov's minoration; γ₂ functional; generic chaining; majorizing measures: the size of a supremum.
- Slepian's lemma; Sudakov–Fernique; Gordon's inequality; CGMT; contraction: comparison.
- Widths.
- Gaussian width; descent cone; null-space property; escape through the mesh; statistical dimension; kinematic formula; phase transition; universality: when convex recovery works.
- Confidence sequence; Ville's inequality: concentration over time.
Sources
- The sphere and concentration.
- P. Lévy, Leçons d'analyse fonctionnelle (1922); Problèmes concrets d'analyse fonctionnelle (1951).
- B. Tsirelson, I. Ibragimov & V. Sudakov, in Proc. Third Japan–USSR Symp. (1976); L. Gross, Amer. J. Math. 97 (1975); M. Ledoux, The Concentration of Measure Phenomenon (2001).
- M. Talagrand, Publ. Math. IHÉS 81 (1995); S. Chatterjee, Superconcentration and Related Topics (2014).
- Tails. W. Hoeffding, JASA 58 (1963); S. Bernstein (1924); H. Chernoff, Ann. Math. Stat. 23 (1952); A. Maurer & M. Pontil, COLT (2009).
- Geometry. W. Johnson & J. Lindenstrauss, Contemp. Math. 26 (1984); S. Dasgupta & A. Gupta, Random Struct. Alg. 22 (2003).
- Random matrices.
- V. Marchenko & L. Pastur, Mat. Sb. 72 (1967); K. Davidson & S. Szarek, Handbook of the Geometry of Banach Spaces (2001).
- R. Ahlswede & A. Winter, IEEE Trans. Inf. Theory 48 (2002); J. Tropp, Found. Comput. Math. 12 (2012); A. Bandeira, M. Boedihardjo & R. van Handel, Invent. Math. 234 (2023).
- J. Horn, Psychometrika 30 (1965); W. Wolberg, W. Street & O. Mangasarian (1995), UCI.
- Chaining and comparison.
- R. Dudley, J. Funct. Anal. 1 (1967); V. Sudakov, Dokl. Akad. Nauk SSSR (1969); X. Fernique, École d'Été de Saint-Flour (1975); M. Talagrand, Acta Math. 159 (1987).
- D. Slepian, Bell Syst. Tech. J. 41 (1962); Y. Gordon, Israel J. Math. 50 (1985); GAFA Seminar (1988).
- M. Stojnic, arXiv:1303.7291 (2013); C. Thrampoulidis, S. Oymak & B. Hassibi, COLT (2015).
- Widths and phase transitions.
- V. Chandrasekaran, B. Recht, P. Parrilo & A. Willsky, Found. Comput. Math. 12 (2012).
- D. Amelunxen, M. Lotz, M. McCoy & J. Tropp, Inf. Inference 3 (2014); M. McCoy & J. Tropp, Found. Comput. Math. 14 (2014).
- D. Donoho & J. Tanner, Phil. Trans. R. Soc. A 367 (2009); S. Oymak & J. Tropp, Inf. Inference 7 (2018).
- Confidence sequences. J. Ville, Étude critique de la notion de collectif (1939); S. Howard, A. Ramdas, J. McAuliffe & J. Sekhon, Ann. Stat. 49 (2021).
- Books. R. Vershynin, High-Dimensional Probability (2018); M. Wainwright, High-Dimensional Statistics (2019), ch. 2–6; S. Boucheron, G. Lugosi & P. Massart, Concentration Inequalities (2013); J. Tropp, An Introduction to Matrix Concentration Inequalities (2015); M. Talagrand, Upper and Lower Bounds for Stochastic Processes (2021).
About this partfrom its README
Part 51 of a sixty-five-part course in statistics, from a first course to a PhD (see the series plan and the syllabus), and the ninth part of Stage IV, the PhD core.
It opens with Lévy's equator: pick a point uniformly on the sphere in a thousand dimensions, and its first coordinate is within 0.062 of zero with probability 95%, for each coordinate fixed before observing the point. This does not hold simultaneously over all equators. The part asks what randomness looks like when the dimension is large, and finds it predictable:
- sub-Gaussian and sub-exponential variables, Orlicz norms, and Hoeffding, Bernstein and Chernoff against exact tails;
- thin shells, near-orthogonality and the Johnson–Lindenstrauss lemma;
- the concentration of Lipschitz functions of Gaussians (Tsirelson–Ibragimov–Sudakov), with Herbst's argument; the sphere; Talagrand's convex-distance inequality;
- random matrices without asymptotics: ε-nets, √n ± √p, covariance estimation at rate √(p/n), Marchenko–Pastur, and a real correlation spectrum against it;
- matrix Bernstein (Tropp 2012), and when its log p is real;
- chaining revisited: Dudley's integral, Sudakov's minoration, Talagrand's ellipsoid and generic chaining;
- Gaussian comparison: Slepian, Sudakov–Fernique, Gordon, and the convex Gaussian min-max theorem;
- Gaussian widths and Gordon's escape through the mesh;
- the statistical dimension and its computable upper proxy (Amelunxen, Lotz, McCoy & Tropp 2014), which explains the Donoho–Tanner curve;
- intervals from concentration, on the Board.
It keeps three promises:
- Part 43 proved the LLN, the CLT and large deviations as n → ∞ with the dimension fixed. Chapters 1–3 give tail bounds valid at every n, in any dimension.
- Part 48 built chaining and Talagrand's inequality for empirical processes. Chapters 6–7 make them general tools for Gaussian processes, with matching lower bounds.
- Part 32 found the Donoho–Tanner phase transition of basis pursuit by experiment. Chapters 8–9 compute it.
Built in this part:
statkit.hdp(explainer/stats/kit/hdp.py), tested intests/test_stats_kit_hdp.py:- the sphere: the exact law of one coordinate, band masses, the angle between random directions, uniform sampling;
- the χ law of ‖g‖; Johnson–Lindenstrauss distortions and dimensions;
- Hoeffding, Bernstein and Chernoff tails against the exact binomial; ψ₂ and ψ₁ norms, exact and empirical;
- Gaussian concentration; the exact expected maximum of n normals by quadrature;
- extreme singular values, covariance error in operator norm and its Marchenko–Pastur limit, the Marchenko–Pastur density; matrix Bernstein for rank-one sums;
- exchangeable maxima (Slepian), Sudakov's minoration; Brownian motion's grid maximum, Dudley's integral and the union bound;
- Gaussian widths of the ℓ₁ and ℓ₂ balls; an infimum-of-expectations upper proxy for the statistical dimension of the ℓ₁ descent cone and the Donoho–Tanner curve.
- The
SphereShell(inexplainer/stats/viz.py), the part's instrument: the sphere drawn as a circle, with its equatorial band of the true half-width for the stated n, the Gaussian shell, scattered points, and (chapter 8) the descent cone with random null spaces that hit or miss it.
Data.
- From the Museum: the Wisconsin breast cancer data (Wolberg, Street & Mangasarian 1995), 569 biopsies and 30 features, last seen in Part 34.
- The rest is exact arithmetic or seeded simulation.
The Coverage Board gains six rows:
| Method | Setting | Nominal | Achieved | Verdict |
|---|---|---|---|---|
| Wald interval | Bernoulli(p = 0.02), n = 200 | 95% | 90.9% | broken |
| Hoeffding interval | Bernoulli(p = 0.02), n = 200 | 95% | 100% | conservative |
| empirical Bernstein interval | Bernoulli(p = 0.02), n = 200 | 95% | 100% | conservative |
| Wald interval | Bernoulli(p = 0.5), n = 200 | 95% | 94.2% | broken |
| Hoeffding interval | Bernoulli(p = 0.5), n = 200 | 95% | 99.4% | conservative |
| empirical Bernstein interval | Bernoulli(p = 0.5), n = 200 | 95% | 100% | conservative |
Chapter notes
| # | Chapter | Numbers |
|---|---|---|
| 0 | The sphere's equator | 95% half-width of x₁: 0.95 (n = 3), 0.60 (10), 0.196 (100), 0.062 (1,000), 0.0196 (10,000); mass within 0.1: 10% → 100% |
| 1 | Sub-Gaussian and sub-exponential | ψ₂(N(0, 1)) = √(8/3) = 1.63, ψ₂(Rademacher) = 1/√(log 2) = 1.20; Hoeffding vs Bernstein vs exact at p = 0.02, n = 200 |
| 2 | Geometry | SD of ‖g‖: 0.655 (n = 2) → 0.707 (n = 10,000); angle SD 51.6° → 0.58°; JL with N = 200 in R⁵⁰⁰⁰: k = 500 worst squared-distance distortion 26%, 89% of squared-distance ratios within 10%; all-pairs 95% sufficient bound k = 1,208 for ε = 0.3 |
| 3 | Lipschitz functions | n = 1,000: Var‖g‖ = 0.49, Var max gᵢ = 0.125 (bound 1); E max: 1.54 (n = 10) → 3.85 (10,000) |
| 4 | Random matrices | n = 400: s_max 29.72 vs 30 and s_min 10.14 vs 10 at p = 100; MP with γ = 1/4: eigenvalues 0.26–2.24; cancer: 5 eigenvalues above the MP edge 1.51, top 13.28 (44%), top five 85%; one shuffled top 1.47; 399-shuffle maximum threshold 1.513 and global independence-null top-eigenvalue p = 0.0025 |
| 5 | Matrix Bernstein | p = 50: E‖S − I‖ 1.73 (n = 100) → 0.25 (n = 3,200); bound about 1.6× the truth; MP edge close |
| 6 | Chaining | Brownian grid max 0.80 = √(2/π); union bound 4.29 at N = 10⁴; entropy-rate integral → √(π/2) = 1.25, without a theorem constant or covering discretization correction; ellipsoid aₖ = 1/√k: E sup 1.67 → 3.11 vs log p 2.3 → 9.2 |
| 7 | Gaussian comparison | 1,000 exchangeable normals: E max 3.24 √(1 − ρ); ρ = 1/2 attains Sudakov's 2.29 |
| 8 | Widths | w(B₂) = 3.08 → 100.0; w(B₁) = 1.88 → 4.02 for p = 10 → 10,000 |
| 9 | Statistical dimension | p = 100: upper proxy = 6.1 (s = 1), 32.9 (s = 10), 75.0 (s = 40); half-success at m = 35 for s = 10; exact-per-draw simulated δ = 32.211 (MCSE 0.093, 10,000 draws) vs upper proxy 32.879; 20 trials per recovery square, not an exact finite-p half-success threshold |
| 10 | The Board | Wald 90.9% at p = 0.02; Hoeffding half-width 0.096 vs Wald 0.019; 4/200: Clopper–Pearson [0.0055, 0.0504] |
| 11 | Outro | — |
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the sphere's equator (Lévy).
- Sub-Gaussian and sub-exponential variables. Orlicz norms; Hoeffding and Bernstein, sharp.
- High-dimensional geometry. Thin shells; near-orthogonality; Johnson–Lindenstrauss (cross-reference AI, Built Part 3).
- Concentration of Lipschitz functions. Gaussian concentration (Tsirelson–Ibragimov–Sudakov); the sphere; Talagrand's convex-distance inequality.
- Random matrices, non-asymptotically. ε-nets; the norm of a sub-Gaussian matrix; covariance estimation at rate √(p/n).
- Matrix concentration. Matrix Bernstein (Tropp 2012).
- Chaining revisited. Dudley; Sudakov minoration; generic chaining, a glimpse.
- Gaussian comparison. Slepian, Sudakov–Fernique, Gordon.
- Gaussian widths and the escape through the mesh. Exact recovery from random measurements.
- Statistical dimension (Amelunxen, Lotz, McCoy & Tropp 2014): the Donoho–Tanner curve explained.
- Outro.
Built: statkit.hdp. Books: Vershynin; Boucheron, Lugosi & Massart; Tropp; Wainwright ch. 2–6.
Build the film
python -m videos.stats.stats51.compute # the part's numbers, into .cache/stats51
python tools/build.py stats51 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py stats51 Hook # one chapter, silent, with a contact sheet
Scenes: videos/stats/stats51. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
OMP_NUM_THREADS=1 python -m videos.stats.stats51.compute # once (a few minutes)
python tools/build.py stats51 -q l # fast 480p preview
python tools/build.py stats51 # 1080p30 -> renders/stats51.mp4
python tools/qa_scene.py stats51 StatisticalDimension
python tools/lecture_length.py stats51 --floor 50