85 correct out of 100
tp = 50fp = 10fn = 5tn = 35
Result: Accuracy 0.85 (85%) · Error rate 0.15
Accuracy is the fraction of all predictions your classifier got right: (TP + TN) ÷ (TP + FP + FN + TN). Enter the four confusion-matrix counts and see the accuracy — plus the error rate, which is 1 − accuracy.
Enter your values and press Calculate — the result appears here.
tp = 50fp = 10fn = 5tn = 35Result: Accuracy 0.85 (85%) · Error rate 0.15
tp = 40fp = 0fn = 0tn = 60Result: Accuracy 1.00 (100%)
The proportion of predictions that were correct. It is the simplest classification metric, but on imbalanced data it can be misleading — 90% accuracy is weak if 90% of examples are one class and the model simply always predicts it.
Accuracy divides by the total number of predictions. With no predictions at all (TP = FP = FN = TN = 0) the formula is 0 ÷ 0, which has no meaningful value.
The error rate is the share of predictions that were wrong: (FP + FN) ÷ N, which equals 1 − accuracy. Some teams report one, some the other.
Enter TP, FP, FN, and TN and get every derived metric: accuracy, precision, recall, specificity, F1…
Try it now →Compute precision — the share of positive predictions that were actually correct.
Try it now →Compute the F1 score — the harmonic mean of precision and recall — from TP, FP, FN, TN.
Try it now →Compute the mean absolute error of a regression from actual vs predicted value pairs.
Try it now →Join the conversation about Machine Learning, accuracy, accuracy calculator on the BestWordz Community forum.
Visit Forum →Have questions about Accuracy Calculator? Join the BestWordz Community.