SVD and pseudoinverse - Basic Exercises
1Exercise plan
2Problem 1
Fill in the blanks.
"
2.1Answer example
"takes reciprocals of" and "keeps them as ."
2.2Explanation
Taking the reciprocal of a zero
3Problem 2
Find one
3.1Answer example
so the
Then
Thus , where
3.2Explanation
A
4Problem 3
For
find the
4.1Answer example
Since is
the singular values are . Also,
The rank 1 approximation keeping only the largest singular value is
4.2Explanation
preserves the strongest surviving direction, the direction, and discards the weaker component together with the
5Problem 4
For
use the nonzero
5.1Answer example
Write , where
Since and , the nonzero singular value is . Therefore
is the
5.2Explanation
The
6Problem 5
For
use to find the
6.1Answer example
so . The approximating vector is , and the
Since , the residual is
6.2Explanation
In an
7Problem 6
For
confirm that has infinitely many
7.1Answer example
so
The equation is , so
The squared norm is
which is minimized at .
7.2Explanation
In an
8Problem 7
For
compute and find the
8.1Answer example
so
The
8.2Explanation
For a
9Related exercises
data/exercise/math/linear-algebra/eigenvalues-diagonalization-and-extensions.exercise.n.md data/exercise/math/linear-algebra/quadratic-forms-minimal-polynomials-and-jordan-form.exercise.n.md data/exercise/math/linear-algebra/complex-inner-products-and-unitary-matrices.exercise.n.md10Related lectures
data/lecture/math/linear-algebra/introduction-to-singular-value-decomposition.lecture.n.md data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md11Supplementary proof and application problems
11.1Problem 8
Let be a compact SVD with positive diagonal entries . Define
Show that is the
11.2Answer example
Using and ,
The columns of form an orthonormal basis of , so is the orthogonal projection onto . Similarly,
The columns of span the input directions with nonzero singular values, namely . Hence is the orthogonal projection onto .
11.3Explanation
This theorem explains why the pseudoinverse is not a two-sided inverse in general. It becomes an inverse only on directions that survive and becomes a projection on the whole space.
11.4Problem 9
For
find , describe all least-squares solutions, and identify the minimum-norm one.
11.5Answer example
Here
so
The vector is closest to when , so . The second variable does not affect , so all least-squares solutions are
The norm is minimized at , so is the minimum-norm least-squares solution.
11.6Explanation
The column-space error in the second coordinate cannot be removed. The pseudoinverse fixes the part that can be fitted and sets the kernel component to 0 to minimize the norm.
11.7Problem 10
For the matrix in Problem 9, verify the four Penrose equations
11.8Answer example
Since
we have
and
The matrix is symmetric, so both transpose conditions also hold.
11.9Explanation
The Penrose equations are a compact way to characterize the Moore-Penrose pseudoinverse. In this diagonal example, they reduce to the statement that surviving directions are kept and collapsed directions remain zero.