Metrics cheatsheet

32 metrics · ✓ good for · ✗ watch out

Formula key
TP
True positive: a positive case correctly flagged.
TN
True negative: a negative case correctly cleared.
FP
False positive: a false alarm.
FN
False negative: a missed positive case.
N
Total cases: TP + TN + FP + FN.
P, R
Precision and recall.
p
Predicted probability of the positive class.
y
Actual label: 1 for positive, 0 for negative.

? means higher is better; ? means lower is better. Positive means the class you want to find, such as fraud. Prevalence means the share of actual positives. Formulas here use binary classification; a rate with a zero denominator is undefined. Counts alone cannot give ranking, probability, or timing metrics.