the fundamental counting table for binary classification, splitting samples into 4 cells by “true label × predicted label”: TP (predicted positive, actually positive), FP (predicted positive, actually negative — Type I error), FN (predicted negative, actually positive — Type II error), TN (predicted negative, actually negative), with total
N=TP+FP+FN+TN. Accuracy
Acc=NTP+TN is the only metric determined solely by the diagonal. Numerical example: 100 samples with 95 negatives and 5 positives; the model predicts everything as negative, giving
TP=0,FP=0,FN=5,TN=95 and
Acc=95/100=95% — it looks excellent, yet not a single positive is found (recall = 0). This is the accuracy trap.