What is the pseudoinverse and how does it give a least-squares solution when there is no exact solution?

Quick Overview

Asks what the Moore-Penrose pseudoinverse is and how it produces a least-squares solution to a linear system with no exact solution. Tests the SVD construction, projection onto the column space, minimum-norm solutions, and numerical behavior with small singular values.

What is the pseudoinverse and how does it give a least-squares solution when there is no exact solution?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is the pseudoinverse, and how does it give a least-squares solution to $Ax = b$ when there is no exact solution? ```hint Rotate the problem Write $A$ through its singular value decomposition and express the residual $\|Ax - b\|$ in the rotated coordinates. Which coordinates of $x$ change the residual, and which do not? ``` ```hint When many x fit equally well If $A$ is rank deficient, more than one $x$ reaches the smallest residual. Ask what extra criterion picks one of them. ``` ### What a Strong Answer Covers - A definition of the Moore-Penrose pseudoinverse, through the SVD or the four Penrose conditions - Why $A^+ b$ minimizes $\|Ax - b\|$, using the projection onto the column space or the SVD argument - How $A^+$ picks the minimum-norm solution when many exist, and the formulas for the full-rank cases - Numerical behavior when singular values are small, and how practical implementations handle it ### Follow-up Questions - Why is solving the normal equations numerically worse than using QR or the SVD? - What happens to $A^+ b$ when a singular value is tiny but not zero, and how does ridge regression change that? - Show that $AA^+$ is the orthogonal projection onto the column space of $A$. - If $A$ is square and invertible, what is $A^+$?

Overview: Asks what the Moore-Penrose pseudoinverse is and how it produces a least-squares solution to a linear system with no exact solution. Tests the SVD construction, projection onto the column space, minimum-norm solutions, and numerical behavior with small singular values.

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

What is the pseudoinverse, and how does it give a least-squares solution to Ax=bAx = b when there is no exact solution?

What a Strong Answer Covers Guidance

  • A definition of the Moore-Penrose pseudoinverse, through the SVD or the four Penrose conditions
  • Why A+bA^+ b minimizes ∥Ax−b∥\|Ax - b\| , using the projection onto the column space or the SVD argument
  • How A+A^+ picks the minimum-norm solution when many exist, and the formulas for the full-rank cases
  • Numerical behavior when singular values are small, and how practical implementations handle it

Follow-up Questions Guidance

  • Why is solving the normal equations numerically worse than using QR or the SVD?
  • What happens to A+bA^+ b when a singular value is tiny but not zero, and how does ridge regression change that?
  • Show that AA+AA^+ is the orthogonal projection onto the column space of AA .
  • If AA is square and invertible, what is A+A^+ ?