Basic Prerequisites: 01 · From Zero (or high-school vector geometry).


1. Intuition & Practical Objective

A vector is a point in space with a meaning attached: a vector of returns is one point in , and a matrix is a linear rule that maps vectors to vectors. The practical objective of this page is three precise, non-negotiable ideas the rest of the Atlas leans on: linear independence (do my asset returns genuinely span directions, or are some just combinations of others?), basis / dimension (how many independent risk sources are really there?), and orthogonality (which directions carry uncorrelated risk). These three words - independent, spanning, orthogonal - are the entire grammar of factor models and PCA.

A financial statement of the same idea (Tsay §8–9): if three assets are driven by two macro factors, then their returns lie on a 2-dimensional plane inside - linearly dependent. The rank of the matrix of their returns tells you the true number of independent risk drivers. Rank-deficiency is not a mathematical curiosity; it is the N>T problem and the collinearity/collateral problem (highly correlated assets, and the same names posted as collateral).


2. Mathematical Ground Truth & Derivations

Vector space & inner product. with the standard inner product is a real vector space. The induced norm (length) is , and two vectors are orthogonal iff . Orthogonality of returns is exactly zero covariance - the reason correlation-structured factor models decompose into independent pieces.

Linear independence & rank. Vectors are linearly independent if the only combination is the trivial one (). The rank of a matrix is the number of independent columns (equivalently rows). For a return matrix, - the seed of the trap: with observations you can have at most independent columns.

Basis, dimension, span. A basis is a maximal set of independent vectors; every vector in the space is a unique combination of them. Dimension = size of any basis = rank. Orthogonal projections and regression are both “find the best combination of basis vectors.”

Gram–Schmidt. Any set of independent vectors can be turned into an orthonormal basis by subtracting, from each new vector, its projections onto the already-orthonormal ones:

This is the algorithm behind and the geometric meaning of “de-correlating” a set of signals (Glasserman Ch 2’s Cholesky does the same thing numerically for random variables).


3. Computational Implementation - Gram–Schmidt finds the true dimension

Implementing Gram–Schmidt from scratch shows linear dependence directly: a dependent vector’s residual has zero norm and is dropped, so the number of orthonormal vectors that survive is the rank. Stdlib only.

The dependent set collapses to rank 2 because its third vector was just a combination of the first two - the same collapse happens when three assets are driven by two factors. rank(X) is the number of independent risk sources, and this is the first-principles root of why an covariance matrix has rank .


4. Failure Modes & First-Principles Breakdowns

  1. Collinearity is rank-deficiency in disguise. Two perfectly correlated assets are dependent columns; their combination has no unique solution in regression ( becomes singular). This is the linear-algebra form of the “multicollinearity” a risk book hits before a singular-matrix crash.
  2. Rank is bounded by both and . With daily returns you cannot have more than 250 independent columns even with assets. Believing a sample covariance is full-rank is the N>T trap (06).
  3. Orthogonality is not absence of dependence in finite samples. Two sample-orthogonal return vectors have zero estimated covariance but can be strongly dependent through higher moments or shared latent factors; Gram–Schmidt de-correlates only in the linear sense.

5. References

  • Strang, Introduction to Linear Algebra (5th ed.)
  • Tsay, Analysis of Financial Time Series
  • Horn & Johnson, Matrix Analysis

6. Connected Graph Bridges