For , find the singular values, the best rank-1 approximation in the Frobenius norm, and the approximation error. What fraction of the squared Frobenius norm does keep, and why is this the best possible rank-1 choice?
Unsupervised learning, Low-rank approximation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute an SVD of a 2×2 matrix and use the Eckart–Young theorem to read off the optimal low-rank approximation and its error.
Key idea
Write . Keeping the top terms gives the best rank- approximation in both the Frobenius and spectral norm (Eckart–Young), with .
Steps
- Form . Its eigenvalues are and , so the singular values are and .
- Check with the trace identity: .
- The right singular vector for 45 solves , which gives . Then .
- Build . Since , the factor is , so .
- Error: . Its squared Frobenius norm is , so .
- Energy kept: .
- Optimality is the Eckart–Young theorem. Take any rank-1 matrix . In it has a unit vector with . Then , because is the smallest value of over unit . Since , the Frobenius error is also at least , and reaches it.
Common mistakes
- Taking the singular values as the eigenvalues of without the square root.
- Using the eigenvalues of itself. is not symmetric, so its eigenvalues (3 and 5) are not its singular values.
- Getting the sign or scale of wrong. Always check that reproduces as the squared norm of the approximation, which is .
- Saying the best rank-1 matrix is found by deleting a row or column of . It is the top SVD term.
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: A variational autoencoder's encoder outputs, for a 1-D latent code, a mean and standard deviation . (a) Compute . (b) Draw by the reparameterisation trick if the noise sample is . (c) Why do we need this trick, and what role does the KL term play compared with a plain autoencoder?
Next in Unsupervised learning: For a clustering of data points into clusters with centroids and overall mean , prove that total scatter = within-cluster scatter + between-cluster scatter. Why does this show that minimising k-means cost is the same as maximising between-cluster scatter? How do you check it on the 1-D clusters and ?