Accuracy
Core Meaning
Accuracy is the proportion of all predictions—across every class—that match the true label. It summarizes overall correctness without distinguishing error types.
Workflow Location
Evaluation when classes are roughly balanced and misclassification costs are approximately symmetric.
Concept Structure
Broader concepts
Commonly compared with
Recommended next
Function
Provides a single interpretable score of overall classification correctness when classes are balanced.
Mechanism
Computed from confusion matrix counts: correct predictions divided by total predictions.
Equation or Formal Expression
Accuracy = (TP + TN) / (TP + TN + FP + FN)
Accuracy measures the fraction of all predictions that are correct, regardless of class.
High accuracy indicates general correctness but hides poor performance on minority classes when data are imbalanced.
- TP
- True positives — actual positive predicted positive
- TN
- True negatives — actual negative predicted negative
- FP
- False positives — actual negative predicted positive
- FN
- False negatives — actual positive predicted negative
Appropriate for balanced classes and symmetric error costs. Prefer precision, recall, or F1 when classes are imbalanced or error costs differ.
Visual Intuition
Practical Example
A digit classifier on a balanced benchmark reports 92% accuracy after final model selection on the held-out test set.
Common Distinction
Overall correctness versus precision (reliability of positive predictions) and recall (coverage of actual positives).
Limitation
Misleading under class imbalance—a majority-class classifier can achieve high accuracy while failing minority classes entirely.