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

Quick Overview

Asks for a proof that the effective degrees of freedom of ridge regression decrease strictly as the penalty lambda grows. Tests the hat-matrix definition of degrees of freedom, the SVD of the design matrix, and the behavior at the two ends of the penalty range.

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

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are the effective degrees of freedom of ridge regression strictly decreasing in lambda? Ridge regression minimizes $\lVert y - X\beta \rVert^2 + \lambda \lVert \beta \rVert^2$ over $\beta$, with $\lambda \ge 0$. ```hint Pick a definition Use the definition of degrees of freedom for a linear smoother, then write the ridge fitted values as a matrix times $y$. ``` ```hint Diagonalize A singular value decomposition of $X$ turns the matrix expression into a sum of scalar terms, one per singular value. Check how each term depends on $\lambda$. ``` ### What a Strong Answer Covers - The definition of effective degrees of freedom being used and why it applies to ridge. - A closed form for the degrees of freedom in terms of the data matrix, with its derivation. - A proof of strict monotonicity, including the condition on $X$ that it needs. - The values at $\lambda = 0$ and as $\lambda \to \infty$, and what they mean for the fit. ### Follow-up Questions - Given a target number of degrees of freedom, how would you find the matching $\lambda$, and why is the answer unique? - How do the degrees of freedom enter model selection criteria such as generalized cross-validation for ridge? - What are the degrees of freedom of the lasso, and are they monotone in $\lambda$?

Overview: Asks for a proof that the effective degrees of freedom of ridge regression decrease strictly as the penalty lambda grows. Tests the hat-matrix definition of degrees of freedom, the SVD of the design matrix, and the behavior at the two ends of the penalty range.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

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

Ridge regression minimizes ∥y−Xβ∥2+λ∥β∥2\lVert y - X\beta \rVert^2 + \lambda \lVert \beta \rVert^2 over β\beta, with λ≥0\lambda \ge 0.

What a Strong Answer Covers Guidance

  • The definition of effective degrees of freedom being used and why it applies to ridge.
  • A closed form for the degrees of freedom in terms of the data matrix, with its derivation.
  • A proof of strict monotonicity, including the condition on XX that it needs.
  • The values at λ=0\lambda = 0 and as λ→∞\lambda \to \infty , and what they mean for the fit.

Follow-up Questions Guidance

  • Given a target number of degrees of freedom, how would you find the matching λ\lambda , and why is the answer unique?
  • How do the degrees of freedom enter model selection criteria such as generalized cross-validation for ridge?
  • What are the degrees of freedom of the lasso, and are they monotone in λ\lambda ?