How does the SVD give the pseudoinverse of a matrix?

Quick Overview

Asks how the singular value decomposition produces the Moore-Penrose pseudoinverse of a singular or non-square matrix. Tests the construction from the SVD factors, the projection and minimum-norm least-squares interpretation, and how small singular values are handled numerically.

How does the SVD give the pseudoinverse of a matrix?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How does the SVD give the pseudoinverse of a matrix? Assume $A$ is a real $m \times n$ matrix that may be non-square or rank-deficient. ```hint Invert what can be inverted Write $A = U\Sigma V^\top$ and ask which of the three factors are easy to invert, and what to do with the one that may not be. ``` ```hint Check it against least squares When $A$ has a null space, $\|Ax - b\|$ has many minimizers. Compare them with the vector $A^+ b$. ``` ### What a Strong Answer Covers - The formula for the pseudoinverse in terms of the SVD factors, and how the middle factor is built (including its shape) - Why it reduces to the ordinary inverse when $A$ is square and invertible - What zero singular values do: the projections onto the column space and row space - The least-squares and minimum-norm meaning of $A^+ b$ - How small singular values are handled numerically ### Follow-up Questions - Why is solving least squares through the SVD more stable than forming $(A^\top A)^{-1}A^\top$? - How do you choose the tolerance for treating a singular value as zero, and what does that choice do to the solution? - How does truncating small singular values compare with ridge regression? - Which four Moore-Penrose conditions does $A^+$ satisfy, and can you check one from the SVD?

Overview: Asks how the singular value decomposition produces the Moore-Penrose pseudoinverse of a singular or non-square matrix. Tests the construction from the SVD factors, the projection and minimum-norm least-squares interpretation, and how small singular values are handled numerically.

General logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

How does the SVD give the pseudoinverse of a matrix? Assume AA is a real m×nm \times n matrix that may be non-square or rank-deficient.

What a Strong Answer Covers Guidance

  • The formula for the pseudoinverse in terms of the SVD factors, and how the middle factor is built (including its shape)
  • Why it reduces to the ordinary inverse when AA is square and invertible
  • What zero singular values do: the projections onto the column space and row space
  • The least-squares and minimum-norm meaning of A+bA^+ b
  • How small singular values are handled numerically

Follow-up Questions Guidance

  • Why is solving least squares through the SVD more stable than forming (A⊤A)−1A⊤(A^\top A)^{-1}A^\top ?
  • How do you choose the tolerance for treating a singular value as zero, and what does that choice do to the solution?
  • How does truncating small singular values compare with ridge regression?
  • Which four Moore-Penrose conditions does A+A^+ satisfy, and can you check one from the SVD?