Classification Accuracy definition
Classification accuracy is the proportion of all predictions that match the actual classes.
Classification Accuracy in a picture
How it works
In binary classification, add true positives and true negatives, then divide by the total number of cases. For several classes, sum all counts on the diagonal of a confusion matrix whose rows and columns have the same order.
Worked examples
A classifier gets 24 of 30 cases right. Find accuracy.
24/30 = 80%.
What is the accuracy of always predicting negative when 98 out of 100 cases are negative?
98%, although no positive case is detected.
What is the error rate if accuracy is 87%?
13%.
Common mistake
Check performance within each class when one class dominates. A large overall share can hide missed cases in a rare class.
Quick check
What is the denominator?
Show answer
All evaluated cases.
Do correct negative predictions count?
Show answer
Yes.
Is accuracy defined on an empty set?
Show answer
No, the denominator would be zero.
Sources
Flashcard
Classification Accuracy
Reveal the definition
Classification accuracy is the proportion of all predictions that match the actual classes.
Effortless Math. “Classification Accuracy.” Math Dictionary.



