Map 1 · Supervised learning · Step 6
Turn predictions into decisions
Where do I draw the line, given what each mistake costs?
Key formula
for calibrated probabilities.
Fact or figure
If a wasted retention call costs £5 and a lost customer £95, the cost-minimising threshold is , not 0.5.
Skip this step and…
Keep the default 0.5 and you let most at-risk customers walk away to save a few phone calls.
Telco example
Phone every customer with . Choose that threshold on validation data, then report the test result once.
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.8 Sensitivity and Specificity Trade-offsMoving the threshold trades misses for false alarms. Why you can't raise sensitivity and specificity together with the same model, and how to reason about which to favour.
- 4.9 Threshold Selection and Classification CostsWhen a miss and a false alarm cost different amounts, choose the threshold that minimises expected cost. The theory, a worked table, and how to choose it without leaking the test set.
How it connects
Builds on · Step 2
Get, split and prepare the dataThe threshold is chosen on validation data, never on the test set
How do I keep part of the data honest for the final check?
Builds on · Classification lane · step C1
Choose the modelThe probability is what a threshold acts on
How do I turn inputs into a class, or a probability of one?
Builds on · Classification lane · step C3
Score itPrecision and recall move as the threshold moves
How good is it at catching the class that matters?
Builds on · Step 5
Control complexityThe tuned model's scores are what the threshold is set on
How simple can the model be and still capture the pattern?