8
$\begingroup$

The article for F-measure in Wikipedia says:

The traditional F-measure or balanced F-score (F1 score) is the harmonic mean of precision and recall: $F_1=2\times\frac{precision \times recall}{precision+recall}$

Why is the harmonic mean used in particular, and not the arithmetic mean or geometric mean or any other type of averages?

What exactly does it mean, to calculate an harmonic mean?

$\endgroup$
3
  • 2
    $\begingroup$ From wikipedia: Typically, it is appropriate for situations when the average of rates is desired. This thread might also be of interest: "Which “mean” to use and when?" $\endgroup$
    – user10525
    Commented Sep 19, 2012 at 15:59
  • 1
    $\begingroup$ In fact it is more that F is defined as a harmonic mean of precision and recall rather that F is defined as a mean of precision and recall and for some reason we are using harmonic mean. $\endgroup$
    – user88
    Commented Sep 19, 2012 at 18:54
  • 1
    $\begingroup$ StackOverflow also has a nice explanation on this. $\endgroup$ Commented Jan 10, 2021 at 7:34

1 Answer 1

7
$\begingroup$

The F-measure is often used in the natural language recognition field for means of evaluation. In particular, the F-measure was employed by the Message Understanding Conference (MUC), in order to evaluate named entity recognition (NER) tasks. Directly quoted from A survey of named entity recognition and classification written by D. Nadeau:

The harmonic mean of two numbers is never higher than the geometrical mean. It also tends towards the least number, minimizing the impact of large outliers and maximizing the impact of small ones. The F-measure therefore tends to privilege balanced systems.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.