Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. In the code shown in Tab. 1, what is the size of matrix X? 2. In the code shown in Tab. 1, what is
1. In the code shown in Tab. 1, what is the size of matrix X? 2. In the code shown in Tab. 1, what is the size of matrix S? 3. In the code shown in Tab. 1, what is the size of matrix U? 4. In the code shown in Tab. 1, explain what the function svd does. 5. Consider u1 and u2 eigenvectors of matrix S wih respective eigenvalues 1 and 2 with 1>2. Defining u3=u1+u2, is u3 an eigenvector of S ? Explain. 6. PCA is computed on a set of vectors of dimension D=5 and the eigenvalues computed for the corresponding covariance matrix are 1=5,2=4,3=3,4=2 and 5=1. How many eigenvectors do we need to keep for reconstruction to get at least 90% of the variance explained? 7. Using the code shown in Tab. 2, what is the size of matrix X? 8. Using the code shown in Tab. 2, what is the size of matrix S ? 9. Using the code shown in Tab. 2, what is the value of the highest eigenvalue? 10. Using the code shown in Tab. 2, how many principal components do we need to keep for reconstruction to get at least 90% of the variance explained? Table 1: Matlab code for PCA on a dataset created in R2. Table 2: PCA with MNIST dataset
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started