---
title: Define precision and recall, explain the trade-off, and say which you would prioritise for (a) screening for a rare…
url: https://gurkanozkan.ai/learn/questions/research-precision-recall-imbalanced-019/
markdown: https://gurkanozkan.ai/learn/questions/research-precision-recall-imbalanced-019.md
kind: question
role: Research
stage: Technical
difficulty: Warm-up
json: https://gurkanozkan.ai/api/learn/questions/research-precision-recall-imbalanced-019.json
robots: noindex
---

# 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?

Research · Technical · Warm-up

## 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.

*Corrected by an independent AI reviewer.*

## 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.

## Topic guides

- [Classical machine learning](https://gurkanozkan.ai/learn/topics/classical-ml.md)
- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
