Map 1 · Supervised learning · Classification lane · step C3
Score it
How good is it at catching the class that matters?
Key formula
Fact or figure
If 2% of customers leave, a model that always says "stays" is 98% accurate and catches nobody.
Skip this step and…
Optimise accuracy on imbalanced data and you get exactly that useless model.
Telco example
An AUC of 0.85: pick a random leaver and a random stayer, and 85% of the time the model rates the leaver as riskier.
Learn it
Taught in Section 4 (Logistic Regression and Classification) of the course. The map follows the machine learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.
- 4.6 The Confusion MatrixOnce you pick a threshold, every prediction is a true positive, false positive, true negative or false negative. How to build the table, read it, and which errors are "misses" and which are "false alarms".
- 4.7 Accuracy, Precision, Recall and SpecificityEvery metric you can compute from a confusion matrix, what question each one answers, a full worked example, and why accuracy can be dangerously misleading.
- 4.10 ROC Curve and AUCThe ROC curve shows every sensitivity–specificity trade-off a model can offer. AUC summarises it as the probability a random positive outranks a random negative. How to compute both by hand.
- 4.11 Class ImbalanceWhen the interesting class is rare, a model can score high accuracy while catching nothing. Baselines, the right metrics, threshold moves, oversampling and stratified sampling, and the oversampling traps.