Marchenko-Pastur Law
The exact shape noise paints on sample eigenvalues. Given the ratio of features to samples, it draws the bulk, the edges and the mean in one curve.
Why Does This Exist?
The sample covariance is what PCA actually diagonalises, where is the data matrix and is the sample count. When and , is of pure sampling noise even if the truth is identity. Classical asymptotics with fixed say approaches truth, but here stays put and the spread never vanishes.
The Marchenko-Pastur law is the exact limit for that regime. It takes only the ratio and returns the full noise histogram: where it starts, where it ends, how it curves and where its mean sits. With that curve drawn, factor selection becomes visual: bulk is noise, spikes past the right edge are candidates. Random matrix theory frames both classical shapes; this page is the covariance one, while Wigner semicircle law handles symmetric noise.
Prerequisite in one paragraph. You need the empirical spectral distribution, the histogram of the sample eigenvalues, and the ratio . Population eigenvalues describe truth, sample eigenvalues describe the noisy estimate. Background is in eigenvalues and eigenvectors and singular value decomposition.
Think of It Like This
A pond ripple photographed with few pixels
Photograph a smooth ripple with a coarse sensor and each pixel averages its patch. The photo shows lumps the water never had, and the lump pattern depends only on the pixel-to-wavelength ratio, not on the day. Finer sensor, same ratio, same lump texture.
Marchenko-Pastur is that texture chart for covariances. The ratio is the coarseness. It predicts the lump pattern pure noise produces, so a real wave standing above the texture must be signal.
Where the analogy stops: pixels blur locally while covariance noise couples globally through the eigenbasis. The predicted curve is also exact only in the large-size limit, though it is already close at .
How It Actually Works
Let have independent entries with mean zero and variance , and form . As with in , the eigenvalue histogram of converges to the density on with and . Here is the left edge, the right edge, and the mean of the distribution stays .
For : , , . The bulk spans to with mean . The density peaks left of centre and falls to zero as a square root at each edge, which is why histograms look cliff-sided on the right. When a point mass at zero appears for the null directions; the formula extends with that atom.
Worked example
Take noise features and samples, . Theory predicts about percent of the eigenvalues below and the largest near in a typical draw, matching the diagram. The average of all stays to two decimals because trace is preserved: noise redistributes variance, it does not create it.
Now add one factor: population eigenvalues . The spike maps to about past the edge and separates cleanly. Repeat with spike : it lands near inside the bulk and vanishes. The edge is the practical detection line at this ratio, and it slides with : at it is only , at it reaches .
Watch Out For
Using the y equals 0 limit on high-ratio data
As the law collapses to a point at , the classical fixed- picture. Applying that point-mass thinking at declares every eigenvalue above a factor. Roughly a third of pure noise sits there, so the factor count explodes.
Fix: compute first and draw the bulk for that . Never compare high-dimensional eigenvalues against plus a fudge.
Forgetting the point mass when features exceed samples
When , has at least exact zeros. The continuous density covers only the nonzero eigenvalues. Normalising the histogram over all without the atom at zero shifts every percentile and hides the true right edge.
Fix: separate the zeros first. Fit the bulk to the nonzero values with form including the atom weight at zero.
The Quick Version
- Marchenko-Pastur maps ratio to the full noise eigenvalue histogram with edges .
- At the bulk runs 0.09 to 2.91 with mean 1.0 and a right cliff edge.
- Only spikes past the right edge count as detectable signal at that ratio.
- Trace is preserved: noise spreads variance without creating it.
- Above ratio , remember the atom of exact zeros before fitting the bulk.