the.ai

Evaluation / Metrics

verified

Precision and Recall

Two questions about the same detector that pull against each other. Of the things it flagged, how many should have been? That is precision. Of the things that should have been flagged, how many were? That is recall. Reporting one alone is how a useless system looks good — flag everything and recall is perfect, flag one certain case and precision is.

Viz primitive · threshold-sweepseparation = 2.6 · threshold = 1 · base-rate = 0.5
let throughcutflagged

546 of 1000 flagged. 86% of them were right and 77 were false alarms; 94% of what should have been caught was, leaving 31 missed.

Items that should be flagged against items that should not, by the detector's score. Drag the base rate down to watch precision collapse while the detector itself never moves — the same recall on a rarer event simply buys far more false alarms for every catch.

0.5

Reviewed by opendroid · 2026-08-19

  • arXiv:2007.01905 — The Effect of Class Imbalance on Precision-Recall Curves
  • arXiv:2504.02169 — On the Geometry of Receiver Operating Characteristic and Precision-Recall Curves