Singular Value Decomposition
Here, M is an m×n matrix, U is an m×m orthogonal matrix, Σ is a diagonal matrix and V is an n×n orthogonal matrix.
The entries in the diagonal matrix Σ consist of the square roots of the non-zero eigenvalues of the matrix MTM, ordered from greatest to least. They are called the Singular Values of M, denoted σ1,...,σn.
The columns of V are the normalized eigenvectors belonging to the previously mentioned eigenvalues, also ordered from greatest to least. These column vectors are called the right singular vectors of M Note: V should be an orthogonal matrix, so you may need to apply the Gram-Schmidt process to orthogonalize the eigenvectors.
The columns of U, called the left singular vectors of M, are calculated with the following formula, where v1,vn are the column vectors of V:
The columns of U should add up to be an orthonormal basis for Rm. If m > n, you will need to apply the Gram-Schmidt process (or insight) to complete the basis.
The SVD splits the transformation M into three distinct consecutive moves: a rotation (V), a scaling (Σ) and a final rotation (U).

Last updated