A7 · Problem set 10
Problem set 10: the SVD, the pseudoinverse and PCA
These problems use lessons 44 to 46: singular values and low-rank approximation, the pseudoinverse with minimum-norm and regularized solutions, and principal component analysis. Singular values are never negative, and eigenvalues of a covariance matrix are variances: two quick checks on every answer.
Check
Take .
(a)
What is its largest singular value?
(b)
What is its condition number?
Check
Take .
(a)
What is ?
(b)
What is ?
Check
A matrix has singular values 10, 3 and 2, and is replaced by its rank-1 approximation.
(a)
What fraction of the sum of squared entries does it keep?
(b)
What is the largest singular value of the error?
Check
Find the shortest solution of .
(a)
What is ?
(b)
How long is it?
Check
Solve by least squares.
(a)
What is ?
(b)
How long is the residual?
Check
Solve with the pseudoinverse.
(a)
What is ?
(b)
How long is the residual?
Check
A matrix's smallest singular value is 0.01, and carries noise 0.001 along its .
(a)
How much does that noise move the pseudoinverse solution?
(b)
With Tikhonov regularization at = 0.001, how much?
Check
Tikhonov regularization with = 0.0001.
(a)
What factor scales the contribution of = 1?
(b)
At which is the factor exactly one half?
Check
3 mA divides among 1, 3 and 6 kΩ in parallel, dissipating the least power.
(a)
How much flows in the 1 kΩ resistor?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
What is the total power?
Check
A covariance matrix has eigenvalues 6, 3 and 0.5.
(a)
What fraction of the variance does the first component explain?
(b)
And the first two together?
Check
Two readings each have variance 2 and covariance 1.
(a)
What is the variance along the second principal component?
(b)
What fraction does the first explain?
Check
Two sensors share a signal of standard deviation 1 and add independent noise of standard deviation 0.5 each.
(a)
What is the variance along the first principal component?
(b)
What is the noise variance in the average of the two sensors?
Check
The centered data matrix of 51 samples of two readings has singular values 20 and 5.
(a)
What is the variance along the first principal component?
(b)
What is the total variance?
Check
A square matrix's largest and smallest singular values are 100 and 0.01.
(a)
What is its condition number?
(b)
About how many digits does solving with it lose?
Check
Data in two readings has its first principal component along . A centered sample is .
(a)
What is its score on the first component?
(b)
How far is the sample from its reconstruction with that component alone?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.