Overview
Flexibility and the bias-variance tradeoff
Pages
| Polynomial regression | Making a linear model more flexible |
| k nearest neighbours | A method with no parameters to fit |
| Bias-variance decomposition | What the expected error is made of |
| Regularization | Ridge and lasso, making a model less flexible |
| Exercises |
Goals
The goal of this week is to
- see a regression and a classification example where linear methods are not flexible enough,
- understand and learn to run polynomial regression and classification,
- understand and learn to run k nearest neighbour regression and classification,
- understand the error decomposition in regression,
- understand the bias-variance decomposition in regression,
- understand ridge regression (L2 regularization), and
- understand lasso regression (L1 regularization).