What does precision measure for a binary classifier?
Show the answer and explanation
Correct answer: A, Of all cases the model predicted as positive, the share that are actually positive: TP / (TP + FP).
Explanation Classification Metrics
Precision (positive predictive value) answers: when the model says positive, how often is it right? Precision = TP / (TP + FP). Its denominator is the set of predicted positives, so false positives lower it.
The other formulas are different metrics:
- TP / (TP + FN) is recall (sensitivity): its denominator is the actual positives.
- TN / (TN + FP) is specificity, the true negative rate.
- (TP + TN) / N is accuracy.
| metric | denominator |
|---|---|
| precision | predicted positives |
| recall | actual positives |
Interview tip: a quick memory aid is "precision looks at the predictions, recall looks at the reality"; expect a follow-up on which one matters more for your use case.