Precision and Recall, Exactly

Worked numerical examples tracing shared true positives and distinct denominators across cutoffs one half and five sixths.

Precision and recall step by step

Compare fixed positive denominators against moving predicted denominators across cutoffs 1/2 and 5/6.

  1. Same Scored Rows

    how 9 rows fix 4 actual positives while flagged rows step from 7 down to 2

  2. Threshold One Half Counts

    how cutoff 3/6 splits 5 flagged rows into 3 TP + 2 FP and 4 positives into 3 TP + 1 FN

  3. Precision and Recall at One Half

    how [TP, FP, FN, TN] = [3, 2, 1, 3] produces precision 3/5 = 0.60 and recall 3/4 = 0.75

  4. Threshold Five Sixths Counts

    how cutoff 5/6 sweeps rows 0.75, 0.70, and 0.60 to turn [3, 2, 1, 3] into [2, 0, 2, 5]

  5. Precision and Recall at Five Sixths

    how [2, 0, 2, 5] lifts precision to 1.00 while cutting recall from 0.75 down to 0.50

  6. What Precision and Recall Do and Do Not Say

    why adding 45 true negatives lifts specificity to 0.96 while P and R stay fixed