Keeping the part of a matrix that matters
The SVD writes a matrix as a sum of rank-one layers, , ordered from the biggest layer to the smallest. Keeping only the first layers gives , a matrix of rank . The Eckart-Young theorem says this truncation is the best rank- approximation there is, whether error is measured by the Frobenius norm or by the spectral norm. No clever choice of directions can beat the top singular directions.
The error is exactly the discarded singular values, so the share of squared size you keep is , often called the explained variance when is centred data. A rank- approximation of an matrix needs only numbers instead of , which is why low rank is also compression. In finance, the layers with small are mostly sampling noise, so truncating them is denoising, and the number to keep is usually chosen by a threshold on the kept share or by a gap in the singular values.
- Eckart-Young: truncating the SVD at terms is the best rank- approximation in both norms.
- Error: Frobenius , spectral .
- Storage: numbers instead of .
No rule is free of assumptions. A fixed share such as is simple but arbitrary, a visible gap in the singular values is natural when there is one, and in the covariance setting later in this skill the Marchenko-Pastur edge gives a principled cut-off between signal and noise. Whatever you use, check the choice out of sample: a rank that explains the training data best is not the one that predicts new data best.
Lab · what's graded
7 tasks · 100 pts- The Frobenius error15 pts
- The share kept15 pts
- A rank-one approximation15 pts
- Storage of a low-rank matrix10 pts
- The Eckart-Young theorem15 pts
- Compressing a matrix15 pts
- Why truncation denoises15 pts