The Variance of a Least-Squares Estimator: Why Does It Shrink Along High-Variance Directions?
Consider the standard linear regression model:
where is an matrix with SVD (singular values ).
The ordinary least-squares (OLS) estimator is .
Now consider ridge regression:
Question: Show that the variance of the OLS estimator, , has its largest directions aligned with the smallest singular values of . Then explain in one sentence why this makes ridge regression a natural fix: specifically, what does ridge do to these high-variance directions, and why is there a bias-variance trade-off?
(You do not need to do any heavy computation — the key is a clean geometric/spectral insight.)
Answer: Variance of OLS Along Singular Directions and Ridge Shrinkage
Key Idea / Intuition
The OLS estimator's variance matrix is . The directions in which the data has the least spread (smallest singular values) are exactly the directions where the estimator is most uncertain — because the data gives you almost no information about in those directions. Ridge regression simply inflates the denominator in those directions, shrinking the estimate toward zero and dramatically reducing variance at the cost of introducing some bias.
Formal Proof / Solution
Step 1: Variance of OLS in the SVD basis
Using , we get:
so the OLS covariance matrix is:
In the orthonormal basis given by the columns of , the variance in direction is:
Key observation: small singular value large variance . The directions barely "sees" are exactly the directions where OLS is wildly uncertain.
Step 2: Why this makes geometric sense
The singular value measures how much stretches direction : the column . If , then many different values of along produce nearly the same predictions , so the data cannot distinguish them — OLS variance blows up.
Step 3: What ridge regression does
The ridge estimator covariance is:
The variance in direction becomes:
Compare:
| Direction | OLS variance | Ridge variance | |-----------|-------------|---------------| | Large | (small) | (almost unchanged) | | Small | (huge) | (tiny) |
Ridge massively shrinks variance in the dangerous low- directions.
Step 4: The bias-variance trade-off in one sentence
Ridge shrinks toward zero along the low-variance-data directions (introducing bias ), but in return achieves a dramatic reduction in variance, so for an appropriate the mean squared error is smaller than OLS — this is the classic bias-variance trade-off.
Summary picture
The smallest singular values contribute the biggest variance reduction and the biggest bias — ridge is trading one for the other, and the optimal balances them.
Source: The Elements of Statistical Learning, Hastie, Tibshirani, Friedman (2nd ed.), Chapter 3