Checkpoint
Eigenvectors and eigenvalues
Twelve questions across the module: finding eigenvectors, what repeated multiplication does, symmetric matrices and singular values. The numbers are new. Work on paper where it helps; the last item is a short piece of code. You pass at 80 percent.
- Question 1 of 12.
Which of these are eigenvectors of ? Select every one.
Choose every option that applies.
- Question 2 of 12.
The matrix has two real eigenvalues. Find the eigenvector for the smaller one, scaled so its first entry is 1, and enter it as a column.
vOne entry per box, top to bottom. 0.25, -2, 3/4 and sqrt(2) all work. Enter moves to the next empty box.
- Question 3 of 12.
You learn that is an eigenvalue of a square matrix . What does that tell you?
- Question 4 of 12.
A matrix has trace 4. Two of its eigenvalues are 2 and . What is its determinant?
detType a number: 0.25, -2, 3/4 and sqrt(2) all work.
- Question 5 of 12.
A matrix has eigenvector with eigenvalue 1 and eigenvector with eigenvalue . Compute and enter it as a column, in decimals.
A^3 xOne entry per box, top to bottom. 0.25, -2, 3/4 and sqrt(2) all work. Enter moves to the next empty box.
- Question 6 of 12.
What is the spectral radius of ?
rhoType a number: 0.25, -2, 3/4 and sqrt(2) all work.
- Question 7 of 12.
A matrix has eigenvalues and . You multiply a random vector by 60 times. What happens?
- Question 8 of 12.
What is the largest singular value of ? Its eigenvalues are 3 and 0.
sigma 1Type a number: 0.25, -2, 3/4 and sqrt(2) all work.
- Question 9 of 12.
A symmetric matrix has eigenvalues and 2. What are its singular values?
- Question 10 of 12.
Centered 2D data has covariance matrix . What is the first principal component, and what fraction of the variance does it capture?
- Question 11 of 12.
You approximate a weight matrix by its rank-8 truncated SVD, stored as the 8 columns and the 8 rows . How many numbers do you store?
numbersType a number: 0.25, -2, 3/4 and sqrt(2) all work.
- Question 12 of 12.
Run the tests before you submit. This question counts as correct if your latest run passes every check.
Code it Write
gain(A): the largest factor by which the matrixA(any shape) can stretch a vector. Compute it as the square root of the largest eigenvalue of , usingnp.linalg.eigvalsh. Do not usenp.linalg.svdornp.linalg.norm(A, 2).Write your code where the starter saysraise NotImplementedError, then press Run tests. Each check says what it expects.