15 The Singular Value Decomposition
An eigenvector compares input and output in the same space. A rectangular matrix may have different input and output dimensions, so we instead seek orthonormal input directions whose images are mutually orthogonal. In those coordinates, the map merely scales each direction and may send some directions to zero.
The singular value decomposition makes this construction precise. It will evaluate the matrix norm, expose directions that are poorly determined by a least-squares problem, and identify which components can be discarded in an approximation of smaller rank.
15.1 The SVD Theorem and Subspace Characterization
Suppose unit input vectors \(\bv_i\) have images \(\bA\bv_i=\sigma_i\bu_i\) with orthonormal \(\bu_i\) and nonnegative \(\sigma_i\). Applying \(\bA\) then consists of expanding an input in the \(\bv_i\) basis, multiplying its coefficients by \(\sigma_i\), and expressing the output in the \(\bu_i\) basis. To find such input vectors, observe that \[ \begin{align} (\bA\bv_i)^T(\bA\bv_j)=\bv_i^T(\bA^T\bA)\bv_j. \end{align} \] An orthonormal eigenbasis of the symmetric matrix \(\bA^T\bA\) therefore makes the images orthogonal. This observation supplies the proof.
If \(m<n\), apply the theorem to \(\bA^T\) and transpose the factorization. The left and right factors exchange roles, and the rectangular diagonal factor is transposed. Thus the decomposition exists for every rectangular matrix. When \(r=0\), the outer-product sum is empty and \(\bA=\bzero\).
15.2 Norms and Condition Numbers
The induced Euclidean norm of the referenced result is the largest amplification of a unit vector, and the condition number of the referenced result compares the largest and the smallest amplification. Both were defined as optimization problems over the unit sphere. Because orthogonal matrices preserve Euclidean length, the SVD reduces these problems to a diagonal matrix, where they can be solved by inspection.
The identity \(\kappa_2(\bA^T\bA)=\kappa_2(\bA)^2\) explains the preference for QR in the referenced section. When the normal equations are formed and solved by a backward stable method, the forward error can be as large as a modest multiple of \(\kappa_2(\bA)^2u\), where \(u\) is the unit roundoff. Householder QR works with \(\bA\) directly, and when the least-squares residual is small its forward error is a modest multiple of \(\kappa_2(\bA)u\) (Higham 2002). For \(\kappa_2(\bA)=10^6\) in double precision, these two estimates are of order \(10^{-4}\) and \(10^{-10}\).
15.3 Low-Rank Matrix Approximation
15.4 Least Squares and Regularization
The least-squares theory of the referenced section characterized every minimizer and the minimum-norm minimizer, but it computed a solution only when \(\bA\) has full column rank. The SVD computes all minimizers in every case. It also shows which components of the solution are sensitive to errors in \(\bb\), and how truncation and Tikhonov regularization modify those components.
The coefficient \(\bu_i^T\bb/\sigma_i\) shows how errors in the data enter the solution. If \(\bb\) is replaced by \(\bb+\be\), the component of the minimum-norm solution along \(\bv_i\) changes by \(\bu_i^T\be/\sigma_i\). Directions with small singular values amplify the noise by \(1/\sigma_i\), which is the mechanism behind the ill-conditioning measured by \(\kappa_2(\bA)\). Regularization reduces this amplification by modifying the coefficients for small \(\sigma_i\).
Both regularized solutions multiply the unregularized coefficient \(\bu_i^T\bb/\sigma_i\) by a filter factor. Truncation uses the factor one for \(i\leq k\) and zero for \(i>k\), so it removes the weak directions entirely. Tikhonov regularization uses \(\sigma_i^2/(\sigma_i^2+\lambda)\), which is close to one when \(\sigma_i^2\gg\lambda\) and close to \(\sigma_i^2/\lambda\) when \(\sigma_i^2\ll\lambda\). The amplification \(1/\sigma_i\) is therefore replaced by at most \(1/(2\sqrt{\lambda})\), and the transition between kept and damped directions occurs near \(\sigma_i=\sqrt{\lambda}\). The choice between the two methods, and the choice of \(k\) or \(\lambda\), depends on the noise level in \(\bb\) and on the assumption about the solution discussed after the referenced result.