When to use this calculator
Average positive-class and negative-class recall equally. Both actual classes must be present; prevalence weighting is deliberately removed.
Explore the descriptive statistics calculators for other questions in this topic. For a related calculation, use the Weighted Mean Calculator: Combine three values using non-negative weights.
Understand the balanced classification accuracy result
Average positive-class and negative-class recall equally. For the example inputs Integer true positives = 40, Integer false negatives = 10, Integer true negatives = 45, Integer false positives = 5, the result is 0.85 fraction. Both actual classes must be present; prevalence weighting is deliberately removed.
PUTTING IT INTO PRACTICE
Balanced Classification Accuracy: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| Integer true positives | 40 |
| Integer false negatives | 10 |
| Integer true negatives | 45 |
| Integer false positives | 5 |
| Result | 0.85 fraction |
- Check the input labels and enter the example values above.
- Apply the relationship: balanced accuracy = (recall+specificity)/2.
- The result is 0.85 fraction, rounded for display.
How to interpret your result
Both actual classes must be present; prevalence weighting is deliberately removed. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
The result is expressed in fraction. Both actual classes must be present; prevalence weighting is deliberately removed.
Frequently asked questions
Which assumptions matter for balanced classification accuracy?
Both actual classes must be present; prevalence weighting is deliberately removed. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
When is the balanced classification accuracy calculator useful?
Average positive-class and negative-class recall equally. Both actual classes must be present; prevalence weighting is deliberately removed.
How do I use the balanced classification accuracy calculator?
Enter integer true positives, integer false negatives, integer true negatives, integer false positives. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
balanced accuracy = (recall+specificity)/2.
What should I check before using the result?
Both actual classes must be present; prevalence weighting is deliberately removed. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Further reading
For background on this topic, see Scikit-learn: classification evaluation metrics ↗. This is a topic reference, not an external review or endorsement of this tool.
Calculators Map editorial process · Updated · Methods and limitations