Almost every object a working quant manipulates is a vector, a matrix, or a function of one. A portfolio of n assets is a weight vector w in Rⁿ. Its risk is a quadratic form wᵀΣw in the covariance matrix Σ. A factor model decomposes returns as Bf + ε, a linear map plus noise. A regression is a projection. Principal components are eigenvectors of a covariance matrix. The Kalman filter is two matrix multiplications and one inverse.
This course teaches the linear algebra you actually need to read modern factor-model papers, build a Markowitz optimisation, decompose a yield curve, simulate correlated returns, or debug why your covariance matrix isn't invertible at 4 a.m. on a trading floor. It is rigorous where rigour pays — the spectral theorem, the SVD, the projection theorem — and pragmatic everywhere else.
Four problems linear algebra solves for a quant
- Pricing a portfolio's risk: the variance of wᵀr is wᵀΣw — a single quadratic form that hides an entire industry of statistical estimation.
- Decomposing returns into a few common factors: SVD or PCA, the mathematical core of every quant equity book at Two Sigma or Citadel.
- Solving for the minimum-variance or maximum-Sharpe portfolio: a constrained quadratic program that, in its simplest form, has a closed-form linear-algebraic solution.
- Simulating correlated returns: a Cholesky factorisation of Σ turns independent normal noise into a path that respects observed dependencies.
The mental shift
Stop thinking of vectors as 'lists of numbers' and start thinking of them as points in a geometric space. Stop thinking of matrices as 'grids' and start thinking of them as linear maps between such spaces. Every theorem that follows is easier under this view.
How this course is built
- Modules 2-4 build the vocabulary: vectors, matrices, linear systems.
- Modules 5-6 cover subspaces, rank, projections, least squares — the geometric heart of regression.
- Modules 7-9 develop the eigen/spectral/SVD machinery — the engine of factor models, PCA, and risk decomposition.
- Modules 10-11 apply that machinery to yield curves and matrix calculus.
- Module 12 closes with the numerical-analysis caveats that turn pristine algebra into reliable code.
Companion tools
Every example in this course is reproducible in NumPy. Where the algebra benefits, we show the one-line numpy.linalg call. The Numerical Methods for Finance course goes deeper on numerical pitfalls.
Exercise
A long-short equity book holds positions in 500 names. The risk team reports a single number — annualised portfolio volatility — derived from a 500×500 covariance matrix. (1) Write down the algebraic object that maps the 500-vector of weights to that single number. (2) How many free parameters does the covariance matrix have? (3) Why is that number a problem in practice?