Confusion Matrix Calculator

Analyze classification performance with comprehensive metrics

Input Values

Confusion Matrix

Pred +
Pred -
Actual +
45
5
Actual -
8
122
Legend: TP (correct positive), TN (correct negative), FP (false positive), FN (false negative)

Classification Metrics

Accuracy
(TP + TN) / Total
Precision
TP / (TP + FP)
Recall (Sensitivity)
TP / (TP + FN)
Specificity
TN / (TN + FP)
F1 Score
2·(Precision·Recall)/(Precision+Recall)
MCC (Matthews)
(TP·TN - FP·FN) / √((TP+FP)(TP+FN)(TN+FP)(TN+FN))
False Positive Rate
FP / (FP + TN)
False Negative Rate
FN / (FN + TP)
ROC Curve Point
False Positive Rate (X)
True Positive Rate (Y)

Recommended by our team

BeLikeNative.com

The #1 AI writing tool for freelancers — perfect grammar in any language, instantly.