A disease screening model tested on 200 patients produces TP=36, FN=4, FP=24 and TN=136. What are precision, recall, F1 and F2, and why does a screening task favour β>1?

ML systems and evaluation, Classification metrics
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute Fβ from a confusion matrix and interpret the trade-off parameter β.

Key idea

The general Fβ score is the weighted harmonic mean Fβ=(1+β2)PRβ2P+R, which weights recall R as β times as important as precision P (so β2 appears in the formula).

Steps

  1. Compute precision: P=TPTP+FP=3636+24=3660=0.60.
  2. Compute recall: R=TPTP+FN=3636+4=3640=0.90.
  3. Compute F1 (β=1): F1=2PRP+R=2×0.60×0.900.60+0.90=1.081.50=0.72.
  4. Compute F2 (β=2): F2=(1+22)PR22P+R=5×0.60×0.904(0.60)+0.90=2.703.30=911≈0.818.
  5. Interpret: missing a sick patient (FN) is much worse than a follow-up test on a false alarm (FP), so medical screening favours β>1 (like F2), which pulls the score closer to recall (0.90) than F1 does.

Common mistakes

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 [0.90,0.80,0.70,0.60,0.40,0.20] for six test examples with true labels [1,0,1,1,0,0]. What are the (FPR,TPR) 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 y=[1,1,0,0], Model A predicts probabilities [0.90,0.90,0.10,0.99] and Model B predicts [0.70,0.70,0.30,0.55]. Both achieve 75% accuracy at threshold 0.5; what is the binary log loss of each model, and why do they differ so sharply?