fbpx
Wikipedia

Singular value decomposition

In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix into a rotation, followed by a rescaling followed by another rotation. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any matrix. It is related to the polar decomposition.

Illustration of the singular value decomposition UΣV of a real 2 × 2 matrix M.
  • Top: The action of M, indicated by its effect on the unit disc D and the two canonical unit vectors e1 and e2.
  • Left: The action of V, a rotation, on D, e1, and e2.
  • Bottom: The action of Σ, a scaling by the singular values σ1 horizontally and σ2 vertically.
  • Right: The action of U, another rotation.

Specifically, the singular value decomposition of an complex matrix is a factorization of the form where is an complex unitary matrix, is an rectangular diagonal matrix with non-negative real numbers on the diagonal, is an complex unitary matrix, and is the conjugate transpose of . Such decomposition always exists for any complex matrix. If is real, then and can be guaranteed to be real orthogonal matrices; in such contexts, the SVD is often denoted

The diagonal entries of are uniquely determined by and are known as the singular values of . The number of non-zero singular values is equal to the rank of . The columns of and the columns of are called left-singular vectors and right-singular vectors of , respectively. They form two sets of orthonormal bases and and if they are sorted so that the singular values with value zero are all in the highest-numbered columns (or rows), the singular value decomposition can be written as

where is the rank of

The SVD is not unique, however it is always possible to choose the decomposition such that the singular values are in descending order. In this case, (but not and ) is uniquely determined by

The term sometimes refers to the compact SVD, a similar decomposition in which is square diagonal of size where is the rank of and has only the non-zero singular values. In this variant, is an semi-unitary matrix and is an semi-unitary matrix, such that

Mathematical applications of the SVD include computing the pseudoinverse, matrix approximation, and determining the rank, range, and null space of a matrix. The SVD is also extremely useful in all areas of science, engineering, and statistics, such as signal processing, least squares fitting of data, and process control.

Intuitive interpretations edit

 
Animated illustration of the SVD of a 2D, real shearing matrix M. First, we see the unit disc in blue together with the two canonical unit vectors. We then see the actions of M, which distorts the disk to an ellipse. The SVD decomposes M into three simple transformations: an initial rotation V, a scaling   along the coordinate axes, and a final rotation U. The lengths σ1 and σ2 of the semi-axes of the ellipse are the singular values of M, namely Σ1,1 and Σ2,2.
 
Visualization of the matrix multiplications in singular value decomposition

Rotation, coordinate scaling, and reflection edit

In the special case when   is an   real square matrix, the matrices   and   can be chosen to be real   matrices too. In that case, "unitary" is the same as "orthogonal". Then, interpreting both unitary matrices as well as the diagonal matrix, summarized here as   as a linear transformation   of the space   the matrices   and   represent rotations or reflection of the space, while   represents the scaling of each coordinate   by the factor   Thus the SVD decomposition breaks down any linear transformation of   into a composition of three geometrical transformations: a rotation or reflection ( ), followed by a coordinate-by-coordinate scaling ( ), followed by another rotation or reflection ( ).

In particular, if   has a positive determinant, then   and   can be chosen to be both rotations with reflections, or both rotations without reflections.[citation needed] If the determinant is negative, exactly one of them will have a reflection. If the determinant is zero, each can be independently chosen to be of either type.

If the matrix   is real but not square, namely   with   it can be interpreted as a linear transformation from   to   Then   and   can be chosen to be rotations/reflections of   and   respectively; and   besides scaling the first   coordinates, also extends the vector with zeros, i.e. removes trailing coordinates, so as to turn   into  

Singular values as semiaxes of an ellipse or ellipsoid edit

As shown in the figure, the singular values can be interpreted as the magnitude of the semiaxes of an ellipse in 2D. This concept can be generalized to  -dimensional Euclidean space, with the singular values of any   square matrix being viewed as the magnitude of the semiaxis of an  -dimensional ellipsoid. Similarly, the singular values of any   matrix can be viewed as the magnitude of the semiaxis of an  -dimensional ellipsoid in  -dimensional space, for example as an ellipse in a (tilted) 2D plane in a 3D space. Singular values encode magnitude of the semiaxis, while singular vectors encode direction. See below for further details.

The columns of U and V are orthonormal bases edit

Since   and   are unitary, the columns of each of them form a set of orthonormal vectors, which can be regarded as basis vectors. The matrix   maps the basis vector   to the stretched unit vector   By the definition of a unitary matrix, the same is true for their conjugate transposes   and   except the geometric interpretation of the singular values as stretches is lost. In short, the columns of       and   are orthonormal bases. When   is a positive-semidefinite Hermitian matrix,   and   are both equal to the unitary matrix used to diagonalize   However, when   is not positive-semidefinite and Hermitian but still diagonalizable, its eigendecomposition and singular value decomposition are distinct.

Relation to the four fundamental subspaces edit

  • The first   columns of   are a basis of the column space of  .
  • The last   columns of   are a basis of the null space of  .
  • The first   columns of   are a basis of the column space of   (the row space of   in the real case).
  • The last   columns of   are a basis of the null space of  .

Geometric meaning edit

Because   and   are unitary, we know that the columns   of   yield an orthonormal basis of   and the columns   of   yield an orthonormal basis of   (with respect to the standard scalar products on these spaces).

The linear transformation

 

has a particularly simple description with respect to these orthonormal bases: we have

 

where   is the  -th diagonal entry of   and   for  

The geometric content of the SVD theorem can thus be summarized as follows: for every linear map   one can find orthonormal bases of   and   such that   maps the  -th basis vector of   to a non-negative multiple of the  -th basis vector of   and sends the left-over basis vectors to zero. With respect to these bases, the map   is therefore represented by a diagonal matrix with non-negative real diagonal entries.

To get a more visual flavor of singular values and SVD factorization – at least when working on real vector spaces – consider the sphere   of radius one in   The linear map   maps this sphere onto an ellipsoid in   Non-zero singular values are simply the lengths of the semi-axes of this ellipsoid. Especially when   and all the singular values are distinct and non-zero, the SVD of the linear map   can be easily analyzed as a succession of three consecutive moves: consider the ellipsoid   and specifically its axes; then consider the directions in   sent by   onto these axes. These directions happen to be mutually orthogonal. Apply first an isometry   sending these directions to the coordinate axes of   On a second move, apply an endomorphism   diagonalized along the coordinate axes and stretching or shrinking in each direction, using the semi-axes lengths of   as stretching coefficients. The composition   then sends the unit-sphere onto an ellipsoid isometric to   To define the third and last move, apply an isometry   to this ellipsoid to obtain   As can be easily checked, the composition   coincides with  

Example edit

Consider the   matrix

 

A singular value decomposition of this matrix is given by  

 

The scaling matrix   is zero outside of the diagonal (grey italics) and one diagonal element is zero (red bold, light blue bold in dark mode). Furthermore, because the matrices   and   are unitary, multiplying by their respective conjugate transposes yields identity matrices, as shown below. In this case, because   and   are real valued, each is an orthogonal matrix.

 

