Linear Algebra & Optimization

Linear algebra and optimization underpin portfolio construction, factor models and machine learning.

Lessons · recommended order

  1. 1Vectors & Dot ProductsVectors encode direction and magnitude; the dot product measures alignment and drives projections, correlation and factor exposures.
    Foundations
    7 min
  2. 2Matrices & Linear MapsA matrix is a linear map between vector spaces; matrix multiplication composes maps, and inverses undo them when they exist.
    Foundations
    8 min
  3. 3Eigenvalues & EigenvectorsEigenvectors are directions a matrix only stretches, and eigenvalues are the stretch factors — the key to understanding repeated application of a linear map.
    Intermediate
    8 min
  4. 4Rank-Nullity TheoremThe rank-nullity theorem splits the domain of a linear map into what survives (column space) and what collapses to zero (null space).
    Intermediate
    6 min
  5. 5Orthogonality & ProjectionsProjecting a vector onto a subspace finds the closest point in that subspace — the geometric heart of least squares and hedging.
    Intermediate
    7 min
  6. 6Positive Definite MatricesA matrix is positive definite when every quadratic form it induces is positive — the algebraic signature of a valid variance or a strict minimum.
    Intermediate
    7 min
  7. 7Covariance MatricesThe covariance matrix packages every pairwise variance and covariance among assets into a single PSD matrix that drives portfolio risk.
    Intermediate
    7 min
  8. 8Principal Component AnalysisPCA finds the directions of maximum variance in data by solving a constrained optimization whose answer is the top eigenvector of the covariance matrix.
    Advanced
    8 min
  9. 9Lagrange MultipliersLagrange multipliers turn constrained optimization into an unconstrained stationarity condition by pricing the constraint with a multiplier.
    Advanced
    7 min
  10. 10Convexity & the HessianA function is convex when its Hessian is PSD everywhere, guaranteeing that any local minimum is a global one — the key to trusting an optimizer's answer.
    Advanced
    7 min