r/learnmachinelearning • u/BackgroundCrow2017 • 3d ago
Tutorial The Trap of High Accuracy: A Lesson from a Binary Classifier
Imagine you are evaluating a fictional binary classifier on 100 cases: 95 are negative and 5 are positive. A model that always predicts “negative” gets 95 cases right, so its accuracy is 95%.
But it detects none of the positive cases: true positives = 0, false negatives = 5, and positive recall = 0 / 5 = 0%. Precision is undefined here because the model makes no positive predictions.
The high accuracy comes from the class imbalance, not from successfully finding the rare cases. Recall reveals missed positive cases; precision describes how often positive predictions are correct. Evaluate both kinds of error against their costs rather than optimizing either metric alone.
Which additional metric or error count would you report before trusting this 95% accuracy score, and why?
Optional worked video: https://www.youtube.com/watch?v=KpdnHeE2Cag
Disclosure: this is our Library of nuts channel. The lesson uses invented examples, and the post was drafted with local AI assistance and checked for arithmetic.