Skip to content
QuantMax
QuantMax
  • Overview
  • Curriculum
    • FLUMental maths and numerical fluency
    • COMBCounting and combinatorics
    • PROBProbability
    • GAMEGames, decision theory and puzzles
    • MMMarket making
    • MKTMarkets and products

Practise

  • Question bank
  • Mental arithmetic
  • Market simulator
  • Arbitrage trees
  • Horse racing
  • Bid book
  • Screening tests
  • Mock papers

Reference

  • Formula reference
  • Search

Your record

  • Review queue
  • Progress
  • Leaderboard
  • Profile
  • Invite friends
AccountSend feedback
  1. Formula reference

Linear algebra

7 lessons · 10 equations. Each lesson below gives its formulas and key rules; open the lesson for the full explanation.

Rank, trace and determinant: what each one measures

The identities to have ready

(AB)⊤=B⊤A⊤,(AB)−1=B−1A−1,det⁡(A−1)=1det⁡A(AB)^\top = B^\top A^\top, \qquad (AB)^{-1} = B^{-1}A^{-1}, \qquad \det(A^{-1}) = \frac{1}{\det A}(AB)⊤=B⊤A⊤,(AB)−1=B−1A−1,det(A−1)=detA1​

Transpose and inverse both reverse the order of a product. Forgetting that is the single most common slip in a matrix derivation.

The matrix determinant lemma

det⁡(A+uv⊤)=det⁡(A) (1+v⊤A−1u)\det(A + uv^\top) = \det(A)\,\big(1 + v^\top A^{-1}u\big)det(A+uv⊤)=det(A)(1+v⊤A−1u)

A rank-one update changes the determinant by a scalar factor. With A=IA = IA=I it reads det⁡(I+uv⊤)=1+v⊤u\det(I + uv^\top) = 1 + v^\top udet(I+uv⊤)=1+v⊤u — the reason a one-factor covariance matrix has such a simple determinant.

Updating an inverse: Sherman–Morrison

(A+uv⊤)−1=A−1−A−1uv⊤A−11+v⊤A−1u(A + uv^\top)^{-1} = A^{-1} - \frac{A^{-1}uv^\top A^{-1}}{1 + v^\top A^{-1}u}(A+uv⊤)−1=A−1−1+v⊤A−1uA−1uv⊤A−1​

Inverting a matrix after a rank-one change costs O(n2)O(n^2)O(n2) instead of O(n3)O(n^3)O(n3). It gives equicorrelation and one-factor covariance inverses in closed form, and it is how recursive least squares updates without re-solving.

The expected value of a quadratic form

E[x⊤Ax]=tr⁡(AΣ)+μ⊤Aμ\mathbb{E}[x^\top A x] = \operatorname{tr}(A\Sigma) + \mu^\top A\muE[x⊤Ax]=tr(AΣ)+μ⊤Aμ

For a random vector with mean μ\muμ and covariance Σ\SigmaΣ, whatever its distribution. It is the trace trick at work, and it gives expected squared tracking errors, expected residual sums of squares and the bias of sample variances in one line.

Remember

  • Rank is independent directions; determinant is volume scaling; trace sums the eigenvalues.

The four fundamental subspaces, and when Ax = b has a solution

Rank–nullity

dim⁡ker⁡(A)+rank⁡(A)=n(A∈Rm×n)\dim\ker(A)+\operatorname{rank}(A)=n\quad(A\in\mathbb R^{m\times n})dimker(A)+rank(A)=n(A∈Rm×n)

For an m×nm\times nm×n matrix, the null space dimension is n−rn-rn−r when the rank is rrr.

Remember

  • Column and left null spaces split the output; row and null spaces split the input.

Orthogonality, QR and OLS as a projection

The projection matrix

P=A(A⊤A)−1A⊤P = A(A^\top A)^{-1}A^\topP=A(A⊤A)−1A⊤

Projects any vector onto the column space of AAA. Everything about least squares follows from its two defining properties.

Remember

  • P=A(A⊤A)−1A⊤P = A(A^\top A)^{-1}A^\topP=A(A⊤A)−1A⊤ is symmetric and idempotent.

Eigenvalues, diagonalisation and the spectral theorem

The eigenvalue equation

Av=λv,det⁡(A−λI)=0Av = \lambda v, \qquad \det(A - \lambda I) = 0Av=λv,det(A−λI)=0

A direction that is merely scaled, and the characteristic polynomial whose roots are the scalings.

Remember

  • Av=λvAv = \lambda vAv=λv: a direction that is only scaled.

Definiteness, Cholesky and generating correlated normals

The Cholesky factorisation

Σ=LL⊤,L lower triangular with positive diagonal\Sigma = LL^\top, \qquad L \text{ lower triangular with positive diagonal}Σ=LL⊤,L lower triangular with positive diagonal

A "square root" of a symmetric positive-definite matrix. Unique, cheap, and the workhorse of simulation and of solving normal equations.

Remember

  • PSD means x⊤Ax≥0x^\top A x \ge 0x⊤Ax≥0, equivalently all eigenvalues non-negative.

PCA, covariance matrices and what an eigenvalue is telling you

Singular value decomposition

A=UΣV⊤A=U\Sigma V^{\top}A=UΣV⊤

The columns of VVV are directions in input space; singular values rank how strongly AAA stretches those directions.

Remember

  • w⊤Σww^{\top}\Sigma ww⊤Σw is a portfolio variance, so every covariance matrix is PSD.

Matrix calculus: the identities behind OLS, ridge and portfolios

Two more identities

∂∂Xtr⁡(AX)=A⊤,∂∂Xln⁡det⁡X=X−⊤\frac{\partial}{\partial X}\operatorname{tr}(AX) = A^\top, \qquad \frac{\partial}{\partial X}\ln\det X = X^{-\top}∂X∂​tr(AX)=A⊤,∂X∂​lndetX=X−⊤

These, with the linear and quadratic rules, derive the maximum-likelihood estimate of a covariance matrix: the Gaussian log-likelihood is −n2ln⁡det⁡Σ−12tr⁡(Σ−1S)-\tfrac n2\ln\det\Sigma - \tfrac{1}{2}\operatorname{tr}(\Sigma^{-1}S)−2n​lndetΣ−21​tr(Σ−1S), and setting its derivative to zero gives Σ^=S\hat\Sigma = SΣ^=S.

Remember

  • ∂(a⊤x)/∂x=a\partial(a^\top x)/\partial x = a∂(a⊤x)/∂x=a and ∂(x⊤Ax)/∂x=2Ax\partial(x^\top Ax)/\partial x = 2Ax∂(x⊤Ax)/∂x=2Ax for symmetric AAA.

Detailed formula cards

  • Positive semi-definiteness of a covariance matrix

QuantMax · 141 lessons · 1342 questions · c5c0caa

  • Premium
  • Arbitrage trees
  • Horse racing
  • Invite friends
  • Account
  • About QuantMax

Firm names identify publicly reported question patterns and nothing more. QuantMax is not affiliated with, endorsed by, or recruiting for any firm named in the curriculum. Everything you do in lessons and the question bank is kept to your account.