Pseudoinverses, Low Rank and Conditioning
Use singular values to solve least-squares problems and understand sensitivity to noisy data.
Builds on Singular Value Decomposition
The bigger question: Which parts of a matrix carry the strongest signal?
On this page
Invert only the represented directions
Given , form by transposing its shape and replacing each positive singular value by its reciprocal, leaving zeros at zero. The Moore–Penrose pseudoinverse is .
Then is the least-squares solution with smallest Euclidean norm. If the system is consistent, it is the minimum-norm exact solution. It does not manufacture an exact solution when the target is outside the column space.
Visual guide
- All exact solutions
Worked example: an inconsistent target
For , the pseudoinverse is . With , it gives , fitted vector , and residual . Any vector produces the same fit, but has the smallest norm.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
Condition number compares strongest and weakest stretches.
Hint 2 · Take the next step
Divide the largest singular value by the smallest.
Show the reasoning
Answer: 1000
κ₂=10/0.01=1000, signaling substantial possible relative error amplification.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Worked example: noise amplification
For , solving multiplies the second component of by . A measurement error of in that component creates an error of in the solution. For invertible matrices, the spectral condition number is , here .
Conditioning describes sensitivity of the mathematical problem. Stability describes the algorithm's additional error. A stable algorithm cannot eliminate sensitivity already present in the model.
Low-rank approximation
The expansion separates rank-one contributions. Keeping the first terms gives a best rank-at-most- approximation in spectral and Frobenius norms. The spectral error is ; the squared Frobenius error is .
Discarding small singular directions can reduce noise amplification, but changes the problem and introduces approximation bias. A cutoff should reflect measurement scale or a stated tolerance, not an unexplained universal threshold.
Practice
- Find the pseudoinverse of .
- Find the condition number of .
- Singular values are . What is the best rank-two spectral error?
Show worked solutions
- .
- .
- The discarded singular value is .
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.