liveBook · Manning

F-score

As explained in Grokking Statistics

The F-measure is a classification metric that combines precision and recall using their harmonic mean.

The F-score, or F1, combines precision and recall into one metric using their harmonic mean: F = 2 × (precision × recall) / (precision + recall). section 8.9

It is useful when you want one summary of both kinds of performance, but it gives precision and recall equal importance—even when a real decision favors one. section 8.9

The wolf alarm

An alarm that triggers for everything catches wolves but produces many false alarms, driving precision toward zero. An alarm set extremely high may catch one wolf correctly, reaching perfect precision while recall approaches zero. The F-score summarizes this tension, but choosing the right balance still depends on the business case. section 8.9

How Grokking Statistics covers it

How deep it goes
Defines the harmonic-mean formula and its equal-weighting limitation, but stops short of deriving or implementing it.
Examples
Uses a wolf-alarm scenario to contrast perfect precision, poor recall, and frequent false alarms.
What it assumes
Assumes familiarity with precision and recall, while explaining the F-score formula in plain terms.
What you can do after
Evaluate/understand how one metric summarizes precision-recall balance while recognizing when equal weighting is unsuitable.
How it connects
Connects classification metrics with precision, recall, thresholds, false alarms, and business priorities.

Also explained in

Compare how 14 books explain f-score →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.