Skip to content
Lambdian

ROC curve and AUC

A plot of true positive rate against false positive rate over all thresholds, and the area under it.

Sweeping the decision threshold from high to low traces the ROC curve: true positive rate (recall) against false positive rate. The area under it (AUC) is the probability that a random positive gets a higher score than a random negative: 0.5 is a coin flip, 1.0 a perfect ranking.

AUC compares rankers independently of any threshold. With very rare positives, also look at the precision–recall curve, because ROC can look good while precision is poor.

See it in action