Sample Covariance and the Marchenko–Pastur Law
What the spectrum of an empirical covariance matrix looks like when the dimension is comparable to the sample size, and why that breaks classical statistics.
The law
Let have i.i.d. entries with mean and variance , and set . Suppose with . Then the empirical spectral distribution of converges weakly, almost surely, to the Marchenko–Pastur law , which has
- density on , where and ;
- plus an atom of mass at when .
The proof (via the Stieltjes transform , which satisfies a quadratic self-consistent equation in the limit) is in the references and is not reproduced here.
For and , .
With and , the extreme eigenvalues of satisfy, almost surely in the limit,
so the condition number satisfies
Key idea
Put numbers in. At (), — the sample covariance is essentially as well conditioned as the truth. At , . At , . At the smallest eigenvalue reaches and is singular. Every method that inverts a sample covariance — ordinary least squares, linear discriminant analysis, Gaussian maximum likelihood, Newton's method on a quadratic — degrades along exactly this curve, and the degradation is not a numerical artefact but the true geometry of the estimate.
As the support shrinks to , so . This is the classical statement: for fixed and , and all eigenvalues converge to .
What the law does not describe
Empirical observation — a regularity seen in experiments. No theorem on this page establishes it in general.
Plot the eigenvalue histogram of the covariance of a real dataset — word embeddings, gene expression, daily asset returns — and it will typically show a Marchenko–Pastur-like bulk plus a small number of large outlying eigenvalues. The bulk is well described by the law; the outliers are not, and they are usually the interesting part.
What this does not say
The theorem above assumes the population covariance is — no signal at all. Real data has signal, and the relevant model is the spiked covariance model: with small. There, the correct statement is the Baik–Ben Arous–Péché phase transition: a spike of strength is detectable in the sample spectrum if and only if , and below that threshold the corresponding sample eigenvalue is absorbed into the bulk and the sample eigenvector is asymptotically uncorrelated with .
That is a sharp and somewhat brutal statement: there is a signal strength below which no amount of eigen-analysis recovers the direction, not because the estimator is bad but because the information is not in the sample. It is quoted here from the reference and is a separate theorem, not a corollary of the Marchenko–Pastur law.
Problems
Marchenko–Pastur edges and conditioningNumerical · Beginner · 15 min The Marchenko–Pastur density integrates to oneProof · Advanced · 1 hour Simulate the Marchenko–Pastur lawCoding · Intermediate · 1 hour Why ordinary least squares degrades as p approaches nProof · Advanced · 30 minReferences
- PaperVladimir A. Marchenko and Leonid A. Pastur (1967). Distribution of eigenvalues for some sets of random matricesThe original result.
- BookZhidong Bai and Jack W. Silverstein (2010). Spectral Analysis of Large Dimensional Random MatricesContains the modern proof via Stieltjes transforms, together with the spiked-model extensions.
- PaperJinho Baik, Gérard Ben Arous and Sandrine Péché (2005). Phase transition of the largest eigenvalue for nonnull complex sample covariance matricesThe BBP transition, which is what actually governs spiked covariance models.
- BookRoman Vershynin (2018). High-Dimensional Probability: An Introduction with Applications in Data Science
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
- TheoremMarchenko–Pastur lawThe empirical spectral distribution of a sample covariance matrix with identity population covariance converges to an explicit density supported on an interval determined by the aspect ratio.
- PropositionBulk edges and the conditioning of the sample covarianceproof includedThe extreme eigenvalues sit at (1 ± sqrt(lambda))^2, so the condition number blows up as the aspect ratio approaches one.
- PropositionThe Marchenko–Pastur density integrates to oneproof includedA verification that the stated density is a probability density on its bulk when the aspect ratio is at most one.
- CorollaryRecovering the classical limitproof includedAs the aspect ratio tends to zero the bulk collapses to a point mass at one, which is the classical fixed-dimension result.
- Empirical observationReal covariance spectra are not Marchenko–PasturEmpirical spectra of real data typically show spiked structure that the identity-population law does not describe.
Experiments
Problems (5)
All problems- Why ordinary least squares degrades as p approaches nProofAdvanced⏱ 30 min
- The Marchenko–Pastur density integrates to oneProofAdvanced⏱ 1 hour
- Marchenko–Pastur edges and conditioningNumericalBeginner⏱ 15 min
- Simulate the Marchenko–Pastur lawCodingIntermediate⏱ 1 hour
- Derive the Marchenko–Pastur law via the Stieltjes transformProofOlympiad / Extreme⏱ 1 day