This study reference evaluates diagnostic metrics for classification tasks characterized by severe class asymmetry. Tracking patterns via cases like anomaly credit card fraud detection shows how traditional goodness-of-fit indicators break down, requiring cost-sensitive optimizations and robust features scaling.
Localized Accuracy Diagnostics
- Precision: The proportion of true positive predictions relative to all positive predictions generated by the model. It gauges accuracy when the system signals an anomaly:
Precision = TP / (TP + FP)
- Recall (Sensitivity): The proportion of true positive predictions relative to the absolute universe of actual ground-truth anomalies. It measures the system's ability to catch missing targets:
Recall = TP / (TP + FN)
- F1 Score: The harmonic mean balancing precision and recall. It delivers a single evaluation indicator that penalizes severe imbalances between the two rates:
F1 Score = 2 * ((Precision * Recall) / (Precision + Recall))