Every lesson so far in this topic has fit one global linear model to the entire dataset. Locally weighted regression (LWR) breaks that assumption: instead of one for all , it fits a different weighted least-squares problem for every query point, giving the hypothesis class the flexibility to follow curvature a single hyperplane cannot. That flexibility is a double-edged sword — it can fit the training data essentially perfectly while generalising worse than the simpler global model — which gives this topic its first, informal encounter with the bias-variance trade-off that Topic 8 treats formally.
In this lesson
- Learning objectives
- The locally weighted objective
- The bandwidth and the bias-variance trade-off
- Worked example: fitting curvature no straight line can capture
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Financial Machine Learning syllabus.