π ROCβAUC
Descriptionβ
-
The ROC curve (Receiver Operating Characteristic) plots a binary classifier's true-positive rate against its false-positive rate at every possible decision threshold.
-
AUC is the area under that curve. It measures ranking quality: the probability that a randomly chosen positive example receives a higher score than a randomly chosen negative example. The larger the AUC, the better the classifier is.
Key pointsβ
| AUC | Interpretation |
|---|---|
| 1.0 | Perfect ranking |
| 0.5 | No better than random ranking |
| < 0.5 | Rankings are reversed; swapping score direction gives an AUC above 0.5 |
- ROCβAUC is threshold-independent, so use it to compare a model's overall ability to rank positive cases above negative ones. Choose the final operating threshold separately from business costs, capacity, and error tradeoffs.
- On heavily imbalanced datasets, ROCβAUC can look strong even when precision is poor; precisionβrecall AUC is often more informative when the positive class is rare.
- ROCβAUC measures ranking, not probability quality. A model can have a high AUC and poor confidence calibration; see Confidence Calibration.
- For multiclass tasks, specify the averaging schemeβcommonly one-vs-rest with macro, weighted, or micro averaging.
Crash courseβ
- ROC and AUC, Clearly Explained!
- ROC Curve and AUC Value
Referenceβ
- An Introduction to ROC Analysis (Fawcett, 2006)
- ROC and AUC (scikit-learn)
- AUC-ROC Curve in Machine Learning (geeksforgeeks.org)