What is singular value decomposition?
Singular value decomposition (SVD) is a mathematical technique that breaks down a matrix into three separate matrices, allowing us to understand the underlying structure of the original matrix.
Given a matrix
where:
is an , (columns are orthogonal unit vectors).orthogonal matrix A matrix for which its inverse is its transpose. is a diagonal matrix with non-negative real numbers on the diagonal. The elements on the diagonal are the square roots of the positive eigenvalues of . is the transpose of an orthogonal matrix (rows are orthogonal unit vectors).
Example
Suppose we have the following matrix
And we want to calculate its SVD.
Calculating
To find a matrix of the eigenvectors of
, we'll first find :
After getting
, we'll find its eigenvalues as follows:
Hence, the eigenvalues are
Now we have the eigenvalues, we need to find the corresponding eigenvectors. Let's suppose
and are two corresponding eigenvectors:
This system of linear equation can have infinitely many solutions. One of the solutions is:
Hence,
Normalizing Eigenvectors:
This system of linear equation can have infinitely many solutions. One of the solutions is:
Hence,
Normalizing Eigenvectors:
Now, we can say that:
Calculating
The eigenvalues we got are
Calculating
To calculate
Combining calculations
The final form of SVD after combining all the calculations is:
You can verify the calculations as follows:
Conclusion
SVD has vast applications in machine learning techniques such as dimensionality reduction, signal processing, or image compression. It can also be used to determine the transformation of an image matrix.
Note: Read about eigen value decomposition.
Free Resources