For A=(3045), find the singular values, the best rank-1 approximation A1 in the Frobenius norm, and the approximation error. What fraction of the squared Frobenius norm does A1 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 A=∑iσiuivi⊤. Keeping the top r terms gives the best rank-r approximation in both the Frobenius and spectral norm (Eckart–Young), with ∥A−Ar∥F2=∑i>rσi2.

Steps

  1. Form A⊤A=(25202025). Its eigenvalues are 25±20=45 and 5, so the singular values are σ1=45=35≈6.708 and σ2=5≈2.236.
  2. Check with the trace identity: ∥A∥F2=9+0+16+25=50=45+5=σ12+σ22.
  3. The right singular vector for 45 solves (A⊤A−45I)v=0, which gives v1=(1,1)⊤/2. Then u1=Av1/σ1=(3,9)⊤/(2⋅35)=(1,3)⊤/10.
  4. Build A1=σ1u1v1⊤=35⋅1102(1133). Since 102=25, the factor is 3/2, so A1=(1.51.54.54.5).
  5. Error: A−A1=(1.5−1.5−0.50.5). Its squared Frobenius norm is 2(2.25)+2(0.25)=5=σ22, so ∥A−A1∥F=5≈2.236.
  6. Energy kept: σ12/∥A∥F2=45/50=90%.
  7. Optimality is the Eckart–Young theorem. Take any rank-1 matrix B. In R2 it has a unit vector v with Bv=0. Then ∥A−B∥2≥∥(A−B)v∥=∥Av∥≥σ2, because σ2 is the smallest value of ∥Av∥ over unit v. Since ∥⋅∥F≥∥⋅∥2, the Frobenius error is also at least σ2=5, and A1 reaches it.

Common mistakes

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 μ=1 and standard deviation σ=0.5. (a) Compute KL(N(μ,σ2) ∥ N(0,1)). (b) Draw z by the reparameterisation trick if the noise sample is ε=0.8. (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 x1,…,xN into clusters C1,…,CK with centroids μk 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 {1,2} and {6,7}?