Problem 2. (Approximate a Symmetric Matrix)
1) Let A and B be m x k matrices. Denote the entry on the ith row and ith column of A as aii, and the entry on the ith row and jth column of B as bij (1 < i < m, 1 < j < k). We can then evaluate the difference between these two matrices by calculating the sum of square differences between corresponding entries. Show that this difference can be represented as follows:
∑∑(aij - bij)^2
i=1 j=1
2) Now let us focus on a p x p symmetric matrix A with spectral decomposition:
A = Σλi * ei * e^T
We can use a lower rank matrix B to approximate A, in particular, let us define:
B = Σxi * ei * e^T for 1 < q < p
Show that:
tr[(A-B)(A-B)] = Σλi^2 for i=q+1
That is, the error of approximation equals to the sum of the squares of the eigenvalues not included in B.