If a data matrix X∈Rn×d has singular values σ1≥⋯≥σd≥0, how does adding λI (λ>0) change the eigenvalues and condition number of X⊤X, and why does this explain both numerical stability and Tikhonov regularisation?

Linear algebra and optimisation, Matrix norms and condition number
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can connect the spectral shift of X⊤X+λI to both numerical conditioning and ridge shrinkage.

Key idea

Adding λI leaves the eigenvectors unchanged while shifting every eigenvalue from σi2 to σi2+λ, which bounds the smallest eigenvalue away from zero, shrinks the condition number from σ12/σd2 to (σ12+λ)/(σd2+λ), and damps noisy small-singular-value directions.

Steps

  1. Relate X⊤X to the SVD X=UΣV⊤: X⊤X=V(Σ⊤Σ)V⊤, so X⊤X has orthonormal eigenvectors v1,…,vd with eigenvalues σ12≥⋯≥σd2≥0 (taking σi=0 for i>min⁡(n,d) when n<d).
  2. Apply the shift: since VIV⊤=I, we have X⊤X+λI=V(Σ⊤Σ+λI)V⊤, so the eigenvalues become σi2+λ>0 with the exact same eigenvectors.
  3. Compute the new condition number: κ2(X⊤X+λI)=σ12+λσd2+λ. When σd=0 (collinear features or n<d), X⊤X is singular (κ2=∞), whereas X⊤X+λI is strictly positive definite and invertible with finite κ2=1+σ12/λ.
  4. Check strict decrease for σ1>σd>0: cross-multiplying shows σ12+λσd2+λ<σ12σd2 for all λ>0, because adding λ lifts the denominator proportionally more than the numerator.
  5. Connect to Tikhonov / ridge regression: for target vector y∈Rn, w^ridge=(X⊤X+λI)−1X⊤y=∑i=1min⁡(n,d)σiσi2+λ(ui⊤y)vi, so dividing by σi2+λ prevents small singular values σi≪λ from blowing up measurement noise in ui⊤y.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: How does the mini-batch size affect the noise in stochastic gradient descent? What is the variance of a mini-batch gradient, and what is the “linear scaling rule” for the learning rate?
Next in Linear algebra and optimisation: For L(W)=12∥Y−XW∥F2+λ2tr⁡(W⊤AW), where X∈Rn×d, W∈Rd×k, Y∈Rn×k and A∈Rd×d is symmetric, how do you derive ∇WL(W) using differentials and verify every matrix product by its shapes?