%% Exam 2 Take Home, Question 2 % First we load the data (be sure to download it from the class website): load Exam2Q2; % The matrix X should be loaded into memory, 5 x 100. %% Part (a): Double center the matrix X to create the matrix Xm: %% Part (b): Compute the covariance matrix using matrix multiplication: %% Part (c): Find the value of the largest eigenvalue of C %% Part (d): Find the value of the largest singular value of Xm %% Part (e): From the SVD of Xm, project the data to U(:,1). %% Part (f): Find the variance of the projected data. %% Part (g): Are the answers to (c) and (d) the same? How would we convert one to get the other?