This particular singular value decomposition is not unique. Choosing   such that

 

is also a valid singular value decomposition.

SVD and spectral decomposition edit

Singular values, singular vectors, and their relation to the SVD edit

A non-negative real number   is a singular value for   if and only if there exist unit-length vectors   in   and   in   such that

 

The vectors   and   are called left-singular and right-singular vectors for   respectively.

In any singular value decomposition

 

the diagonal entries of   are equal to the singular values of   The first   columns of   and   are, respectively, left- and right-singular vectors for the corresponding singular values. Consequently, the above theorem implies that:

  • An   matrix   has at most   distinct singular values.
  • It is always possible to find a unitary basis   for   with a subset of basis vectors spanning the left-singular vectors of each singular value of  
  • It is always possible to find a unitary basis   for   with a subset of basis vectors spanning the right-singular vectors of each singular value of  

A singular value for which we can find two left (or right) singular vectors that are linearly independent is called degenerate. If   and   are two left-singular vectors which both correspond to the singular value σ, then any normalized linear combination of the two vectors is also a left-singular vector corresponding to the singular value σ. The similar statement is true for right-singular vectors. The number of independent left and right-singular vectors coincides, and these singular vectors appear in the same columns of   and   corresponding to diagonal elements of   all with the same value  

As an exception, the left and right-singular vectors of singular value 0 comprise all unit vectors in the cokernel and kernel, respectively, of   which by the rank–nullity theorem cannot be the same dimension if   Even if all singular values are nonzero, if   then the cokernel is nontrivial, in which case   is padded with   orthogonal vectors from the cokernel. Conversely, if   then   is padded by   orthogonal vectors from the kernel. However, if the singular value of   exists, the extra columns of   or   already appear as left or right-singular vectors.

Non-degenerate singular values always have unique left- and right-singular vectors, up to multiplication by a unit-phase factor   (for the real case up to a sign). Consequently, if all singular values of a square matrix   are non-degenerate and non-zero, then its singular value decomposition is unique, up to multiplication of a column of   by a unit-phase factor and simultaneous multiplication of the corresponding column of   by the same unit-phase factor. In general, the SVD is unique up to arbitrary unitary transformations applied uniformly to the column vectors of both   and   spanning the subspaces of each singular value, and up to arbitrary unitary transformations on vectors of   and   spanning the kernel and cokernel, respectively, of  

Relation to eigenvalue decomposition edit

The singular value decomposition is very general in the sense that it can be applied to any   matrix, whereas eigenvalue decomposition can only be applied to square diagonalizable matrices. Nevertheless, the two decompositions are related.

If   has SVD   the following two relations hold:

 

The right-hand sides of these relations describe the eigenvalue decompositions of the left-hand sides. Consequently:

  • The columns of   (referred to as right-singular vectors) are eigenvectors of  
  • The columns of   (referred to as left-singular vectors) are eigenvectors of  
  • The non-zero elements of   (non-zero singular values) are the square roots of the non-zero eigenvalues of   or  

In the special case of   being a normal matrix, and thus also square, the spectral theorem ensures that it can be unitarily diagonalized using a basis of eigenvectors, and thus decomposed as   for some unitary matrix   and diagonal matrix   with complex elements   along the diagonal. When   is positive semi-definite,   will be non-negative real numbers so that the decomposition   is also a singular value decomposition. Otherwise, it can be recast as an SVD by moving the phase   of each   to either its corresponding   or   The natural connection of the SVD to non-normal matrices is through the polar decomposition theorem:   where   is positive semidefinite and normal, and   is unitary.

Thus, except for positive semi-definite matrices, the eigenvalue decomposition and SVD of   while related, differ: the eigenvalue decomposition is   where   is not necessarily unitary and   is not necessarily positive semi-definite, while the SVD is   where   is diagonal and positive semi-definite, and   and   are unitary matrices that are not necessarily related except through the matrix   While only non-defective square matrices have an eigenvalue decomposition, any   matrix has a SVD.

Applications of the SVD edit

Pseudoinverse edit

The singular value decomposition can be used for computing the pseudoinverse of a matrix. The pseudoinverse of the matrix   with singular value decomposition   is,

 

where   is the pseudoinverse of  , which is formed by replacing every non-zero diagonal entry by its reciprocal and transposing the resulting matrix. The pseudoinverse is one way to solve linear least squares problems.

Solving homogeneous linear equations edit

A set of homogeneous linear equations can be written as   for a matrix   and vector   A typical situation is that   is known and a non-zero   is to be determined which satisfies the equation. Such an   belongs to  's null space and is sometimes called a (right) null vector of   The vector   can be characterized as a right-singular vector corresponding to a singular value of   that is zero. This observation means that if   is a square matrix and has no vanishing singular value, the equation has no non-zero   as a solution. It also means that if there are several vanishing singular values, any linear combination of the corresponding right-singular vectors is a valid solution. Analogously to the definition of a (right) null vector, a non-zero   satisfying   with   denoting the conjugate transpose of   is called a left null vector of  

Total least squares minimization edit

A total least squares problem seeks the vector   that minimizes the 2-norm of a vector   under the constraint   The solution turns out to be the right-singular vector of   corresponding to the smallest singular value.

Range, null space and rank edit

Another application of the SVD is that it provides an explicit representation of the range and null space of a matrix   The right-singular vectors corresponding to vanishing singular values of   span the null space of   and the left-singular vectors corresponding to the non-zero singular values of   span the range of   For example, in the above example the null space is spanned by the last row of   and the range is spanned by the first three columns of  

As a consequence, the rank of   equals the number of non-zero singular values which is the same as the number of non-zero diagonal elements in  . 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. Singular values beyond a significant gap are assumed to be numerically equivalent to zero.

Low-rank matrix approximation edit

Some practical applications need to solve the problem of approximating a matrix   with another matrix  , said to be truncated, which has a specific rank  . In the case that the approximation is based on minimizing the Frobenius norm of the difference between   and   under the constraint that   it turns out that the solution is given by the SVD of   namely

 

where   is the same matrix as   except that it contains only the   largest singular values (the other singular values are replaced by zero). This is known as the Eckart–Young theorem, as it was proved by those two authors in 1936 (although it was later found to have been known to earlier authors; see Stewart 1993).

Separable models edit

The SVD can be thought of as decomposing a matrix into a weighted, ordered sum of separable matrices. By separable, we mean that a matrix   can be written as an outer product of two vectors   or, in coordinates,   Specifically, the matrix   can be decomposed as,

 

