Accuracy plot Sensitivity (TPR) Specificity (TNR) 0.0 0.25 0.50 0.75 1.0 0.0 0.25 0.50 0.75 1.0 Accuracy = 0.00

Definition

Accuracy = (TP + TN) / (TP + FP + FN + TN). With balanced data (π ≈ 0.5), Accuracy ≈ 0.5·TPR + 0.5·TNR.
TPR0.70
TNR0.80
Accuracy0.75

Confusion Matrix (N = 100, π = 0.5)

Pred +
Pred −
Actual +
TP
FN
Actual −
FP
TN
Animation
Move the sliders—or hit Play. The point is at (TNR on x, TPR on y). Accuracy is highest near the top-right corner (both high).