Table 3: Confusion matrix defining the terms TP, TN, FP, and FN.

Expected outcome Ground truth Row total
Positive Negative

Positive TP FP TP + FP
Negative FN TN FN + TN
Column total TP + FN FP + TN TP + FP + FN + TN