A disease screening model tested on 200 patients produces , , and . What are precision, recall, and , and why does a screening task favour ?
ML systems and evaluation, Classification metrics
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute from a confusion matrix and interpret the trade-off parameter .
Key idea
The general score is the weighted harmonic mean , which weights recall as times as important as precision (so appears in the formula).
Steps
- Compute precision: .
- Compute recall: .
- Compute (): .
- Compute (): .
- Interpret: missing a sick patient () is much worse than a follow-up test on a false alarm (), so medical screening favours (like ), which pulls the score closer to recall () than does.
Common mistakes
- Swapping and in the denominator ( instead of ); remember that as , must approach recall .
- Using the arithmetic mean instead of the harmonic mean; the harmonic mean penalises models that score well on one metric by sacrificing the other.
How long your answer should be
Four formulas with numbers and two sentences of interpretation; 3 minutes.
Last checked on 4 December 2026.
Read this
Previous in ML systems and evaluation: A binary classifier outputs predicted probabilities for six test examples with true labels . What are the points on the ROC curve, and what is the exact ROC-AUC?
Next in ML systems and evaluation: On four test examples with true labels , Model A predicts probabilities and Model B predicts . Both achieve 75% accuracy at threshold 0.5; what is the binary log loss of each model, and why do they differ so sharply?