Singular value decomposition
Encyclopedia : S : SI : SIN : Singular value decomposition
In linear algebra, singular value decomposition (SVD) is an important factorization of a rectangular real or complex matrix, with several applications in signal processing and statistics.
The SVD can be seen as a generalization of the spectral theorem, which says that normal matrices can be diagonalized using a basis of eigenvectors, to arbitrary, not necessarily square, matrices.
- 1 Statement of the theorem
- 2 Singular values, singular vectors, and their relation to the SVD
- 3 Relation to eigenvalue decomposition
- 4 Geometric meaning
- 5 Reduced SVDs
- 6 Norms
- 7 Bounded operators on Hilbert spaces
- 8 Applications of the SVD
- 9 Computation of the SVD
- 10 History
- 11 See also
- 12 External links
- 13 References
Statement of the theorem
Suppose M is an m-by-n matrix whose entries come from the field K, which is either the field of real numbers or the field of complex numbers. Then there exists a factorization of the form- [M = U\Sigma V^*, \,\!]
- The matrix V thus contains a set of orthonormal "input" or "analysing" basis vector directions for M
- The matrix U contains a set of orthonormal "output" basis vector directions for M
- The matrix Σ contains the singular values, which can be thought of as scalar "gain controls" by which each corresponding input is multiplied to give a corresponding output.
Singular values, singular vectors, and their relation to the SVD
A non-negative real number σ is a singular value for M if and only if there exist normalized vectors u in Km and v in Kn such that- [Mv = \sigma u \,\mbox M^*u = \sigma v. \,\!]
In any singular value decomposition
- [M = U\Sigma V^* \,\!]
- An m × n matrix M has at least one and at most [p = \min(m,n)] distinct singular values.
- It is always possible to find a unitary basis for Km consisting of left-singular vectors of M.
- It is always possible to find a unitary basis for Kn consisting of right-singular vectors of M.
Non-degenerate singular values always have unique left and right singular vectors, up to multiplication by a unit phase factor eiφ (for the real case up to sign). Consequently, if all singular values of M are non-degenerate and non-zero, then its singular value decomposition is unique, up to multiplication of a column of U by a unit phase factor and simultaneous multiplication of the corresponding column of V by the same unit phase factor.
Degenerate singular values, by definition, have non-unique singular vectors. Furthermore, if [u_] and [u_] are two left-singular vectors which both correspond to the singular value [\sigma], then any normalized linear combination of the two vectors is also a left singular vector corresponding to the singular value [\sigma]. The similar statement is true for right singular vectors. Consequently, if M has degenerate singular values, then its singular value decomposition is not unique.
Relation to eigenvalue decomposition
The singular value decomposition is very general in the sense that it can be applied to any m × n matrix. The eigenvalue decomposition, on the other hand, can only be applied to certain classes of square matrices. Nevertheless, the two decompositions are related.
In the special case that M is a Hermitian matrix which is positive semi-definite, i.e., all its eigenvalues are real and non-negative, then the singular values and singular vectors coincide with the eigenvalues and eigenvectors of M,
- [M = V \Lambda V^*\,]
- [M^ M = V \Sigma^ U^\, U \Sigma V^ =V (\Sigma^ \Sigma) V^\,]
- [M M^ = U \Sigma V^ \, V \Sigma^ U^ =U (\Sigma \Sigma^) U^\,]
Geometric meaning
Because U and V are unitary, we know that the columns u1,...,um of U yield an orthonormal basis of Km and the columns v1,...,vn of V yield an orthonormal basis of Kn (with respect to the standard scalar products on these spaces).The linear transformation T: Kn → Km that takes a vector x to Mx has a particularly simple description with respect to these orthonormal bases: we have T(vi) = σi ui, for i = 1,...,min(m,n), where σi is the i-th diagonal entry of Σ, and T(vi) = 0 for i > min(m,n).
The geometric content of the SVD theorem can thus be summarized as follows: for every linear map T: Kn → Km one can find orthonormal bases of Kn and Km such that T maps the i-th basis vector of Kn to a non-negative multiple of the i-th basis vector of Km, and sends the left-over basis vectors to zero. With respect to these bases, the map T is therefore represented by a diagonal matrix with non-negative real diagonal entries.
Reduced SVDs
In applications it is quite unusual for the full SVD, including a full unitary decomposition of the null-space of the matrix, to be required. Instead, it is often sufficient (as well as faster, and more economical for storage) to compute a reduced version of the SVD. The following can be distinguished for an m×n matrix M of rank r:
Thin SVD
- [M = U_n \Sigma_n V^ \,]
The first stage in the calculation of a thin SVD will usually be a QR decomposition of M, which can make for a significantly quicker calculation if n<<m.
Compact SVD
- [M = U_r \Sigma_r V_r^*]
Truncated SVD
- [\tilde = U_t \Sigma_t V_t^*]
Of course the truncated SVD is no longer an exact decomposition of the original matrix M, but as discussed below, the approximate matrix [\tilde] is in a very useful sense the closest approximation to M that can be achieved by a matrix of rank t.
Norms
The sum of the k largest singular values of M is a matrix norm, the Ky Fan k-norm of M. The Ky Fan 1-norm is just the operator norm of M as a linear operator with respect to the Euclidean norms of Km and Kn. The square root of the sum of squares of the singular values is the Frobenius norm of M.Bounded operators on Hilbert spaces
The factorization [M = U\Sigma V^*] can be extended to a bounded operator M on a separable Hilbert space H. Namely, for any bounded operator M, there exist a partial isometry U, an unitary V, a measure space (X, μ), and a non-negative measurable f such that
- [\; M = U T_f V^* ]
This can be shown by mimicking the argument for the matricial case. [\; V T_f V^*] is the unique positive square root of [M^* M], as given by the Borel functional calculus for self adjoint operators. The reason why U need not be unitary is because, unlike the finite dimensional case, given a isometry [U_1] with non trivial kernel, a suitable [U_2] may not be found such that
- [\begin U_1 \\ U_2 \end]
As for matrices, the singular value factorization is equivalent to the polar decomposition for operators: we can simply write [M = U V^* \cdot V T_f V^*] and notice that [U V^*] is still a partial isometry while [V T_f V^*] is positive.
To extend notion of singular values and left/right-singular eigenvectors to the operator case, one needs to restrict to compact operators. It is a general fact that compact operators on Banach spaces, therefore Hilbert spaces, have only discrete spectrum. If M is compact, so is [M^*M]. Therefore the unitary image of its positive square root [T_f] has a set of orthonormal eigenvectors [\.] corresponding to strictly positive eigenvalues [\]. For any [\psi \in H],
- [\; M \psi = U T_f V^* \psi = \sum_i \langle U T_f V^* \psi, U e_i \rangle U e_i = \sum_i \sigma_i \langle \psi, V e_i \rangle U e_i. ]
Applications of the SVD
Pseudoinverse
The singular value decomposition can be used for computing the pseudoinverse of a matrix. Indeed, the pseudoinverse of the matrix M with singular value decomposition [ M = U\Sigma V^*] is
- [ M^+ = V \Sigma^+ U^*, \,]
Range, null space and rank
Another application of the SVD is that it provides an explicit representation of the range and null space of a matrix M. The right singular vectors corresponding to vanishing singular values of M span the null space of M. The left singular vectors corresponding to the non-zero singluar vectors of M span the range of M. As a consequence, the rank of M equals the number of non-zero singular values of M. Furthermore, the ranks of M, [M^*M] and [M M^*] must be the same. [M^*M] and [M M^*] have the same non-zero eigenvalues.
In numerical linear algebra the singular values can be used to determine the effective rank of a matrix, as rounding error may lead to small but non-zero singular values in a rank deficient matrix.
Matrix approximation
Some practical applications need to solve the problem of approximating a matrix [M] with another matrix [\tilde] which has a specific rank [r]. In the case that the approximation is based on minimizing the Frobenius norm of the difference between [M] and [\tilde] under the constraint that [\mbox(\tilde) = r] it turns out that the solution is given by the SVD of [M], namely
- [\tilde = U \tilde V^]
Other examples
The SVD is also applied extensively to the study of linear inverse problems, and is useful in the analysis of regularization methods such as that of Tikhonov. It is widely used in statistics where it is related to principal component analysis, and in signal processing and pattern recognition. It is also used in output-only modal analysis, where the non-scaled mode shapes can be determined from the singular vectors.
One application of SVD to rather large matrices is in numerical weather prediction, where Lanczos methods are used to estimate the most linearly quickly growing few perturbations to the central numerical weather prediction over a given initial forward time period -- ie the singular vectors corresponding to the largest singular values of the linearised propagator for the global weather over that time interval. The output singular vectors in this case are entire weather systems! These perturbations are then run through the full nonlinear model to generate an ensemble forecast, giving a handle on some of the uncertainty that should be allowed for around the current central prediction.
Computation of the SVD
The LAPACK subroutine [DGESVD] represents a typical approach to the computation of the singular value decomposition. If the matrix has more rows than columns a QR decomposition is first performed. The factor R is then reduced to a bidiagonal matrix. The desired singular values and vectors are then found by performing a bidiagonal QR iteration, using the LAPACK routine [DBDSQR] (See Demmel and Kahan for details).The GNU Scientific Library offers four functions, one with the Golub-Rinsch algorithm, one with the modified Golub-Rinsch algorithm (faster for matrices with many more rows than columns), one with a one-sided Jacobi orthogonalization and one which uses only non-zero singular values. See the [GSL manual page on SVD].
History
The singular value decomposition was originally developed by differential geometers, who wished to determine whether a real bilinear forms could be made equal to another by independent orthogonal transformations of the two spaces it acts on. Eugenio Beltrami and Camille Jordan discovered independently, in 1873 and 1874 respectively, that the singular values of the bilinear forms, represented as a matrix, form a complete set of invariants for bilinear forms under orthogonal substitutions. James Joseph Sylvester also arrived at the singular value decomposition for real square matrices in 1889, apparently independent of both Beltrami and Jordan. Sylvester called the singular values the canonical multipliers of the matrix A. The fourth mathematician to discover the singular value decomposition independently is Autonne in 1915, who arrived at it via the polar decomposition. The first proof of the singular value decomposition for rectangular and complex matrices seems to be by Eckart and Young in 1936; they saw it as a generalization of the principal axis transformation for Hermitian matrices.
In 1907, Erhard Schmidt defined an analog of singular values for integral operators (which are compact, under some weak technical assumptions); it seems he was unaware of the parallel work on singular values of finite matrices. This theory was further developed by Émile Picard in 1910, who is the first to call the numbers [\sigma_k] singular values (or rather, valeurs singulières).
See also
- matrix decomposition
- s-number
- generalized singular value decomposition
- polar decomposition
- empirical orthogonal functions (EOFs)
- canonical correlation analysis (CCA)
- latent semantic analysis
External links
- [LAPACK users manual] gives details of subroutines to calculate the SVD (see also [link]).
- [Applications of SVD] on PC Hansen's web site.
- [Introduction to the Singular Value Decomposition] by Todd Will of the University of Wisconsin--La Crosse. This site has animations for the visual minded as well as demonstrations of compression using SVD.
- [Los Alamos group's book chapter] has helpful gene data analysis examples.
- [MIT Lecture] series by Gilbert Strang. See Lecture #29 on the SVD.
- [Java SVD] library routine.
- [Java applet] demonstrating the SVD.
- [Java script] demonstrating the SVD more extensively, paste your data from a spreadsheet.
- [Chapter from "Numerical Recipes in C"] gives more information about implementation and applications of SVD.
- [Online Matrix Calculator] Performs singular value decomposition of matrices.
References
- Demmel, J. and Kahan, W. (1990). Computing Small Singular Values of Bidiagonal Matrices With Guaranteed High Relative Accuracy. SIAM J. Sci. Statist. Comput., 11 (5), 873-912.
- Golub, G. H. and Van Loan, C. F. (1996). "Matrix Computations". 3rd ed., Johns Hopkins University Press, Baltimore. ISBN 0801854148.
- Eckart, C., & Young, G. (1936). The approximation of one matrix by another of lower rank. Psychometrika, I, 211-218.
- Halldor, Bjornsson and Venegas, Silvia A. (1997). ["A manual for EOF and SVD analyses of climate data"]. McGill University, CCGCR Report No. 97-1, Montréal, Québec, 52pp.
- Hansen, P. C. (1987). The truncated SVD as a method for regularization. BIT, 27, 534-553.
- Horn, Roger A. and Johnson, Charles R (1985). "Matrix Analysis". Section 7.3. Cambridge University Press. ISBN 0-521-38632-2.
- Horn, Roger A. and Johnson, Charles R (1991). Topics in Matrix Analysis, Chapter 3. Cambridge University Press. ISBN 0-521-46713-6.
- Strang G (1998). "Introduction to Linear Algebra". Section 6.7. 3rd ed., Wellesley-Cambridge Press. ISBN 0961408855.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