Here   and   are the  -th columns of the corresponding SVD matrices,   are the ordered singular values, and each   is separable. The SVD can be used to find the decomposition of an image processing filter into separable horizontal and vertical filters. Note that the number of non-zero   is exactly the rank of the matrix.[citation needed] Separable models often arise in biological systems, and the SVD factorization is useful to analyze such systems. For example, some visual area V1 simple cells' receptive fields can be well described[1] by a Gabor filter in the space domain multiplied by a modulation function in the time domain. Thus, given a linear filter evaluated through, for example, reverse correlation, one can rearrange the two spatial dimensions into one dimension, thus yielding a two-dimensional filter (space, time) which can be decomposed through SVD. The first column of   in the SVD factorization is then a Gabor while the first column of   represents the time modulation (or vice versa). One may then define an index of separability

 

which is the fraction of the power in the matrix M which is accounted for by the first separable matrix in the decomposition.[2]

Nearest orthogonal matrix edit

It is possible to use the SVD of a square matrix   to determine the orthogonal matrix   closest to   The closeness of fit is measured by the Frobenius norm of   The solution is the product  [3] This intuitively makes sense because an orthogonal matrix would have the decomposition   where   is the identity matrix, so that if   then the product   amounts to replacing the singular values with ones. Equivalently, the solution is the unitary matrix   of the Polar Decomposition   in either order of stretch and rotation, as described above.

A similar problem, with interesting applications in shape analysis, is the orthogonal Procrustes problem, which consists of finding an orthogonal matrix   which most closely maps   to   Specifically,

 

where   denotes the Frobenius norm.

This problem is equivalent to finding the nearest orthogonal matrix to a given matrix  .

The Kabsch algorithm edit

