Charta is on Google Play: practise on the go. Get the app

Explain overfitting and recognise ways to deal with it

CFA® Level II · Quantitative Methods · Machine Learning · L2.QM.6.b

The idea

An overfitted model has learned noise specific to its training data, so it does very well in sample and poorly out of sample. Total error splits into bias error from underfitting, variance error from overfitting, and irreducible base error. Adding complexity lowers bias error but raises variance error, and the best model sits where validation error is lowest. The signature of overfitting is low training error with much higher validation error; underfitting shows high error on both. Remedies are reducing complexity, for example with penalised regression or pruning, and choosing how far to go by estimating out-of-sample error with k-fold cross-validation, which rotates each of k parts of the data through the validation role.

Formulas

Sources of prediction error

total error = bias error + variance error + base error

bias error
from a model too simple to capture the pattern
variance error
from a model too sensitive to the training sample
base error
the noise no model can remove

Overfitting is high variance error: a small training error but a large validation error.

In the app: 4 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Machine Learning