All labs

SVD as an Optimal Summary

Rank-k truncation on an image and a data matrix, with the error bound made visible.

Ch 4 4.2
Explorer
Mathematical Core
20 mindifficulty 3/5

Controls

Data pattern
6

Number of singular components used to reconstruct the matrix.

0.150

Additive Gaussian noise on every pixel — raise k too far and you start fitting this.

Log scale spectrum
Random seed

Every result on this page is a deterministic function of the seed and the controls.

Original, rank-k reconstruction, and residual

k = 6 of 48 possible components.

Original (noisy)
Rank-6 reconstruction
Residual (original − reconstruction)
Compression ratio
25.3%
storage k(m+n+1)=582 vs mn=2304
Energy captured
95.8%
Relative Frobenius error
0.2043
sqrt(Σ_{i>k} σᵢ² / Σ σᵢ²) — the Eckart–Young bound, achieved exactly by truncated SVD.
Singular values used
6

Singular value spectrum

linear scale

051015202530010203040k=6component indexσᵢ

Cumulative energy captured

Eckart–Young: truncated SVD is the optimal rank-k summary.

00.200.400.600.801010203040k=695.8%rank keptcumulative energy fraction
cumulative energy1 − (Eckart–Young error)²current k
More components is not always better

Each additional singular component reduces reconstruction error on the data you have, by construction — but once the true signal's few dominant components are captured, the rest of the spectrum is noise. Fitting it lowers training error while adding nothing (or something harmful) for new data. The elbow in the singular value spectrum, not the tail, is usually where the signal ends.