The Kabsch algorithm (called Wahba's problem in other fields) uses SVD to compute the optimal rotation (with respect to least-squares minimization) that will align a set of points with a corresponding set of points. It is used, among other applications, to compare the structures of molecules.

Signal processing edit

The SVD and pseudoinverse have been successfully applied to signal processing,[4] image processing[5] and big data (e.g., in genomic signal processing).[6][7][8][9]

Other examples edit

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 to correspondence 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. Yet another usage is latent semantic indexing in natural-language text processing.

In general numerical computation involving linear or linearized systems, there is a universal constant that characterizes the regularity or singularity of a problem, which is the system's "condition number"  . It often controls the error rate or convergence rate of a given computational scheme on such systems.[10][11]

The SVD also plays a crucial role in the field of quantum information, in a form often referred to as the Schmidt decomposition. Through it, states of two quantum systems are naturally decomposed, providing a necessary and sufficient condition for them to be entangled: if the rank of the   matrix is larger than one.

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; i.e., the singular vectors corresponding to the largest singular values of the linearized 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.

SVD has also been applied to reduced order modelling. The aim of reduced order modelling is to reduce the number of degrees of freedom in a complex system which is to be modeled. SVD was coupled with radial basis functions to interpolate solutions to three-dimensional unsteady flow problems.[12]

Interestingly, SVD has been used to improve gravitational waveform modeling by the ground-based gravitational-wave interferometer aLIGO.[13] SVD can help to increase the accuracy and speed of waveform generation to support gravitational-waves searches and update two different waveform models.

Singular value decomposition is used in recommender systems to predict people's item ratings.[14] Distributed algorithms have been developed for the purpose of calculating the SVD on clusters of commodity machines.[15]

Low-rank SVD has been applied for hotspot detection from spatiotemporal data with application to disease outbreak detection.[16] A combination of SVD and higher-order SVD also has been applied for real time event detection from complex data streams (multivariate data with space and time dimensions) in disease surveillance.[17]

In astrodynamics, the SVD and its variants are used as an option to determine suitable maneuver directions for transfer trajectory design[18] and orbital station-keeping.[19]

Proof of existence edit

An eigenvalue   of a matrix   is characterized by the algebraic relation   When   is Hermitian, a variational characterization is also available. Let   be a real   symmetric matrix. Define

 

By the extreme value theorem, this continuous function attains a maximum at some   when restricted to the unit sphere   By the Lagrange multipliers theorem,   necessarily satisfies

 

for some real number   The nabla symbol,  , is the del operator (differentiation with respect to  ). Using the symmetry of   we obtain

 

Therefore   so   is a unit length eigenvector of   For every unit length eigenvector   of   its eigenvalue is   so   is the largest eigenvalue of   The same calculation performed on the orthogonal complement of   gives the next largest eigenvalue and so on. The complex Hermitian case is similar; there   is a real-valued function of   real variables.

Singular values are similar in that they can be described algebraically or from variational principles. Although, unlike the eigenvalue case, Hermiticity, or symmetry, of

singular, value, decomposition, linear, algebra, singular, value, decomposition, factorization, real, complex, matrix, into, rotation, followed, rescaling, followed, another, rotation, generalizes, eigendecomposition, square, normal, matrix, with, orthonormal,. In linear algebra the singular value decomposition SVD is a factorization of a real or complex matrix into a rotation followed by a rescaling followed by another rotation It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any m n displaystyle m times n matrix It is related to the polar decomposition Illustration of the singular value decomposition USV of a real 2 2 matrix M Top The action of M indicated by its effect on the unit disc D and the two canonical unit vectors e1 and e2 Left The action of V a rotation on D e1 and e2 Bottom The action of S a scaling by the singular values s1 horizontally and s2 vertically Right The action of U another rotation Specifically the singular value decomposition of an m n displaystyle m times n complex matrix M displaystyle mathbf M is a factorization of the form M U S V displaystyle mathbf M mathbf U Sigma V where U displaystyle mathbf U is an m m displaystyle m times m complex unitary matrix S displaystyle mathbf Sigma is an m n displaystyle m times n rectangular diagonal matrix with non negative real numbers on the diagonal V displaystyle mathbf V is an n n displaystyle n times n complex unitary matrix and V displaystyle mathbf V is the conjugate transpose of V displaystyle mathbf V Such decomposition always exists for any complex matrix If M displaystyle mathbf M is real then U displaystyle mathbf U and V displaystyle mathbf V can be guaranteed to be real orthogonal matrices in such contexts the SVD is often denoted U S V T displaystyle mathbf U mathbf Sigma mathbf V mathrm T The diagonal entries s i S i i displaystyle sigma i Sigma ii of S displaystyle mathbf Sigma are uniquely determined by M displaystyle mathbf M and are known as the singular values of M displaystyle mathbf M The number of non zero singular values is equal to the rank of M displaystyle mathbf M The columns of U displaystyle mathbf U and the columns of V displaystyle mathbf V are called left singular vectors and right singular vectors of M displaystyle mathbf M respectively They form two sets of orthonormal bases u 1 u m displaystyle mathbf u 1 ldots mathbf u m and v 1 v n displaystyle mathbf v 1 ldots mathbf v n and if they are sorted so that the singular values s i displaystyle sigma i with value zero are all in the highest numbered columns or rows the singular value decomposition can be written asM i 1 r s i u i v i displaystyle mathbf M sum i 1 r sigma i mathbf u i mathbf v i where r min m n displaystyle r leq min m n is the rank of M displaystyle mathbf M The SVD is not unique however it is always possible to choose the decomposition such that the singular values S i i displaystyle Sigma ii are in descending order In this case S displaystyle mathbf Sigma but not U displaystyle mathbf U and V displaystyle mathbf V is uniquely determined by M displaystyle mathbf M The term sometimes refers to the compact SVD a similar decomposition M U S V displaystyle mathbf M mathbf U Sigma V in which S displaystyle mathbf Sigma is square diagonal of size r r displaystyle r times r where r min m n displaystyle r leq min m n is the rank of M displaystyle mathbf M and has only the non zero singular values In this variant U displaystyle mathbf U is an m r displaystyle m times r semi unitary matrix and V displaystyle mathbf V is an gt n r displaystyle gt n times r semi unitary matrix such that U U V V I r displaystyle mathbf U mathbf U mathbf V mathbf V mathbf I r Mathematical applications of the SVD include computing the pseudoinverse matrix approximation and determining the rank range and null space of a matrix The SVD is also extremely useful in all areas of science engineering and statistics such as signal processing least squares fitting of data and process control Contents 1 Intuitive interpretations 1 1 Rotation coordinate scaling and reflection 1 2 Singular values as semiaxes of an ellipse or ellipsoid 1 3 The columns of U and V are orthonormal bases 1 4 Relation to the four fundamental subspaces 1 5 Geometric meaning 2 Example 3 SVD and spectral decomposition 3 1 Singular values singular vectors and their relation to the SVD 3 2 Relation to eigenvalue decomposition 4 Applications of the SVD 4 1 Pseudoinverse 4 2 Solving homogeneous linear equations 4 3 Total least squares minimization 4 4 Range null space and rank 4 5 Low rank matrix approximation 4 6 Separable models 4 7 Nearest orthogonal matrix 4 8 The Kabsch algorithm 4 9 Signal processing 4 10 Other examples 5 Proof of existence 5 1 Based on the spectral theorem 5 2 Based on variational characterization 6 Calculating the SVD 6 1 One sided Jacobi algorithm 6 2 Two sided Jacobi algorithm 6 3 Numerical approach 6 4 Analytic result of 2 2 SVD 7 Reduced SVDs 7 1 Thin SVD 7 2 Compact SVD 7 3 Truncated SVD 8 Norms 8 1 Ky Fan norms 8 2 Hilbert Schmidt norm 9 Variations and generalizations 9 1 Scale invariant SVD 9 2 Bounded operators on Hilbert spaces 9 3 Singular values and compact operators 10 History 11 See also 12 Notes 13 References 14 External linksIntuitive interpretations edit nbsp Animated illustration of the SVD of a 2D real shearing matrix M First we see the unit disc in blue together with the two canonical unit vectors We then see the actions of M which distorts the disk to an ellipse The SVD decomposes M into three simple transformations an initial rotation V a scaling S displaystyle mathbf Sigma nbsp along the coordinate axes and a final rotation U The lengths s1 and s2 of the semi axes of the ellipse are the singular values of M namely S1 1 and S2 2 nbsp Visualization of the matrix multiplications in singular value decomposition Rotation coordinate scaling and reflection edit In the special case when M displaystyle mathbf M nbsp is an m m displaystyle m times m nbsp real square matrix the matrices U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp can be chosen to be real m m displaystyle m times m nbsp matrices too In that case unitary is the same as orthogonal Then interpreting both unitary matrices as well as the diagonal matrix summarized here as A displaystyle mathbf A nbsp as a linear transformation x A x displaystyle mathbf x mapsto mathbf Ax nbsp of the space R m displaystyle mathbf R m nbsp the matrices U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp represent rotations or reflection of the space while S displaystyle mathbf Sigma nbsp represents the scaling of each coordinate x i displaystyle mathbf x i nbsp by the factor s i displaystyle sigma i nbsp Thus the SVD decomposition breaks down any linear transformation of R m displaystyle mathbf R m nbsp into a composition of three geometrical transformations a rotation or reflection V displaystyle mathbf V nbsp followed by a coordinate by coordinate scaling S displaystyle mathbf Sigma nbsp followed by another rotation or reflection U displaystyle mathbf U nbsp In particular if M displaystyle mathbf M nbsp has a positive determinant then U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp can be chosen to be both rotations with reflections or both rotations without reflections citation needed If the determinant is negative exactly one of them will have a reflection If the determinant is zero each can be independently chosen to be of either type If the matrix M displaystyle mathbf M nbsp is real but not square namely m n displaystyle m times n nbsp with m n displaystyle m neq n nbsp it can be interpreted as a linear transformation from R n displaystyle mathbf R n nbsp to R m displaystyle mathbf R m nbsp Then U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp can be chosen to be rotations reflections of R m displaystyle mathbf R m nbsp and R n displaystyle mathbf R n nbsp respectively and S displaystyle mathbf Sigma nbsp besides scaling the first min m n displaystyle min m n nbsp coordinates also extends the vector with zeros i e removes trailing coordinates so as to turn R n displaystyle mathbf R n nbsp into R m displaystyle mathbf R m nbsp Singular values as semiaxes of an ellipse or ellipsoid edit As shown in the figure the singular values can be interpreted as the magnitude of the semiaxes of an ellipse in 2D This concept can be generalized to n displaystyle n nbsp dimensional Euclidean space with the singular values of any n n displaystyle n times n nbsp square matrix being viewed as the magnitude of the semiaxis of an n displaystyle n nbsp dimensional ellipsoid Similarly the singular values of any m n displaystyle m times n nbsp matrix can be viewed as the magnitude of the semiaxis of an n displaystyle n nbsp dimensional ellipsoid in m displaystyle m nbsp dimensional space for example as an ellipse in a tilted 2D plane in a 3D space Singular values encode magnitude of the semiaxis while singular vectors encode direction See below for further details The columns of U and V are orthonormal bases edit Since U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are unitary the columns of each of them form a set of orthonormal vectors which can be regarded as basis vectors The matrix M displaystyle mathbf M nbsp maps the basis vector V i displaystyle mathbf V i nbsp to the stretched unit vector s i U i displaystyle sigma i mathbf U i nbsp By the definition of a unitary matrix the same is true for their conjugate transposes U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp except the geometric interpretation of the singular values as stretches is lost In short the columns of U displaystyle mathbf U nbsp U displaystyle mathbf U nbsp V displaystyle mathbf V nbsp and V displaystyle mathbf V nbsp are orthonormal bases When M displaystyle mathbf M nbsp is a positive semidefinite Hermitian matrix U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are both equal to the unitary matrix used to diagonalize M displaystyle mathbf M nbsp However when M displaystyle mathbf M nbsp is not positive semidefinite and Hermitian but still diagonalizable its eigendecomposition and singular value decomposition are distinct Relation to the four fundamental subspaces edit The first r displaystyle r nbsp columns of U displaystyle mathbf U nbsp are a basis of the column space of M displaystyle mathbf M nbsp The last m r displaystyle m r nbsp columns of U displaystyle mathbf U nbsp are a basis of the null space of M displaystyle mathbf M nbsp The first r displaystyle r nbsp columns of V displaystyle mathbf V nbsp are a basis of the column space of M displaystyle mathbf M nbsp the row space of M displaystyle mathbf M nbsp in the real case The last n r displaystyle n r nbsp columns of V displaystyle mathbf V nbsp are a basis of the null space of M displaystyle mathbf M nbsp Geometric meaning edit Because U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are unitary we know that the columns U 1 U m displaystyle mathbf U 1 ldots mathbf U m nbsp of U displaystyle mathbf U nbsp yield an orthonormal basis of K m displaystyle K m nbsp and the columns V 1 V n displaystyle mathbf V 1 ldots mathbf V n nbsp of V displaystyle mathbf V nbsp yield an orthonormal basis of K n displaystyle K n nbsp with respect to the standard scalar products on these spaces The linear transformationT K n K m x M x displaystyle T left begin aligned K n amp to K m x amp mapsto mathbf M x end aligned right nbsp has a particularly simple description with respect to these orthonormal bases we haveT V i s i U i i 1 min m n displaystyle T mathbf V i sigma i mathbf U i qquad i 1 ldots min m n nbsp where s i displaystyle sigma i nbsp is the i displaystyle i nbsp th diagonal entry of S displaystyle mathbf Sigma nbsp and T V i 0 displaystyle T mathbf V i 0 nbsp for i gt min m n displaystyle i gt min m n nbsp The geometric content of the SVD theorem can thus be summarized as follows for every linear map T K n K m displaystyle T K n to K m nbsp one can find orthonormal bases of K n displaystyle K n nbsp and K m displaystyle K m nbsp such that T displaystyle T nbsp maps the i displaystyle i nbsp th basis vector of K n displaystyle K n nbsp to a non negative multiple of the i displaystyle i nbsp th basis vector of K m displaystyle K m nbsp and sends the left over basis vectors to zero With respect to these bases the map T displaystyle T nbsp is therefore represented by a diagonal matrix with non negative real diagonal entries To get a more visual flavor of singular values and SVD factorization at least when working on real vector spaces consider the sphere S displaystyle S nbsp of radius one in R n displaystyle mathbf R n nbsp The linear map T displaystyle T nbsp maps this sphere onto an ellipsoid in R m displaystyle mathbf R m nbsp Non zero singular values are simply the lengths of the semi axes of this ellipsoid Especially when n m displaystyle n m nbsp and all the singular values are distinct and non zero the SVD of the linear map T displaystyle T nbsp can be easily analyzed as a succession of three consecutive moves consider the ellipsoid T S displaystyle T S nbsp and specifically its axes then consider the directions in R n displaystyle mathbf R n nbsp sent by T displaystyle T nbsp onto these axes These directions happen to be mutually orthogonal Apply first an isometry V displaystyle mathbf V nbsp sending these directions to the coordinate axes of R n displaystyle mathbf R n nbsp On a second move apply an endomorphism D displaystyle mathbf D nbsp diagonalized along the coordinate axes and stretching or shrinking in each direction using the semi axes lengths of T S displaystyle T S nbsp as stretching coefficients The composition D V displaystyle mathbf D circ mathbf V nbsp then sends the unit sphere onto an ellipsoid isometric to T S displaystyle T S nbsp To define the third and last move apply an isometry U displaystyle mathbf U nbsp to this ellipsoid to obtain T S displaystyle T S nbsp As can be easily checked the composition U D V displaystyle mathbf U circ mathbf D circ mathbf V nbsp coincides with T displaystyle T nbsp Example editConsider the 4 5 displaystyle 4 times 5 nbsp matrixM 1 0 0 0 2 0 0 3 0 0 0 0 0 0 0 0 2 0 0 0 displaystyle mathbf M begin bmatrix 1 amp 0 amp 0 amp 0 amp 2 0 amp 0 amp 3 amp 0 amp 0 0 amp 0 amp 0 amp 0 amp 0 0 amp 2 amp 0 amp 0 amp 0 end bmatrix nbsp A singular value decomposition of this matrix is given by U S V displaystyle mathbf U mathbf Sigma mathbf V nbsp U 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 S 3 0 0 0 0 0 5 0 0 0 0 0 2 0 0 0 0 0 0 0 V 0 0 1 0 0 0 2 0 0 0 0 8 0 1 0 0 0 0 0 0 1 0 0 8 0 0 0 0 2 displaystyle begin aligned mathbf U amp begin bmatrix color Green 0 amp color Blue 1 amp color Cyan 0 amp color Emerald 0 color Green 1 amp color Blue 0 amp color Cyan 0 amp color Emerald 0 color Green 0 amp color Blue 0 amp color Cyan 0 amp color Emerald 1 color Green 0 amp color Blue 0 amp color Cyan 1 amp color Emerald 0 end bmatrix 6pt mathbf Sigma amp begin bmatrix 3 amp 0 amp 0 amp 0 amp color Gray mathit 0 0 amp sqrt 5 amp 0 amp 0 amp color Gray mathit 0 0 amp 0 amp 2 amp 0 amp color Gray mathit 0 0 amp 0 amp 0 amp color Red mathbf 0 amp color Gray mathit 0 end bmatrix 6pt mathbf V amp begin bmatrix color Violet 0 amp color Violet 0 amp color Violet 1 amp color Violet 0 amp color Violet 0 color Plum sqrt 0 2 amp color Plum 0 amp color Plum 0 amp color Plum 0 amp color Plum sqrt 0 8 color Magenta 0 amp color Magenta 1 amp color Magenta 0 amp color Magenta 0 amp color Magenta 0 color Orchid 0 amp color Orchid 0 amp color Orchid 0 amp color Orchid 1 amp color Orchid 0 color Purple sqrt 0 8 amp color Purple 0 amp color Purple 0 amp color Purple 0 amp color Purple sqrt 0 2 end bmatrix end aligned nbsp The scaling matrix S displaystyle mathbf Sigma nbsp is zero outside of the diagonal grey italics and one diagonal element is zero red bold light blue bold in dark mode Furthermore because the matrices U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are unitary multiplying by their respective conjugate transposes yields identity matrices as shown below In this case because U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are real valued each is an orthogonal matrix U U 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 I 4 V V 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 I 5 displaystyle begin aligned mathbf U mathbf U amp begin bmatrix 1 amp 0 amp 0 amp 0 0 amp 1 amp 0 amp 0 0 amp 0 amp 1 amp 0 0 amp 0 amp 0 amp 1 end bmatrix mathbf I 4 6pt mathbf V mathbf V amp begin bmatrix 1 amp 0 amp 0 amp 0 amp 0 0 amp 1 amp 0 amp 0 amp 0 0 amp 0 amp 1 amp 0 amp 0 0 amp 0 amp 0 amp 1 amp 0 0 amp 0 amp 0 amp 0 amp 1 end bmatrix mathbf I 5 end aligned nbsp This particular singular value decomposition is not unique Choosing V displaystyle mathbf V nbsp such thatV 0 1 0 0 0 0 0 1 0 0 0 2 0 0 0 0 8 0 4 0 0 0 5 0 1 0 4 0 0 0 5 0 1 displaystyle mathbf V begin bmatrix color Violet 0 amp color Violet 1 amp color Violet 0 amp color Violet 0 amp color Violet 0 color Plum 0 amp color Plum 0 amp color Plum 1 amp color Plum 0 amp color Plum 0 color Magenta sqrt 0 2 amp color Magenta 0 amp color Magenta 0 amp color Magenta 0 amp color Magenta sqrt 0 8 color Orchid sqrt 0 4 amp color Orchid 0 amp color Orchid 0 amp color Orchid sqrt 0 5 amp color Orchid sqrt 0 1 color Purple sqrt 0 4 amp color Purple 0 amp color Purple 0 amp color Purple sqrt 0 5 amp color Purple sqrt 0 1 end bmatrix nbsp is also a valid singular value decomposition SVD and spectral decomposition editSingular values singular vectors and their relation to the SVD edit A non negative real number s displaystyle sigma nbsp is a singular value for M displaystyle mathbf M nbsp if and only if there exist unit length vectors u displaystyle mathbf u nbsp in K m displaystyle K m nbsp and v displaystyle mathbf v nbsp in K n displaystyle K n nbsp such thatM v s u M u s v displaystyle begin aligned mathbf Mv amp sigma mathbf u 3mu mathbf M mathbf u amp sigma mathbf v end aligned nbsp The vectors u displaystyle mathbf u nbsp and v displaystyle mathbf v nbsp are called left singular and right singular vectors for s displaystyle sigma nbsp respectively In any singular value decompositionM U S V displaystyle mathbf M mathbf U mathbf Sigma mathbf V nbsp the diagonal entries of S displaystyle mathbf Sigma nbsp are equal to the singular values of M displaystyle mathbf M nbsp The first p min m n displaystyle p min m n nbsp columns of U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are respectively left and right singular vectors for the corresponding singular values Consequently the above theorem implies that An m n displaystyle m times n nbsp matrix M displaystyle mathbf M nbsp has at most p displaystyle p nbsp distinct singular values It is always possible to find a unitary basis U displaystyle mathbf U nbsp for K m displaystyle K m nbsp with a subset of basis vectors spanning the left singular vectors of each singular value of M displaystyle mathbf M nbsp It is always possible to find a unitary basis V displaystyle mathbf V nbsp for K n displaystyle K n nbsp with a subset of basis vectors spanning the right singular vectors of each singular value of M displaystyle mathbf M nbsp A singular value for which we can find two left or right singular vectors that are linearly independent is called degenerate If u 1 displaystyle mathbf u 1 nbsp and u 2 displaystyle mathbf u 2 nbsp are two left singular vectors which both correspond to the singular value s then any normalized linear combination of the two vectors is also a left singular vector corresponding to the singular value s The similar statement is true for right singular vectors The number of independent left and right singular vectors coincides and these singular vectors appear in the same columns of U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp corresponding to diagonal elements of S displaystyle mathbf Sigma nbsp all with the same value s displaystyle sigma nbsp As an exception the left and right singular vectors of singular value 0 comprise all unit vectors in the cokernel and kernel respectively of M displaystyle mathbf M nbsp which by the rank nullity theorem cannot be the same dimension if m n displaystyle m neq n nbsp Even if all singular values are nonzero if m gt n displaystyle m gt n nbsp then the cokernel is nontrivial in which case U displaystyle mathbf U nbsp is padded with m n displaystyle m n nbsp orthogonal vectors from the cokernel Conversely if m lt n displaystyle m lt n nbsp then V displaystyle mathbf V nbsp is padded by n m displaystyle n m nbsp orthogonal vectors from the kernel However if the singular value of 0 displaystyle 0 nbsp exists the extra columns of U displaystyle mathbf U nbsp or V displaystyle mathbf V nbsp already appear as left or right singular vectors Non degenerate singular values always have unique left and right singular vectors up to multiplication by a unit phase factor e i f displaystyle e i varphi nbsp for the real case up to a sign Consequently if all singular values of a square matrix M displaystyle mathbf M nbsp are non degenerate and non zero then its singular value decomposition is unique up to multiplication of a column of U displaystyle mathbf U nbsp by a unit phase factor and simultaneous multiplication of the corresponding column of V displaystyle mathbf V nbsp by the same unit phase factor In general the SVD is unique up to arbitrary unitary transformations applied uniformly to the column vectors of both U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp spanning the subspaces of each singular value and up to arbitrary unitary transformations on vectors of U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp spanning the kernel and cokernel respectively of M displaystyle mathbf M nbsp Relation to eigenvalue decomposition edit The singular value decomposition is very general in the sense that it can be applied to any m n displaystyle m times n nbsp matrix whereas eigenvalue decomposition can only be applied to square diagonalizable matrices Nevertheless the two decompositions are related If M displaystyle mathbf M nbsp has SVD M U S V displaystyle mathbf M mathbf U mathbf Sigma mathbf V nbsp the following two relations hold M M V S U U S V V S S V M M U S V V S U U S S U displaystyle begin aligned mathbf M mathbf M amp mathbf V mathbf Sigma mathbf U mathbf U mathbf Sigma mathbf V mathbf V mathbf Sigma mathbf Sigma mathbf V 3mu mathbf M mathbf M amp mathbf U mathbf Sigma mathbf V mathbf V mathbf Sigma mathbf U mathbf U mathbf Sigma mathbf Sigma mathbf U end aligned nbsp The right hand sides of these relations describe the eigenvalue decompositions of the left hand sides Consequently The columns of V displaystyle mathbf V nbsp referred to as right singular vectors are eigenvectors of M M displaystyle mathbf M mathbf M nbsp The columns of U displaystyle mathbf U nbsp referred to as left singular vectors are eigenvectors of M M displaystyle mathbf M mathbf M nbsp The non zero elements of S displaystyle mathbf Sigma nbsp non zero singular values are the square roots of the non zero eigenvalues of M M displaystyle mathbf M mathbf M nbsp or M M displaystyle mathbf M mathbf M nbsp In the special case of M displaystyle mathbf M nbsp being a normal matrix and thus also square the spectral theorem ensures that it can be unitarily diagonalized using a basis of eigenvectors and thus decomposed as M U D U displaystyle mathbf M mathbf U mathbf D mathbf U nbsp for some unitary matrix U displaystyle mathbf U nbsp and diagonal matrix D displaystyle mathbf D nbsp with complex elements s i displaystyle sigma i nbsp along the diagonal When M displaystyle mathbf M nbsp is positive semi definite s i displaystyle sigma i nbsp will be non negative real numbers so that the decomposition M U D U displaystyle mathbf M mathbf U mathbf D mathbf U nbsp is also a singular value decomposition Otherwise it can be recast as an SVD by moving the phase e i f displaystyle e i varphi nbsp of each s i displaystyle sigma i nbsp to either its corresponding V i displaystyle mathbf V i nbsp or U i displaystyle mathbf U i nbsp The natural connection of the SVD to non normal matrices is through the polar decomposition theorem M S R displaystyle mathbf M mathbf S mathbf R nbsp where S U S U displaystyle mathbf S mathbf U mathbf Sigma mathbf U nbsp is positive semidefinite and normal and R U V displaystyle mathbf R mathbf U mathbf V nbsp is unitary Thus except for positive semi definite matrices the eigenvalue decomposition and SVD of M displaystyle mathbf M nbsp while related differ the eigenvalue decomposition is 1 displaystyle 1 nbsp where U displaystyle mathbf U nbsp is not necessarily unitary and D displaystyle mathbf D nbsp is not necessarily positive semi definite while the SVD is 1 displaystyle 1 nbsp where S displaystyle mathbf Sigma nbsp is diagonal and positive semi definite and U displaystyle mathbf U nbsp and V displaystyle mathbf V nbsp are unitary matrices that are not necessarily related except through the matrix M displaystyle mathbf M nbsp While only non defective square matrices have an eigenvalue decomposition any m n displaystyle m times n nbsp matrix has a SVD Applications of the SVD editPseudoinverse edit The singular value decomposition can be used for computing the pseudoinverse of a matrix The pseudoinverse of the matrix M displaystyle mathbf M nbsp with singular value decomposition M U S V displaystyle mathbf M mathbf U mathbf Sigma mathbf V nbsp is M V S U displaystyle mathbf M mathbf V boldsymbol Sigma mathbf U ast nbsp where S displaystyle boldsymbol Sigma nbsp is the pseudoinverse of S displaystyle boldsymbol Sigma nbsp which is formed by replacing every non zero diagonal entry by its reciprocal and transposing the resulting matrix The pseudoinverse is one way to solve linear least squares problems Solving homogeneous linear equations edit A set of homogeneous linear equations can be written as A x 0 displaystyle mathbf A mathbf x mathbf 0 nbsp for a matrix A displaystyle mathbf A nbsp and vector x displaystyle mathbf x nbsp A typical situation is that A displaystyle mathbf A nbsp is known and a non zero x displaystyle mathbf x nbsp is to be determined which satisfies the equation Such an x displaystyle mathbf x nbsp belongs to A displaystyle mathbf A nbsp s null space and is sometimes called a right null vector of A displaystyle mathbf A nbsp The vector x displaystyle mathbf x nbsp can be characterized as a right singular vector corresponding to a singular value of A displaystyle mathbf A nbsp that is zero This observation means that if A displaystyle mathbf A nbsp is a square matrix and has no vanishing singular value the equation has no non zero x displaystyle mathbf x nbsp as a solution It also means that if there are several vanishing singular values any linear combination of the corresponding right singular vectors is a valid solution Analogously to the definition of a right null vector a non zero x displaystyle mathbf x nbsp satisfying x A 0 displaystyle mathbf x mathbf A mathbf 0 nbsp with x displaystyle mathbf x nbsp denoting the conjugate transpose of x displaystyle mathbf x nbsp is called a left null vector of A displaystyle mathbf A nbsp Total least squares minimization edit A total least squares problem seeks the vector x displaystyle mathbf x nbsp that minimizes the 2 norm of a vector A x displaystyle mathbf A mathbf x nbsp under the constraint x 1 displaystyle mathbf x 1 nbsp The solution turns out to be the right singular vector of A displaystyle mathbf A nbsp corresponding to the smallest singular value Range null space and rank edit Another application of the SVD is that it provides an explicit representation of the range and null space of a matrix M displaystyle mathbf M nbsp The right singular vectors corresponding to vanishing singular values of M displaystyle mathbf M nbsp span the null space of M displaystyle mathbf M nbsp and the left singular vectors corresponding to the non zero singular values of M displaystyle mathbf M nbsp span the range of M displaystyle mathbf M nbsp For example in the above example the null space is spanned by the last row of V displaystyle mathbf V nbsp and the range is spanned by the first three columns of U displaystyle mathbf U nbsp As a consequence the rank of M displaystyle mathbf M nbsp equals the number of non zero singular values which is the same as the number of non zero diagonal elements in S displaystyle mathbf Sigma nbsp 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 Singular values beyond a significant gap are assumed to be numerically equivalent to zero Low rank matrix approximation edit Some practical applications need to solve the problem of approximating a matrix M displaystyle mathbf M nbsp with another matrix M displaystyle tilde mathbf M nbsp said to be truncated which has a specific rank r displaystyle r nbsp In the case that the approximation is based on minimizing the Frobenius norm of the difference between M displaystyle mathbf M nbsp and M displaystyle tilde mathbf M nbsp under the constraint that rank M r displaystyle operatorname rank bigl tilde mathbf M bigr r nbsp it turns out that the solution is given by the SVD of M displaystyle mathbf M nbsp namelyM U S V displaystyle tilde mathbf M mathbf U tilde mathbf Sigma mathbf V nbsp where S displaystyle tilde mathbf Sigma nbsp is the same matrix as S displaystyle mathbf Sigma nbsp except that it contains only the r displaystyle r nbsp largest singular values the other singular values are replaced by zero This is known as the Eckart Young theorem as it was proved by those two authors in 1936 although it was later found to have been known to earlier authors see Stewart 1993 Separable models edit The SVD can be thought of as decomposing a matrix into a weighted ordered sum of separable matrices By separable we mean that a matrix A displaystyle mathbf A nbsp can be written as an outer product of two vectors A u v displaystyle mathbf A mathbf u otimes mathbf v nbsp or in coordinates A i j u i v j displaystyle A ij u i v j nbsp Specifically the matrix M displaystyle mathbf M nbsp can be decomposed as M i A i i s i U i V i displaystyle mathbf M sum i mathbf A i sum i sigma i mathbf U i otimes mathbf V i nbsp Here U i displaystyle mathbf U i nbsp and V i displaystyle mathbf V i nbsp are the i displaystyle i nbsp th columns of the corresponding SVD matrices s i displaystyle sigma i nbsp are the ordered singular values and each A i displaystyle mathbf A i nbsp is separable The SVD can be used to find the decomposition of an image processing filter into separable horizontal and vertical filters Note that the number of non zero s i displaystyle sigma i nbsp is exactly the rank of the matrix citation needed Separable models often arise in biological systems and the SVD factorization is useful to analyze such systems For example some visual area V1 simple cells receptive fields can be well described 1 by a Gabor filter in the space domain multiplied by a modulation function in the time domain Thus given a linear filter evaluated through for example reverse correlation one can rearrange the two spatial dimensions into one dimension thus yielding a two dimensional filter space time which can be decomposed through SVD The first column of U displaystyle mathbf U nbsp in the SVD factorization is then a Gabor while the first column of V displaystyle mathbf V nbsp represents the time modulation or vice versa One may then define an index of separabilitya s 1 2 i s i 2 displaystyle alpha frac sigma 1 2 sum i sigma i 2 nbsp which is the fraction of the power in the matrix M which is accounted for by the first separable matrix in the decomposition 2 Nearest orthogonal matrix edit It is possible to use the SVD of a square matrix A displaystyle mathbf A nbsp to determine the orthogonal matrix 0 displaystyle mathbf 0 nbsp closest to A displaystyle mathbf A nbsp The closeness of fit is measured by the Frobenius norm of 0 A displaystyle mathbf 0 mathbf A nbsp The solution is the product U V displaystyle mathbf U mathbf V nbsp 3 This intuitively makes sense because an orthogonal matrix would have the decomposition U I V displaystyle mathbf U mathbf I mathbf V nbsp where I displaystyle mathbf I nbsp is the identity matrix so that if A U S V displaystyle mathbf A mathbf U mathbf Sigma mathbf V nbsp then the product A U V displaystyle mathbf A mathbf U mathbf V nbsp amounts to replacing the singular values with ones Equivalently the solution is the unitary matrix R U V displaystyle mathbf R mathbf U mathbf V nbsp of the Polar Decomposition M R P P R displaystyle mathbf M mathbf R mathbf P mathbf P mathbf R nbsp in either order of stretch and rotation as described above A similar problem with interesting applications in shape analysis is the orthogonal Procrustes problem which consists of finding an orthogonal matrix O displaystyle mathbf O nbsp which most closely maps A displaystyle mathbf A nbsp to B displaystyle mathbf B nbsp Specifically O argmin W A W B F subject to W T W I displaystyle mathbf O underset Omega operatorname argmin mathbf A boldsymbol Omega mathbf B F quad text subject to quad boldsymbol Omega operatorname T boldsymbol Omega mathbf I nbsp where F displaystyle cdot F nbsp denotes the Frobenius norm This problem is equivalent to finding the nearest orthogonal matrix to a given matrix M A T B displaystyle mathbf M mathbf A operatorname T mathbf B nbsp The Kabsch algorithm edit The Kabsch algorithm called Wahba s problem in other fields uses SVD to compute the optimal rotation with respect to least squares minimization that will align a set of points with a corresponding set of points It is used among other applications to compare the structures of molecules Signal processing edit The SVD and pseudoinverse have been successfully applied to signal processing 4 image processing 5 and big data e g in genomic signal processing 6 7 8 9 Other examples edit 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 to correspondence 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 Yet another usage is latent semantic indexing in natural language text processing In general numerical computation involving linear or linearized systems there is a universal constant that characterizes the regularity or singularity of a problem which is the system s condition number k s max s min displaystyle kappa sigma text max sigma text min nbsp It often controls the error rate or convergence rate of a given computational scheme on such systems 10 11 The SVD also plays a crucial role in the field of quantum information in a form often referred to as the Schmidt decomposition Through it states of two quantum systems are naturally decomposed providing a necessary and sufficient condition for them to be entangled if the rank of the S displaystyle mathbf Sigma nbsp matrix is larger than one 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 i e the singular vectors corresponding to the largest singular values of the linearized 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 SVD has also been applied to reduced order modelling The aim of reduced order modelling is to reduce the number of degrees of freedom in a complex system which is to be modeled SVD was coupled with radial basis functions to interpolate solutions to three dimensional unsteady flow problems 12 Interestingly SVD has been used to improve gravitational waveform modeling by the ground based gravitational wave interferometer aLIGO 13 SVD can help to increase the accuracy and speed of waveform generation to support gravitational waves searches and update two different waveform models Singular value decomposition is used in recommender systems to predict people s item ratings 14 Distributed algorithms have been developed for the purpose of calculating the SVD on clusters of commodity machines 15 Low rank SVD has been applied for hotspot detection from spatiotemporal data with application to disease outbreak detection 16 A combination of SVD and higher order SVD also has been applied for real time event detection from complex data streams multivariate data with space and time dimensions in disease surveillance 17 In astrodynamics the SVD and its variants are used as an option to determine suitable maneuver directions for transfer trajectory design 18 and orbital station keeping 19 Proof of existence editAn eigenvalue l displaystyle lambda nbsp of a matrix M displaystyle mathbf M nbsp is characterized by the algebraic relation M u l u displaystyle mathbf M mathbf u lambda mathbf u nbsp When M displaystyle mathbf M nbsp is Hermitian a variational characterization is also available Let M displaystyle mathbf M nbsp be a real n n displaystyle n times n nbsp symmetric matrix Definef R n R x x T M x displaystyle f left begin aligned mathbb R n amp to mathbb R mathbf x amp mapsto mathbf x operatorname T mathbf M mathbf x end aligned right nbsp By the extreme value theorem this continuous function attains a maximum at some u displaystyle mathbf u nbsp when restricted to the unit sphere x 1 displaystyle mathbf x 1 nbsp By the Lagrange multipliers theorem u displaystyle mathbf u nbsp necessarily satisfies u T M u l u T u 0 displaystyle nabla mathbf u operatorname T mathbf M mathbf u lambda cdot nabla mathbf u operatorname T mathbf u 0 nbsp for some real number l displaystyle lambda nbsp The nabla symbol displaystyle nabla nbsp is the del operator differentiation with respect to x displaystyle mathbf x nbsp Using the symmetry of M displaystyle mathbf M nbsp we obtain x T M x l x T x 2 M l I x displaystyle nabla mathbf x operatorname T mathbf M mathbf x lambda cdot nabla mathbf x operatorname T mathbf x 2 mathbf M lambda mathbf I mathbf x nbsp Therefore M u l u displaystyle mathbf M mathbf u lambda mathbf u nbsp so u displaystyle mathbf u nbsp is a unit length eigenvector of M displaystyle mathbf M nbsp For every unit length eigenvector v displaystyle mathbf v nbsp of M displaystyle mathbf M nbsp its eigenvalue is f v displaystyle f mathbf v nbsp so l displaystyle lambda nbsp is the largest eigenvalue of M displaystyle mathbf M nbsp The same calculation performed on the orthogonal complement of u displaystyle mathbf u nbsp gives the next largest eigenvalue and so on The complex Hermitian case is similar there f x x M x displaystyle f mathbf x mathbf x mathbf M mathbf x nbsp is a real valued function of 2 n displaystyle 2n nbsp real variables Singular values are similar in that they can be described algebraically or from variational principles Although unlike the eigenvalue case Hermiticity or symmetry of M displaystyle mathbf M img, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.