Paired AUROC versus shape¶
Two models can rank cases equally well overall but make different trade-offs at the cutoffs you use. Choose the comparison that matches your decision.
1. What each test compares¶
DeLong compares the models' area under the receiver operating characteristic curve (AUROC), which summarizes how well each score ranks cases with and without the outcome.
Venkatraman compares the models' receiver operating characteristic (ROC) curves: the trade-offs they make across score cutoffs.
DeLong |
Venkatraman |
|
|---|---|---|
| Question | Does one model rank cases better overall? | Do the models make different trade-offs across cutoffs? |
statistic |
AUROC(candidate) - AUROC(reference) |
Non-negative summed gap between the curves |
| Direction | Choose greater, less, or two-sided |
Always two-sided |
| Use when | The overall ranking matters to your decision | Different error trade-offs matter to your decision |
| What it may miss | Curves that cross but have the same AUROC | Which model has the higher AUROC |
The candidate does better at some cutoffs, while the reference does better at others. Their overall AUROCs can still be similar.
2. How the paired comparison works¶
For the permutation versions, outcomes stay fixed while the two predictions are swapped within each case. The test compares the observed result with those swaps.
DeLong uses an asymptotic test by default; Venkatraman uses permutations. See API: Testing for exact inputs and results.
Next steps¶
Run both comparisons in Compare models.
References¶
- DeLong, DeLong, and Clarke-Pearson, “Comparing the Areas under Two or More Correlated Receiver Operating Characteristic Curves: A Nonparametric Approach,” Biometrics, 1988.
- Sun and Xu, “Fast Implementation of DeLong’s Algorithm for Comparing the Areas Under Correlated Receiver Operating Characteristic Curves,” IEEE Signal Processing Letters, 2014.
- Venkatraman and Begg, “A Distribution-Free Procedure for Comparing Receiver Operating Characteristic Curves from a Paired Experiment,” Biometrika, 1996. This package uses average midranks without jitter.