Why are the effective degrees of freedom of ridge regression strictly decreasing in lambda?

Last updated 3 November 2026

  • Effective degrees of freedom is the trace of the hat matrix: df(λ) = Σ_j d_j² / (d_j² + λ), using the singular values d_j of X.

  • Each term has derivative −d_j² / (d_j²+λ)² < 0 when d_j ≠ 0, so the sum strictly decreases (given X ≠ 0).

  • df runs from rank(X) at λ = 0 (OLS) down to 0 as λ → ∞, making it a smooth one-to-one reparameterization of λ.

  • https://medium.com/hecatus-research/penalizing-regressions-is-good-ridge-lasso-and-elastic-net-db215742e2a6
  • https://medium.com/codetodeploy/degrees-of-freedom-the-hidden-variable-that-decides-whether-your-model-knows-what-its-talking-64d4e6a1af0d
  • https://medium.com/@karan.kamat1406/what-are-degrees-of-freedom-and-why-do-they-subtly-govern-your-models-49d90d7ffa27
All Regularization interview questions