F1 Score, Exactly

Worked numerical examples comparing two 30-row confusion grids that tie on arithmetic mean yet separate cleanly under the harmonic mean F1.

Harmonic mean step by step

See why Grid A and Grid B tie on arithmetic mean yet separate cleanly under F1 and F_beta.

  1. Two Confusion Grids

    how two models on the same 6 positives and 24 negatives flag 4 rows versus 24 rows

  2. Grid A Precision and Recall

    why cautious Grid A scores 0.75 precision, 0.50 recall, and 0.625 arithmetic mean

  3. Grid A F1 Fraction

    why the harmonic mean turns Grid A's 0.75 and 0.50 into 6 / 10 = 0.60

  4. Grid B Precision and Recall

    how flagging 24 of 30 rows gives 0.25 precision, 1.00 recall, and a 0.625 tie

  5. Grid B F1 Fraction

    why Grid B plunges from 0.625 arithmetic mean to 12 / 30 = 0.40 under F1

  6. What F1 Does and Does Not Say

    what symmetric F1 hides about error costs and true negatives, and how F_beta breaks ties