Model Performance Metrics Calculator
Calculate accuracy, precision, recall, F1 score, MCC, AUC, and other classification performance metrics.
Inputs
Results
Accuracy
87.5%
Precision
89.47%
Recall (Sensitivity)
85%
F1 Score
87.18%
How to Use This Calculator
- Enter the confusion matrix values: true positives, false positives, true negatives, false negatives.
- Review the derived metrics: accuracy, precision, recall, F1 score, and specificity.
- Set the positive class prevalence to see how threshold changes affect precision-recall tradeoff.
- For imbalanced datasets, prioritize F1 score or AUC-ROC over raw accuracy.
- Compare metrics across models to select the best performer on your evaluation criteria.
How the result changes with False Negatives (FN)
| False Negatives (FN) | Accuracy | Precision | Recall (Sensitivity) |
|---|---|---|---|
| 6 | 91.62% | 89.47% | 93.41% |
| 21 | 84.95% | 89.47% | 80.19% |
| 39 | 78.13% | 89.47% | 68.55% |
| 54 | 73.22% | 89.47% | 61.15% |
What each input means
- True Positives (TP)
- Correctly predicted positive cases
- True Negatives (TN)
- Correctly predicted negative cases
- False Positives (FP)
- Incorrectly predicted as positive
- False Negatives (FN)
- Incorrectly predicted as negative
How this is calculated
Formula
F1 = 2 × (Precision × Recall) / (Precision + Recall)Worked example, using the default values
- Identify Input Parameters4 parametersTrue Positives (TP) = 85, True Negatives (TN) = 90, False Positives (FP) = 10, False Negatives (FN) = 15 = 4 input(s) provided
- Calculate AccuracyAccuracy87.5 = 87.5%
- Calculate PrecisionPrecision89.47 = 89.47%
- Calculate RecallRecall85 = 85%
- Calculate Matthews Correlation CoefficientMatthews Correlation Coefficient75.09 = 75.09
- Calculate AUCAUC87.5 = 87.5
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Gradient Descent Calculator
Calculate gradient descent parameters, convergence rate, effective learning rate, and training time estimates.
Machine Learning & AINeural Network Parameters Calculator
Calculate total parameters, weights, biases, and memory requirements for neural network architectures.
Machine Learning & AIModel Performance Calculator
Complete ML model evaluation. Classification metrics, regression analysis, cross-validation, ROC/AUC curves, and model comparison.
Data ScienceConfusion Matrix Analyzer
Analyze classification model performance from confusion matrix values. Calculate precision, recall, F1 score, MCC, accuracy, specificity, and more.
More in Technology & Computing.