Math for Causal Inference
PHASE 2 · DAYS 16–30

Linear Algebra & Optimization

Vectors and matrices, rank, projections, eigenvalues, calculus and optimisation, and OLS derived in matrix form.

0/15
  1. 16
    Vectors, Matrices & the Dot Product

    Data as vectors, and the dot product as the engine behind means, covariances and correlations.

    Vector Playground
  2. 17
    Matrix Multiplication, Transpose & the Design Matrix

    Multiplying matrices, transposing products, and the cross-product matrices X′X and X′y that every regression is built from.

    A Matrix as a Transformation
  3. 18
    Linear Independence, Span & Rank

    When columns carry the same information, coefficients are not identified. Rank is how you tell.

    Collinearity & Rank
  4. 19
    Inverses, Determinants & Systems of Equations

    Solving Ax = b, what the determinant measures, and why nearly singular systems are fragile.

    Solving Ax = b
  5. 20
    Projections, Orthogonality & the Geometry of Least Squares

    Least squares is an orthogonal projection. Fitted values, residuals, R² and degrees of freedom all follow from that picture.

    Least Squares: Residuals & Orthogonality
  6. 21
    Eigenvalues, Eigenvectors & Quadratic Forms

    The directions a matrix only stretches, and what they reveal about variances, collinearity and stability.

    Eigenvectors & Quadratic Forms
  7. 22
    Positive-Definite Matrices & Variance–Covariance Matrices

    Random vectors, their covariance matrices, and the rules for the variance of any linear combination.

    Covariance Ellipses & a′Σa
  8. 23
    Derivatives, Partial Derivatives & Taylor Series

    Rates of change, marginal effects and elasticities, and local polynomial approximations of any smooth function.

    Taylor Approximations
  9. 24
    Matrix Calculus & Gradients

    Differentiating with respect to a whole vector at once, and deriving the OLS, ridge, WLS and logit first-order conditions.

    The Gradient of the Sum of Squares
  10. 25
    Unconstrained Optimisation & Convexity

    First- and second-order conditions, why convexity makes optimisation easy, and the two algorithms behind every estimator.

    Gradient Descent vs Newton
  11. 26
    Constrained Optimisation & Lagrange Multipliers

    Optimising subject to budgets and adding-up constraints, the shadow price, and the experimental-design and weighting problems that use it.

    Constrained Optimum: Budget & Indifference
  12. 27
    OLS in Matrix Form

    The linear model, the OLS estimator, its mean and variance, s², standard errors and the Gauss–Markov theorem, all in a few lines of matrix algebra.

    OLS by Matrices
  13. 28
    Frisch–Waugh–Lovell & Partialling Out

    What "controlling for" really does. Every multiple-regression coefficient is a simple regression on residualised data.

    Partialling Out (FWL)
  14. 29
    OLS Asymptotics & Robust (Sandwich) Variance

    Large-sample theory for OLS without normality or homoskedasticity, and the heteroskedasticity- and cluster-robust standard errors applied work relies on.

    Heteroskedasticity & Robust Standard Errors
  15. 30
    Phase 2 Capstone: GMM & Numerical Optimisation

    One framework for OLS, IV, 2SLS and MLE: choose moment conditions, minimise a quadratic form, and solve it numerically.

    GMM with Two Moments