Define precision and recall, explain the trade-off, and say which you would prioritise for (a) screening for a rare disease and (b) flagging content for a small human-review team. When is ROC-AUC misleading?
Answer
Model answer, written in a candidate's voice
In short
- Precision = TP/(TP+FP); recall = TP/(TP+FN); threshold moves along the trade-off.
- F1 and F-beta combine precision and recall; beta>1 weights recall, beta<1 weights precision.
- Rare-disease screening favours recall; limited reviewers favour precision at k.
- Under heavy imbalance, PR-AUC is more informative than ROC-AUC.
- Choose the operating threshold from error costs, not from a single score.
- ROC-AUC can look strong while precision at the chosen cutoff is poor.
In full
Precision is TP/(TP+FP): of the items I flag, how many are truly positive; recall is TP/(TP+FN): of the truly positive items, how many I catch. The decision threshold controls the trade-off—lowering it flags more and raises recall while lowering precision, and raising it does the reverse—so F1 = 2PR/(P+R) and F-beta = (1+beta^2)PR/(beta^2P+R) summarise the balance, with beta>1 weighting recall and beta<1 weighting precision. For rare-disease screening I would prioritise recall, because missing a case is usually far costlier than a false alarm, even if that means many false positives for follow-up. For a small human-review team I would prioritise precision at k, because the team can only inspect the top k items, so the useful metric is how many of those k are truly positive rather than overall precision. ROC-AUC is misleading under heavy class imbalance and when the operating threshold matters: it can look strong while precision at the chosen cutoff is poor, and it is insensitive to prevalence and to the actual error costs, so I would choose the threshold from the costs of false negatives versus false positives and check PR-AUC rather than relying on ROC-AUC alone.
What a strong answer covers
- TP/(TP+FP) and TP/(TP+FN); the threshold controls the trade-off.
- F1 and Fβ as combined scores.
- Disease screening favours recall. Limited reviewers favour precision at k.
- Under heavy class imbalance, PR-AUC is more informative than ROC-AUC.
- Choose the operating threshold from error costs.
Common mistakes
- Swapping the definitions.
- Using accuracy on imbalanced data.