F-score
In statistical analysis of binary classification and information retrieval systems, the F-score or F-measure is a measure of predictive performance.[src] It is calculated from the precision and recall of the test, where the precision is the number of true positive results divided by the number of all samples predicted to be positive, including those not identified correctly, and the recall is the number of true positive results divided by the number of all samples that should have been identified as positive.[src] Precision is also known as positive predictive value, and recall is also known as sensitivity in diagnostic binary classification.[src] The F 1 score is the harmonic mean of the precision and recall.[src] It thus symmetrically represents both precision and recall in one metric.[src] The more generic F_\beta score applies additional weights, valuing one of precision or recall more than the other.[src] The highest possible value of an F-score is 1.0, indicating perfect precision and recall, and the lowest possible value is 0, if the precision or the recall is zero.[src]
In statistical analysis of binary classification and information retrieval systems, the F-score or F-measure is a measure of predictive performance.[src] It is calculated from the precision and recall of the test, where the precision is the number of true positive results divided by the number of all samples predicted to be positive, including those not identified correctly, and the recall is the number of true positive results divided by the number of all samples that should have been identified as positive.[src] Precision is also known as positive predictive value, and recall is also known as sensitivity in diagnostic binary classification.[src] The F 1 score is the harmonic mean of the precision and recall.[src] It thus symmetrically represents both precision and recall in one metric.[src] The more generic F_\beta score applies additional weights, valuing one of precision or recall more than the other.[src] The highest possible value of an F-score is 1.0, indicating perfect precision and recall, and the lowest possible value is 0, if the precision or the recall is zero.[src] F_1 = \frac{2}{\mathrm{recall}^{-1} + \mathrm{precision}^{-1}} = 2 \frac{\mathrm{precision} \cdot \mathrm{recall}}{\mathrm{precision} + \mathrm{recall}} = \frac{2\mathrm{TP}}{2\mathrm{TP} + \mathrm{FP} + \mathrm{FN}} With and , it follows that the numerator of is the sum of their numerators and the denominator of is the sum of their denominators.[src] If FP=FN F_1 = \frac{2\mathrm{TP}}{2\mathrm{TP} + 2\mathrm{FP}}= \frac{\mathrm{TP}}{\mathrm{TP} + \mathrm{FP}} or F_1 = \frac{2\mathrm{TP}}{2\mathrm{TP} + 2\mathrm{FN}}= \frac{\mathrm{TP}}{\mathrm{TP} + \mathrm{FN}} So, F1 = precision = recall If TP=FP=FN F_1 = \frac{2\mathrm{TP}}{2\mathrm{TP} + 2\mathrm{FP}} = \frac{2\mathrm{TP}}{4\mathrm{TP}}= \frac{1}{2}= 0.5 or F_1 = \frac{2\mathrm{TP}}{2\mathrm{TP} + 2\mathrm{FN}} = \frac{2\mathrm{TP}}{4\mathrm{TP}}= \frac{1}{2}= 0.5 To see it as a harmonic mean, note that F_1^{-1} = \frac 12 (\mathrm{recall}^{-1} + \mathrm{precision}^{-1}) .[src] F_\beta = \frac{\beta^2 + 1}{(\beta^2 \cdot \mathrm{recall}^{-1}) + \mathrm{precision}^{-1}} = \frac{(1 + \beta^2) \cdot \mathrm{precision} \cdot \mathrm{recall}}{(\beta^2 \cdot \mathrm{precision}) + \mathrm{recall}} To see that as a weighted harmonic mean, note that F_\beta^{-1} = \frac{1}{\beta + \beta^{-1}} (\beta \cdot \mathrm{recall}^{-1} + \beta^{-1}\cdot\mathrm{precision}^{-1}) .[src] In terms of Type I and type II errors this becomes: F_\beta = \frac {(1 + \beta^2) \cdot \mathrm{TP} }{(1 + \beta^2) \cdot \mathrm{TP} + \beta^2 \cdot \mathrm{FN} + \mathrm{FP}}\,= \frac {(1 + \beta^2) \cdot \mathrm{TP} }{(\mathrm{TP} + \mathrm{FN}) \cdot \beta^2 + (\mathrm{TP} + \mathrm{FP})}\, Two commonly used values for \beta are 2, which weighs recall higher than precision, and 1/2, which weighs recall lower than precision.[src] The F-measure was derived so that F_\beta "measures the effectiveness of retrieval with respect to a user who attaches \beta times as much importance to recall as precision".[src] It is based on Van Rijsbergen's effectiveness measure E = 1 - \left(\frac{\alpha}{p} + \frac{1-\alpha}{r}\right)^{-1} Their relationship is: F_\beta = 1 - E where \alpha=\frac{1}{1 + \beta^2} ==Difference from Fowlkes–Mallows index== While the F-measure is the harmonic mean of recall and precision, the Fowlkes–Mallows index is their geometric mean.[src] ==Extension to multi-class classification== The F-score is also used for evaluating classification problems with more than two classes (Multiclass classification).[src] A common method is to average the F-score over each class, aiming at a balanced measurement of performance.[src] ===Macro F1=== Macro F1 is a macro-averaged F1 score aiming at a balanced performance measurement.[src] To calculate macro F1, two different averaging-formulas have been used: the F1 score of (arithmetic) class-wise precision and recall means or the arithmetic mean of class-wise F1 scores, where the latter exhibits more desirable properties.[src] ===Micro F1=== Micro F1 is the harmonic mean of micro precision and micro recall.[src] In single-label multi-class classification, micro precision equals micro recall, thus micro F1 is equal to both.[src] However, contrary to a common misconception, micro F1 does not generally equal accuracy, because accuracy takes true negatives into account while micro F1 does not.[src] ==See also== BLEU Confusion matrix Hypothesis tests for accuracy METEOR NIST (metric) Receiver operating characteristic ROUGE (metric) Uncertainty coefficient, aka Proficiency Word error rate LEPOR[src]
28 sentences · 28 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"F-score." encyclopegia.org, 2026, https://encyclopegia.org/wiki/f-score. Accessed 26 November 2026.
Chicago
"F-score." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/f-score.
APA
encyclopegia.org. (2026). F-score. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/f-score
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON