From an SVD perspective, which directions in feature space does ridge regression shrink most heavily?

Quick Overview

Asks which directions in feature space ridge regression shrinks most when you view the fit through the singular value decomposition of the design matrix. Tests linear algebra for regularization, principal directions, collinearity, and the bias and variance trade in ridge.

From an SVD perspective, which directions in feature space does ridge regression shrink most heavily?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

From an SVD perspective, which directions in feature space does ridge regression shrink most heavily? Assume a centered design matrix $X$ with singular value decomposition $X = U D V^\top$ and the ridge estimate $\hat\beta = (X^\top X + \lambda I)^{-1} X^\top y$. ```hint Change of basis Substitute the SVD into the ridge solution. In the basis given by the columns of $V$, the matrix $X^\top X + \lambda I$ becomes diagonal. ``` ```hint Read the factor Once each direction has its own factor, compare it with the factor ordinary least squares uses, and relate the size of $d_j$ to how much the data varies along that direction. ``` ### What a Strong Answer Covers - What the singular values and the columns of $V$ say about the variance of the data along each direction - The ridge fit written direction by direction, with the shrinkage factor for each - Which directions are shrunk most and which are left almost unchanged - Why this is sensible, tied to the variance of the least squares estimate along each direction - The connection to collinear features ### Follow-up Questions - How does ridge compare with principal components regression in this view? - How would you define the effective degrees of freedom of a ridge fit from the singular values? - When does ridge shrink every direction by the same proportion? - Can an individual ridge coefficient grow in magnitude as λ increases?

Overview: Asks which directions in feature space ridge regression shrinks most when you view the fit through the singular value decomposition of the design matrix. Tests linear algebra for regularization, principal directions, collinearity, and the bias and variance trade in ridge.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

From an SVD perspective, which directions in feature space does ridge regression shrink most heavily?

Assume a centered design matrix XX with singular value decomposition X=UDV⊤X = U D V^\top and the ridge estimate β^=(X⊤X+λI)−1X⊤y\hat\beta = (X^\top X + \lambda I)^{-1} X^\top y.

What a Strong Answer Covers Guidance

  • What the singular values and the columns of VV say about the variance of the data along each direction
  • The ridge fit written direction by direction, with the shrinkage factor for each
  • Which directions are shrunk most and which are left almost unchanged
  • Why this is sensible, tied to the variance of the least squares estimate along each direction
  • The connection to collinear features

Follow-up Questions Guidance

  • How does ridge compare with principal components regression in this view?
  • How would you define the effective degrees of freedom of a ridge fit from the singular values?
  • When does ridge shrink every direction by the same proportion?
  • Can an individual ridge coefficient grow in magnitude as λ increases?