F-beta Score
F-beta Score (Weighted Harmonic Mean) · Also known as: F-measure with parameter beta
The F-beta score is a weighted harmonic mean of precision and recall that allows customizing the relative importance of recall versus precision through a parameter beta. It generalizes the F1-score, which is the special case where beta = 1.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use F-beta score when precision and recall have different importance in your application. Use F2-score (beta = 2) in medical diagnosis where missing a disease is costly. Use F0.5-score (beta = 0.5) in spam filtering where false positives are costly. Choose beta to reflect the relative cost of type II errors (false negatives, penalized by recall) versus type I errors (false positives, penalized by precision).
Strengths & limitations
- Flexible: allows customization of the precision-recall trade-off based on domain requirements.
- Generalizes the F1-score, providing a family of metrics for different scenarios.
- Clear interpretation: beta directly controls the relative weight given to recall.
- Appropriate for imbalanced datasets with asymmetric error costs.
- Requires choosing an appropriate beta value; the choice can be subjective.
- Still ignores true negatives, so does not provide a complete picture of performance.
- Can mask poor performance on specific classes if not combined with per-class analysis.
- More complex to explain to stakeholders than F1-score.
Frequently asked
How do I choose the beta parameter?
Choose beta to reflect the relative cost of false negatives to false positives. If false negatives are twice as costly as false positives, use beta = 2. If false positives are twice as costly as false negatives, use beta = 0.5. If costs are equal, use F1-score (beta = 1). Some practitioners use F2 and F0.5 as standard variants for 'recall-focused' and 'precision-focused' evaluation respectively.
Why not just set different class weights in the learning algorithm instead of using F-beta?
Setting class weights during training optimizes the learned model for specific error costs, while F-beta measures performance on a given model. F-beta is a post-hoc evaluation metric that allows you to assess model performance under different cost assumptions without retraining. However, ideally both should align: use class weights during training and evaluate with matching F-beta.
Is there a way to choose beta automatically from data?
In principle, you could estimate the cost ratio of false negatives to false positives from domain data, but this is often subjective and requires domain expertise. Some practitioners use cross-validation with different beta values to see which provides the best real-world performance, but this requires ground truth data with known costs.
Sources
How to cite this page
ScholarGate. (2026, June 3). F-beta Score (Weighted Harmonic Mean). ScholarGate. https://scholargate.app/en/model-evaluation/f-beta-score
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- F1-ScoreModel Evaluation↔ compare
- Macro-averaged F1Model Evaluation↔ compare
- PrecisionModel Evaluation↔ compare
- Recall (Sensitivity)Model Evaluation↔ compare
- Weighted F1Model Evaluation↔ compare