Skip to main content

Inverse relation of precision and recall

Short answer

Precision and recall trade off: lowering threshold increases recall but decreases precision, and vice versa. This inverse relationship is balanced using the F-measure.

Explain the inverse relation between Precision and Recall of classifier model.

Precision = TP/(TP + FP): of the records predicted positive, the fraction that are really positive (exactness). Recall = TP/(TP + FN): of all real positives, the fraction the classifier finds (completeness).

Inverse relationship

For a given classifier, improving one of them usually reduces the other, because both depend on the decision threshold.

  • Lower the threshold (predict "positive" more readily): more real positives are found, so FN falls and recall rises. But more negatives are also wrongly accepted, so FP rises and precision falls.
  • Raise the threshold (predict "positive" only when very sure): FP falls, so precision rises, but many positives are missed, so FN rises and recall falls.
  • Extreme cases: predicting every record positive gives recall = 100% but low precision; predicting only one very certain record positive gives precision = 100% but very low recall.

Example: 100 real positives in 1000 records.

ThresholdTPFPFNPrecisionRecall
High4056040/45 = 0.8940/100 = 0.40
Medium70303070/100 = 0.7070/100 = 0.70
Low95200595/295 = 0.3295/100 = 0.95

Because of this trade-off, the two are combined into the F-measure (harmonic mean), F₁ = 2·P·R/(P + R), and shown in a precision-recall curve. Each application chooses its own balance: cancer screening and fraud detection favour high recall, while spam filtering favours high precision (so that important mail is not wrongly blocked).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Data Mining chapter 3 questions →