Statistics

Classification Accuracy

Students count the cards that were sorted correctly.

Classification Accuracy definition

Classification accuracy is the proportion of all predictions that match the actual classes.

In Spanish
exactitud de clasificación
Topic
Classification and evaluation

Classification Accuracy in a picture

Classification Accuracy diagramEight correct positive and 86 correct negative predictions give 94% accuracy out of 100.True positives: 8Correct predictions in the positive classTrue negatives: 86Correct predictions in the negative class(8 + 86) ÷ 100 = 94%Divide by all cases
Eight correct positive and 86 correct negative predictions give 94% accuracy out of 100.

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.