liveBook · Manning

Accuracy

As explained in Statistics Slam Dunk

Model accuracy is the proportion of instances that a classification model predicts correctly.

Classification accuracy, also called the accuracy rate, measures the proportion of instances a classification model predicts correctly. It is the inverse of misclassification error. section 14.6.2

Calculate accuracy from the model’s classification results:

  • Accuracy = (true positives + true negatives) / total instances. section 14.6.2
  • Equivalently, accuracy = 1 − (false positives + false negatives) / total instances. section 14.6.2
  • Interpret accuracy alongside sensitivity, specificity, the confusion matrix, and AUC rather than treating it as the only measure of predictive quality. section 14.6.2 section 14.8

NBA postseason classification

A logistic regression predicts whether 80 teams qualify for postseason play. Its confusion matrix contains 40 true positives, 19 true negatives, 11 false positives, and 10 false negatives. The error rate is (11 + 10) / 80 = 0.2625, so accuracy is 1 − 0.2625 = 0.7375, or 73.75%.

How Statistics Slam Dunk covers it

How deep it goes
Defines accuracy, gives two formulas, and calculates it from a confusion matrix; it stops short of treating accuracy as sufficient alone.
Examples
Uses an NBA postseason confusion matrix with 40 true positives, 19 true negatives, 11 false positives, and 10 false negatives.
What it assumes
Requires distinguishing true positives, true negatives, false positives, and false negatives within a confusion matrix.
What you can do after
Evaluate model correctness by deriving accuracy from predicted and actual binary outcomes.
How it connects
Connects accuracy to misclassification error, confusion matrices, sensitivity, specificity, logistic regression, and AUC.

Also explained in

Compare how 32 books explain accuracy →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Slam Dunk. The section links point to the parts of the book it draws on.