Confusion Matrix Diagnostic Metrics Calculator
Enter confusion matrix counts
Enter the number of true-positive, false-positive, false-negative, and true-negative classifications. Use counts from the same binary classification task and reference standard.
Understanding the metrics
A confusion matrix compares a binary test or classifier with a chosen reference standard. TP and TN are correct positive and negative classifications; FP and FN are incorrect positive and negative classifications, respectively.
Metric definitions
- Sensitivity (recall): proportion of reference-standard positive cases classified as positive.
- Specificity: proportion of reference-standard negative cases classified as negative.
- Positive predictive value (precision): proportion of positive classifications that are true positives.
- Negative predictive value: proportion of negative classifications that are true negatives.
- Accuracy: proportion of all classifications that are correct.
- F1 score: harmonic mean of precision and recall; it does not incorporate true negatives directly.
Interpretation cautions
Predictive values depend on disease prevalence and on the population in which the test is used. Accuracy can be misleading with imbalanced classes. Report the reference standard, study population, threshold, and relevant uncertainty measures when evaluating a diagnostic test. These metrics alone do not establish clinical utility.
References
Clinical notes
Document key findings and keep a structured record for your own reference.
My notes
Review, edit, or remove notes saved in this browser.
Report an issue
Your feedback helps us improve the reliability and usability of this clinical tool.