Choose the positive class and define the error trade-off
Fβ combines precision and recall for a specified positive class. Precision asks what fraction of positive predictions was correct; recall asks what fraction of actual positive cases was found. β>1 emphasizes recall relatively more, while 0<β<1 emphasizes precision. Choose it to match the task rather than retrospectively selecting the most flattering test result.[1]
TP,FP,FN are counts from the same evaluation; β is positive and dimensionless. Individual ratios require nonzero denominators.[1]
True negatives do not enter the score. A high Fβ therefore does not automatically imply high accuracy or a complete quality assessment. Compare the same positive class, decision threshold and averaging convention. This calculator covers one binary positive class rather than automatically performing macro or micro averaging across classes. Report precision and recall alongside the combined score for that reason.[1]
Calculate from counts without unnecessary intermediate divisions
The direct form avoids undefined intermediate precision or recall values when the Fβ denominator itself is positive.[1]
Substituting the precision and recall ratios and clearing common factors gives this count form. β2 multiplies FN, while FP has coefficient 1. This is an algebraic weighting, not a universal conversion of arbitrary monetary error costs. With TP=0 and at least one error, Fβ=0. Only TP=FP=FN=0 also makes the direct denominator zero and requires an explicit convention.[1]
The score is a weighted harmonic mean, not an ordinary average. A low component cannot simply be hidden by a very high other component. β=1 gives F1. Changing β changes the evaluation of the same predictions, not their actual error counts. Changing the decision threshold can instead change precision and recall themselves.[1]
Theoretical rearrangement for precision from known, mutually consistent positive Fβ and recall. This is not an additional calculator target.[1]
First multiply out Fβ(β2P+R)=(1+β2)PR, then collect terms containing P on one side. Division requires a positive denominator, and reconstructed precision must not exceed one. With β=0.5, Fβ=5/7 and R=3/5, it gives P=3/4, matching the first example with the same matrix and a different weight. For Fβ=R=0, this form instead gives 0/0 and does not determine a unique precision. The extra rearrangement supports algebraic understanding; the specialized calculator still evaluates only TP, FP, FN and β directly.[1]
Distinguish weighting from zero cases
Greater recall emphasis for fixed predictions
- Given
- TP=30, FP=10, FN=20, β=2.
- Find
- Compare precision, recall and F2.
The component metrics use different denominators.
In the count form β2=4.
Result: F2=0.625 lies closer to the lower recall than the higher precision.
Check: The ratio form also gives 5·0.75·0.6/(4·0.75+0.6)=0.625.
No positive predictions, but missed positives
- Given
- TP=0, FP=0, FN=4, β=2.
- Find
- Find F2 without calculating precision as 0/0.
Precision as a standalone ratio is undefined here; recall is zero.
The direct F2 denominator is nevertheless positive.
Result: F2=0 is unambiguously defined in the count form.
Check: Do not confuse this with TP=FP=FN=0, where the direct denominator is also zero.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Binary counts and an explicit convention
The specialized calculator accepts nonnegative integer TP, FP and FN up to 109 and 0.01≤β≤100. It evaluates the direct count form with canonical decimal interpretation of β. A completely empty positive case is not silently assigned zero or one; it is rejected as undefined without an agreed convention. Libraries may explicitly choose other rules, which must be stated when comparing scores.[1]
Calculate and interpret the metric critically
Calculate · Foundation
TP=8, FP=2, FN=4, β=1. Calculate F1.
Show hint
Use 2TP/(2TP+FP+FN).
Learning goal: Apply the F1 special case.
Show solution and calculation
F1=16/(16+2+4)=8/11≈0.727273.
Calculate · Application
For the first example’s counts, use β=0.5.
Show hint
β2=0.25, not 0.5.
Learning goal: Use the squared weight.
Show solution and calculation
F0.5=37.5/(37.5+10+5)=5/7≈0.714286, now closer to precision 0.75.
Error analysis · Foundation
P=0.8 and R=0.2. Someone calls (P+R)/2=0.5 the F1 score.
Show hint
F1 is harmonic rather than arithmetic.
Learning goal: Distinguish harmonic and arithmetic means.
Show solution and calculation
F1=2·0.8·0.2/(0.8+0.2)=0.32.
The ordinary average uses the wrong combination.
Interpret · Application
TP=FP=FN=0. May Fβ=1 be asserted without explanation?
Show hint
The direct fraction is 0/0.
Learning goal: Separate convention from a formula value.
Show solution and calculation
No.
The mathematical ratio is undefined.
Software may define a convention but must state it; this model rejects the case.
Transfer · Foundation
Keeping TP,FP,FN fixed, TN increases from 100 to 10000. Does Fβ change?
Show hint
Look for TN in the formula.
Learning goal: Understand which information a metric uses.
Show solution and calculation
Fβ stays unchanged because TN is absent.
Other metrics such as accuracy can change, so Fβ does not describe every quality dimension.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 21, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Developed the precision rearrangement with validity limits and completed the β² error explanation; added four learning steps while preserving two examples, five exercises and full FAQs.
- Authored a distinct DE/EN article with model limits, two worked examples and five varied exercises.
Cite this reference page
Quanta. Fβ score (weighted precision-recall measure). Updated November 21, 2026. https://quanta-study.de/en/formula-sheet/f-beta-score
When citing a specific scientific statement, also cite the specialist source linked to that statement.