Exercise 4.9.1

Answers

We form the square matrix Y TX = X = [12 2 1 ], we need find the SVD for this matrix.

let K = Y TX, then we have KTK = [54 4 5 ], the eigenvalues are λ1 = 9,λ2 = 1, with eigenvectors: v1 = 1 2 [ 1 1 ], and v2 = 1 2 [ 1 1 ], these are the right singular vectors as well, The corresponding left singular vectors are u1 = 1 2 [ 1 1 ] and u2 = 1 2 [ 1 1 ], in the end we have

K = UΣV T = 1 2 [ 11 1 1 ] [30 0 1 ] 1 2 [ 1 1 1 1 ].

The orthogonal matrix Q that minimizes the norm is Q = UV T = [01 1 0 ], the minimal nor is: 4.

If we let Q = [cos 𝜃sin 𝜃 sin 𝜃 cos 𝜃 ], then we have

X Y QF2 = X Q F2 = [12 2 1 ] [cos 𝜃sin 𝜃 sin 𝜃 cos 𝜃 ]F2 = [1 cos 𝜃2 + sin 𝜃 2 sin 𝜃 1 cos 𝜃 ]F2 = (1 cos 𝜃)2 + (2 + sin 𝜃)2 + (2 sin 𝜃)2 + (1 cos 𝜃)2 = 2(1 cos 𝜃)2 + 2(4 + sin 2𝜃) = 2(1 2cos 𝜃 + cos 2𝜃 + 4 + sin 2𝜃) = 2(6 2cos 𝜃)

This is minimized when 𝜃 = 2πk, where k = 0,1,

So Q = [10 0 1 ], the minimal norm is 8. It misses the optimal Q computed above, which is caused by the assumption that the off diagonal entries are opposite of each other.

import numpy  as np 
u = np.array([[1, -1], [1, 1]]) 
v = np.array([[1, 1], [1, -1]]) 
m = np.array([[3, 0], [0, 1]]) 
np.matmul(np.matmul(u, m), v.transpose()) 
np.matmul(v.transpose(), u)
array([[ 2,  0],
       [ 0, -2]])

User profile picture
2020-03-20 00:00
Comments