Precision, Recall, and ROC Under Class Imbalance
Compute precision from true and false positive rates and explain why prevalence changes the picture even with the same ranking quality.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Two rates have different denominators
Recall is the fraction of actual positives retrieved. False positive rate is the fraction of actual negatives retrieved. If positives make up one percent of a population, a threshold with recall \(0.8\) and false positive rate \(0.05\) produces about \(0.008\) true and \(0.0495\) false positives per example. Precision is about \(0.139\), because it conditions on predicted positives rather than actual positives.
A threshold curve still needs an application objective
ROC compares true and false positive rates across thresholds. Precision–recall exposes the resulting positive predictions under the given prevalence. Neither chooses a decision threshold without considering which errors matter and where the model will run. Conditional probability explains the base-rate calculation. Calibration checks the meaning of reported probabilities, a distinct property from score ranking.[1][2]