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

Overview

Every model built later in this unit — a random forest scoring credit defaults, a neural network reading limit-order-book state, a Gaussian process fitting an implied-volatility smile — is an instance of the same four-part recipe: pick a hypothesis class, define a loss, run an optimiser, and check that the fitted model generalises to data it has not seen. This topic introduces that recipe by building the simplest non-trivial instance of it end to end: linear regression, fit by gradient descent and by the closed-form normal equations, with a probabilistic interpretation that explains why squared error is the natural loss for Gaussian-noise data. Every later topic in this unit — logistic regression, regularised regression, kernel methods, even backpropagation — is a variation on the machinery built here. The topic closes with locally weighted regression, which gives the unit's first informal look at the bias-variance trade-off that Topic 8 treats formally.

By the end of this topic you should be able to:

  • state the supervised-learning problem as a choice of hypothesis class, loss function, and train/validation/test protocol;
  • derive and implement batch and stochastic gradient descent for the least-mean-squares (LMS) cost;
  • derive the normal equations in closed form and know when to prefer them over iterative descent;
  • justify squared-error loss as maximum-likelihood estimation under Gaussian noise;
  • implement locally weighted regression and explain, informally, why it trades bias for variance.

In this lesson

  1. Contents
  2. The big picture

The full lesson is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Financial Machine Learning syllabus.