The singular value decomposition, explained
6 min read
Short answer
Every matrix factors as with orthogonal and a diagonal of singular values . Geometrically, rotates, stretches along perpendicular axes by the , then rotates again. The are the square roots of the eigenvalues of .
What it tells you
The number of non-zero singular values is the rank. The ratio is the 2-norm condition number. Small singular values mark directions the matrix almost kills, which is where fragility lives.
Applications
Compression: keep the top terms to approximate an image or data matrix. PCA is the SVD of centered data. Pseudoinverse and least squares use .
Worked example
Find the singular values of .
with eigenvalues and . So and . Check: . ✓
Try it yourself
A image matrix has singular values that fall off very quickly. Why is a low-rank truncation a good compression?
Show the answer
The discarded terms have small , so they contribute little. Rank needs only numbers instead of , and by Eckart–Young it is the best rank- approximation.
Keep going with practice
Vidi's linear algebra lessons end with orthogonal matrices and projections, the two ingredients of the SVD.