The Rank of a Matrix
You can think of an matrix as a set of row vectors, each having elements; or you can think of it as a set of column vectors, each having elements.
The rank of a matrix is defined as (a) the maximum number of linearly independent column vectors in the matrix or (b) the maximum number of linearly independent vectors in the matrix. Both definitions are equivalent.
For an matrix,
- If is less than , then the maximum rank of the matrix is .
- If is greater than , then the maximum rank of the matrix is .
The rank of a matrix would be zero only if the matrix had no elements. If a matrix had even one element, its minimum rank would be one.
For example, the following matrix has rank of 2.
Singular Value Decomposition
Formula
- A: Input data matrix
- matrix (e.g. m documents, n terms)
- U: left singular vectors
- matrix (m documents, r concepts)
- : Singular values
- diagonal matrix (strength of each
concept
) (r: rank of matrix A)
- diagonal matrix (strength of each
- V: Right singular vectors
- matrix (n terms, r concepts)
Properties
It is always possible to decompose a real matrix A into , where
- : unique
- : column orthonormal
- ; (I: identity matrix)
- (Columns are orthogonal unit vectors)
- : diagonal
- Entries (singular values) are positive, and sorted in decreasing order ()
Interpretation
- U: user-to-concept similarity matrix
- V: movie-to-concept similarity matrix
- : its diagonal elements
strength
of each concept