F-beta score calculator
Combine precision and recall with a chosen beta weight, where beta above one favors recall.
Related calculators
Use these tools when your question extends to a neighboring part of the same calculation.
How to use this calculator
Combine precision and recall with a chosen beta weight, where beta above one favors recall.
- Enter Precision (0–1), Recall (0–1), Beta (positive). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
F-beta score calculator
Combine precision and recall with a chosen beta weight, where beta above one favors recall.
What it measures
Combine precision and recall with a chosen beta weight, where beta above one favors recall.
Inputs and units
- Precision (0–1): Enter a proportion on the 0–1 scale stated in the label, not a percent from 0 to 100.
- Recall (0–1): Enter a proportion on the 0–1 scale stated in the label, not a percent from 0 to 100.
- Beta (positive): Enter the value represented by this label; keep its domain, sign, and units consistent with the formula and assumptions below.
Formula and method
(1+β²)PR/(β²P+R)
Worked example
Precision 0.8, recall 0.6, β=2 gives F₂=(1+4)(0.8)(0.6)/(4(0.8)+0.6)=2.4/3.8≈0.6316.
Interpreting the result
Scores range from 0 to 1 for valid precision and recall. Larger beta places more weight on recall; beta below 1 places more weight on precision.
Assumptions and limits
Precision and recall must be in [0,1], and beta must be positive. This two-input summary does not capture class prevalence or the costs of each error.
Sources and method
- Describes F-beta as a weighted harmonic mean of precision and recall. scikit-learn: F-beta score
Frequently asked questions
What does beta control?
It sets the relative emphasis on recall versus precision.
Why is F₂ below 0.8 here?
The harmonic mean is constrained by both precision and recall; the lower recall pulls the combined score down.
How do I use the F-beta score calculator?
Enter Precision (0–1), Recall (0–1), Beta (positive). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of F-beta score?
Precision 0.8, recall 0.6, β=2 gives F₂=(1+4)(0.8)(0.6)/(4(0.8)+0.6)=2.4/3.8≈0.6316.
What does the F-beta score calculator calculate?
Combine precision and recall with a chosen beta weight, where beta above one favors recall.
See the calculation methodology.