What are singular values?
Singular values are the square roots of the eigenvalues of the Gram matrix . In other words, the singular values are: . The eigenvectors of the Gram matrix K are called the right singular vectors of A.
What are properties of singular values?
is symmetric and positive semi-definite: . Singular values are always real and non-negative; as convention, we order singular values in decreasing order. Finally, the number of nonzero singular values is the same as the rank of the matrix A.
What is SVD?
When A is symmetric () then its singular values are the absolute values of its nonzero eigenvalues. Its singular vectors coincide with its non-null eigenvectors.
Any real matrix of size m x n of rank r > 0 can be factored as:
.
where: : matrix with orthonormal columns : singular values : matrix with orthonormal rows
We can understand SVD geometrically as decomposing A into three sequential transformations, applied from right to left.
- rotates the input space ()
- scales/compress along the orthogonal directions
- rotates the result into the output space ()
What is the pseudoinverse?
Let A be a nonzero m x n matrix with the SVD: then the pseudoinverse is the n x m matrix: .
The nonzero singular values of are the reciprocals of the nonzero singular values of A. The zero matrix is the only matrix without a pseudoinverse.
For invertible square matrices, the pseudoinverse is the actual inverse.
When A has linearly independent columns, the pseudoinverse can be calculated as: .
What are uses of the pseudoinverse?
Say we are solving Ax = b. For any general matrix A, the pseudoinverse gives us: . is the least squares solution under the Euclidean norm.