Take an orthonormal design () with noise variance . For one coefficient with true value , find the mean squared error of the ridge estimate as a function of . Show that some always beats OLS, find the best , and evaluate it for , . Why is this not a free lunch?
Supervised learning, Ridge regression
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
The classic result that a biased estimator can have lower MSE: the derivative of the MSE at is negative.
Key idea
The MSE is . At its slope is , so a little shrinkage always helps. The best is .
Steps
- With , OLS is with , and ridge is .
- Bias: . Variance: .
- MSE. At it is (OLS).
- Differentiate: the numerator of the derivative is , divided by . At it is , so MSE falls for small . It is zero at and positive beyond it.
- Optimum: , which is less than . For , : and , against 1 for OLS.
- For a general design the same argument applies in the eigenbasis of . Ridge improves total MSE for small whatever the true (Hoerl–Kennard).
- Not a free lunch: depends on the unknown , so you must choose by cross-validation. The gain is largest when the signal is weak relative to the noise () and it vanishes as .
Common mistakes
- Saying ridge is unbiased. It trades bias for variance.
- Taking the optimal from the formula as if were known. In practice it is estimated.
- Forgetting that the result is about MSE in expectation, not every dataset.
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Show that ridge regression is the MAP (maximum a posteriori) estimate under a Gaussian prior, and lasso under a Laplace prior, when the noise is Gaussian. If the noise variance is and the prior is with , what ridge does this give?
Next in Supervised learning: A 1-D training set has with label , and and with label . What are the hard-margin SVM , and the dual variables , and which points are support vectors?