Exercise 2 of the LA-II normal-equations derivation note flagged that the normal equations break down when 's columns are dependent — becomes singular, and the least-squares coefficients (though not the fitted values) become non-unique. This note resolves that gap completely: the Moore-Penrose pseudoinverse , built directly from the SVD, generalises to every matrix — square or not, full-rank or not — and, among the infinitely many valid least-squares coefficient vectors when is rank-deficient, picks out the one with minimum norm.
Learning objectives. By the end of this note you should be able to:
- construct the pseudoinverse from the SVD;
- verify the pseudoinverse reduces to when is square and invertible;
- use the pseudoinverse to solve a rank-deficient least-squares problem;
- explain the minimum-norm property.
In this lesson
- Construction
- Solving least squares via the pseudoinverse
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Linear Algebra, Optimisation and Numerical Methods syllabus.