Rank

Rank is the number of independent directions in a matrix. It tells how many dimensions a linear map can preserve, how many independent columns a design matrix has, and how many factors a low-rank approximation is allowed to use.

Defining math

For ,

Equivalently, rank is the number of nonzero singular values in the SVD:

Rank controls solvability and identifiability. If a regression design matrix lacks full column rank, several coefficient vectors can produce the same fitted values. In recommender latent-factor models, choosing factor dimension is choosing an explicit rank bottleneck.

Worked example

Take . The second row is exactly twice the first, , so the rows span only two independent directions and . The same dependence shows up in the top-left block, whose determinant vanishes:

Computed numerically, the singular values are . The single zero exposes the lost dimension even though the matrix has three rows and three columns.

Caveats

Numerical rank is thresholded. Floating-point noise can turn exact zeros into tiny nonzero singular values, and nearly collinear features can be full-rank but still unstable. Always interpret rank with the scale of the singular values and downstream sensitivity.

References