Skip to content
Linear Algebra, Optimisation and Numerical Methods / Linear systems and least squares

Vectors, Matrices and Linear Systems

A book of holdings is a vector; a list of cash-flow or factor exposures is a matrix; matching a target payoff or a balance-sheet constraint is solving Ax=bA\mathbf{x}=\mathbf{b}. This note rebuilds the linear-algebra core at the level needed for those desk jobs — vectors and the dot product, matrix algebra and the column picture of AxA\mathbf{x}, exact linear systems, inverses, and rank / null space — without replaying the whole of Linear Algebra I. The result is a single language for holdings, a correctly centred return matrix and a small replicating system. Each row and column gets a financial meaning before we solve it.
Learning objectives. By the end of this note you should be able to:
  • compute dot products, matrix–vector products, and basic matrix algebra with finance labels attached;
  • set up and solve a small Ax=bA\mathbf{x}=\mathbf{b} (unique, none, or infinitely many);
  • read invertibility, rank, and the null space as statements about holdings and replication;
  • recognise a sample Gram matrix X⊤XX^\top X as the prototype of a covariance-ready object.

In this lesson

  1. Holdings as vectors
  2. Matrices and the product AxA\mathbf{x}
  3. Linear systems Ax=bA\mathbf{x}=\mathbf{b}

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Linear Algebra, Optimisation and Numerical Methods syllabus.