2.6.2 · D3Model Evaluation & Selection

Worked examples — Underfitting vs overfitting diagnosis

2,419 words11 min readBack to topic

This page is the drill hall. The parent note gave you the ideas; here we grind through every kind of number you can be handed and turn it into a diagnosis + an action. Before any symbol appears we say what it means, in plain words.


The scenario matrix

Every diagnosis problem you will ever meet is one of the cells below. The examples that follow are labelled with the cell they cover, so you can check none is missing.

# Cell (case class) What makes it special Covered by
C1 High bias, low variance big avoidable bias, tiny gap Ex 1
C2 Low bias, high variance tiny avoidable bias, big gap Ex 2
C3 High bias AND high variance both gaps big (worst case) Ex 3
C4 Just right both gaps small Ex 4
C5 Degenerate: perfect memorisation, zero training error Ex 5
C6 Sign trap: negative "variance" — what does it mean? Ex 6
C7 Limiting: unknown / assumed 0 wrong baseline flips the diagnosis Ex 7
C8 Real-world word problem you must extract the numbers yourself Ex 8
C9 Exam twist: iteration sequence diagnosis changes as you act Ex 9
C10 Learning-curve shape read diagnose from a curve, not a table Ex 10 (figure)

The worked examples


Recall Self-test

A model has train error 5%, val error 20%, human error 4%. Diagnosis? ::: Bias , variance overfitting (high variance). Why is a warning sign, not a trophy? ::: It usually means the model memorised noise (dipped below the noise floor ), giving huge variance. — first thing to suspect? ::: A measurement problem: tiny/leaky validation set, or dropout left on at training but off at validation. Which ruler ignores entirely? ::: Variance — it never uses the baseline.

See also: 2.6.04-Cross-validation-techniques for trustworthy , and the Hinglish version.