Linear Algebra
The Rank of a Matrix
You can think of an r×c matrix as a set of r row vectors, each having c elements; or you can think of it as a set of c column vectors, each having r 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 row vectors in the matrix. Both definitions are equivalent.
For an r×c matrix,
If r is less than c, then the maximum rank of the matrix is r.
If r is greater than c, then the maximum rank of the matrix is c.
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.
Formula
A[m×n]=U[m×r]Σ[r×r](V[n×r])T
A: Input data matrix
m×n matrix (e.g. m documents, n terms)
U: left singular vectors
m×r matrix (m documents, r concepts)
Σ: Singular values
r×r diagonal matrix (strength of each
concept) (r: rank of matrix A)
V: Right singular vectors
n×r matrix (n terms, r concepts)

Properties
It is always possible to decompose a real matrix A into A=UΣVT, where
U,Σ,V: unique
U,V: column orthonormal
UTU=I; VTV=I (I: identity matrix)
(Columns are orthogonal unit vectors)
Σ: diagonal
Entries (singular values) are positive, and sorted in decreasing order (σ1≥σ2≥⋯≥0)




Interpretation
U: user-to-concept similarity matrix
V: movie-to-concept similarity matrix
Σ: its diagonal elements
strengthof each concept
Last updated