Skip to content
Financial Machine Learning / Foundations: The Learning Problem and Linear Regression

The Normal Equations: Closed-Form Least Squares

Gradient descent from the previous note finds the minimiser of the LMS cost by iterating; for linear regression specifically, the minimiser also has a closed form — a direct formula requiring no learning rate, no convergence check, and no iteration at all. This note derives that formula, the normal equations, states when to prefer it over iterative descent, and hands the heavy matrix-calculus algebra to a sibling derivation note so this note can stay focused on the result and its use.

In this lesson

  1. Learning objectives
  2. The design matrix and matrix-form cost
  3. The normal equations
  4. Closed form vs iterative descent
  5. Worked example

Before you start

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 Financial Machine Learning syllabus.