- Also called:
- F-measure
F-score
-
What is the F-score in statistics?
The F-score is a metric used to evaluate the accuracy of a binary classification model by combining precision and recall into one metric. Precision measures the proportion of positive identifications that were actually correct, while recall measures the proportion of actual positive values that were correctly identified.
The F-score is calculated using the formula: F-score = 2 (precision Ă recall)/(precision + recall). The score describes an algorithmâs performance on a scale from 0 to 1, where 1 indicates a perfect algorithm and 0 indicates an algorithm that has failed completely in either recall, precision, or both.
When the F-score is calculated as a harmonic mean of precision and recall, it is sometimes called an F1-score, which weights precision and recall equally.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
Why do statisticians use the F-score?
Statisticians use the F-score to evaluate the accuracy of a binary classification model. The F-score is a metric that combines the precision and recall values of an algorithm. Precision measures the correctness of positive identifications, while recall measures how well a model captures relevant observations.
The F-score ranges from 0 to 1, where 1 indicates a perfect algorithm, and 0 indicates an algorithm that has completely failed in either recall, precision, or both. The F-score is calculated using the formula: F-score = 2 (precision Ă recall)/(precision + recall). The F-score is helpful in determining how well an algorithm classifies a dataset into two categories.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is precision and what is recall in relation to the F-score?
In binary classification, precision measures the accuracy of positive identifications, while recall measures how well a model captures all relevant positives.
The F-score combines precision and recall into a single metric to evaluate the accuracy of a binary classification model. It is calculated with the formula: F-score = (2 \cdot \frac{precision \cdot recall}{precision + recall}). An F-score of 1 indicates a perfect algorithm, while 0 indicates complete failure in either or both.
However, because the F-score does not specify the individual roles of precision and recall in its value, it can be misleading when assessing an algorithm.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How is the F-score calculated from precision and recall?
The F-score is a metric that evaluates the accuracy of a binary classification model. It combines the precision and recall metrics of an algorithm.
It is calculated using the formula: F-score = 2 (precision Ă recall)/(precision + recall). The F-score ranges from 0 to 1, where 1 indicates perfect precision and recall, and 0 indicates that the algorithm has failed completely in either recall, precision, or both. When the F-score is the harmonic mean of precision and recall, it is sometimes called the F1-score, where precision and recall are weighted equally.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
In which situations is the F-score especially useful?
The F-score is especially useful in situations where you need to balance precision and recall in a binary classification model. It is widely used for evaluating classification algorithms in areas such as machine learning, natural-language processing, computer vision, record linking, and data analytics.
However, the F-score has limitations. It does not specify whether recall or precision has played a greater role in calculating the final score, which can be misleading when assessing an algorithm or comparing multiple algorithms. Despite these limitations, the F-score remains a valuable metric when its limitations are understood and when it is modified to suit specific needs.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How do different types of F-scores, like F1 and F2, compare and why might you choose one over the other?
The F-score, also known as the F1-score, assesses the accuracy of binary classification models by combining precision and recall into a single metric.
The F1-score is a balanced measure that equally weights precision and recall. However, the formula can be modified to emphasize either precision or recall.
Different types of F-scores exist to cater to specific needs. For example, in situations where minimizing false positives is critical, precision might be favored over recall, and vice versa. The choice depends on the specific problem and the relative costs of false positives and false negatives.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.
F-score, a metric for evaluating the accuracy of a binary classification model. It combines the precision and recall of an algorithm into one metric.
A binary classification model classifies items as one of two valuesâfor example, âyesâ or âno.â Precision is the fraction of a modelâs returned âyesâ values that are actual âyesâ values. Recall is the fraction of a datasetâs actual âyesâ values that a model includes in its classified group of âyesâ values. This score is considered to be helpful in determining how well an algorithm classifies a dataset into two categories and is widely used in spite of criticisms.
The F-score describes an algorithmâs performance on a scale of 0 to 1. An F-score of 1 indicates a perfect algorithm, and an F-score of 0 indicates an algorithm that has failed completely in either recall, precision, or both. An algorithmâs F-score is calculated using F-score = 2 (precision Ă recall)/(precision + recall).
Suppose a model looks at pictures of apples and oranges and indicates how many apples are in the picture. In one case, the model is given a picture with eight apples and four oranges but states that the picture contains four apples, one of which is actually an orange. This would show that the precision of the model is 3/4, because three of the four apples the model identified are actually apples. The recall of the model is 3/8, because it identified three of the eight apples in the picture. Therefore the F-score isF-score = 2 (3/4 Ă 3/8)/(3/4 + 3/8),or 8/16 = 0.5.
When an F-score is calculated as a harmonic mean of precision and recall, it is sometimes called an F1-score. This is a balanced F-score that weights precision and recall equally. However, the formula can be modified to give more weight to either precision or recall.
Some statisticians note that since the F-score does not give detail about whether recall or precision has played a greater role in calculating the final score, it can be misleading when assessing an algorithm or comparing multiple algorithms. For example, if two models differ in that one calculates recall poorly and the other calculates precision incorrectly, they could have the same F-score even though the models struggle with different aspects of classification.
Another problem arises when the proportion of an algorithmâs ânoâ cases is accurately identified but the F-score only tracks âyesâ cases. Although this is not important in cases such as evaluating a model that is retrieving relevant information from a document, it is critical in cases such as a model of medical diagnoses.
Statisticians point out that using this metric requires understanding its limitations and how it can be modified, with some suggesting modifications to make the F-score more useful. F-scores have also been modified for use beyond binary classification problems, with the emergence of multi-class models that classify data into more than two possible outcomes.
Calculation of an F-score to assess recall and precision was originally used to evaluate information retrieval from documents but is now used for evaluating classification algorithms in areas such as machine learning, natural-language processing, computer vision, record linking, and data analytics. One common use is in medical data analysis, for which an F-score can be used to design models that can predict medical outcomes or that can help to determine what factors influence patient safety.

" height="20" alt="HEW Logo">