The DeLong test is a non-parametric statistical method for comparing the areas under two or more correlated Receiver Operating Characteristic (ROC) curves derived from the same set of cases. It provides a direct statistical comparison of the overall diagnostic accuracy of different tests or models without assuming a specific data distribution.
Glossary
DeLong Test

What is DeLong Test?
A non-parametric approach for comparing the diagnostic accuracy of correlated classification systems.
Unlike simple comparisons of point estimates, the DeLong test accounts for the correlation between AUCs that arises when multiple diagnostic systems are evaluated on identical subjects. It computes a covariance matrix of the AUC estimators, enabling a chi-squared test to determine if observed performance differences are statistically significant rather than random variation.
Key Statistical Properties
Essential statistical concepts for comparing the discriminative performance of correlated diagnostic models using the DeLong test.
Correlated ROC Curves
The DeLong test is specifically designed to compare Receiver Operating Characteristic (ROC) curves that are correlated—meaning they are derived from the same set of cases. This is the standard scenario when comparing two diagnostic models or two imaging modalities on a single patient cohort. Standard tests for independent samples would produce inflated Type I error rates in this context. The test accounts for the covariance structure between the Area Under the Curve (AUC) estimates.
Non-Parametric Foundation
Unlike parametric methods that assume a specific distribution (e.g., binormal), the DeLong test is non-parametric. It uses the structural components of the Mann-Whitney U-statistic to estimate the variance-covariance matrix of the AUCs. This makes it robust to violations of normality and particularly suitable for the often non-Gaussian distributions of prediction scores in machine learning models. The method relies on asymptotic theory, making it valid for sufficiently large sample sizes.
Variance-Covariance Estimation
The core mathematical innovation of the DeLong test is its method for estimating the variance-covariance matrix of multiple AUC estimators. It computes a covariance for every pair of models being compared by evaluating the variability contributed by each individual case. This matrix is then used to construct a chi-squared test statistic to evaluate the null hypothesis that all AUCs are equal. The test statistic is calculated as:
χ² = (Lθ)' [LSL']⁻¹ (Lθ)whereθis the vector of AUCs andSis the covariance matrix.
Pairwise vs. Omnibus Comparison
The DeLong test can be applied in two modes:
- Omnibus Test: Evaluates the global null hypothesis that all
kmodels have identical AUCs. A significant result indicates at least one model differs. - Pairwise Post-hoc: If the omnibus test is significant, or if only two models are compared, the test provides a direct contrast between two specific AUCs. This yields a z-statistic and a p-value for the difference between two models, allowing for direct head-to-head comparisons of diagnostic performance.
Assumptions and Limitations
The DeLong test relies on several key assumptions:
- Asymptotic Normality: The test is valid for large samples; performance may be unreliable with very small case numbers.
- Identical Cases: All models must be evaluated on the exact same set of subjects. Missing data for one model violates the correlation structure.
- Binary Outcome: The standard formulation requires a binary ground truth (diseased vs. non-diseased). Extensions exist for ordinal outcomes.
- Independent Observations: The test assumes cases are independent; it does not natively handle clustered data (e.g., multiple lesions per patient) without modification.
Implementation in Software
The DeLong test is widely available in statistical and machine learning libraries:
- R: The
pROCpackage provides theroc.test()function withmethod="delong". - Python: The
compare_auc_delong_xufunction in themlxtendlibrary implements the test. Thescikit-learnecosystem does not have a native implementation, but custom code using the U-statistic formulation is straightforward. - MedCalc: A dedicated medical statistics software that offers a graphical interface for DeLong comparisons.
- STATA: The
roccompcommand performs the test.
DeLong Test vs. Other AUC Comparison Methods
A comparison of the DeLong test against alternative statistical approaches for comparing the areas under correlated Receiver Operating Characteristic curves derived from the same set of cases.
| Feature | DeLong Test | Hanley-McNeil | Bootstrap Test | Venkatraman's Permutation |
|---|---|---|---|---|
Statistical Framework | Non-parametric | Parametric (binormal) | Non-parametric | Non-parametric |
Handles Correlated Data | ||||
Distribution Assumptions | None | Binormal ROC curves | None | None |
Variance Estimation | Analytic (U-statistics) | Analytic (delta method) | Empirical resampling | Permutation-based |
Computational Complexity | Low | Low | High | Medium |
Small Sample Robustness | Moderate | Low | High | High |
Software Availability | Widespread (pROC, SAS) | Limited | Widespread | Limited |
Standard Error of AUC Difference | Directly computed | Approximated | Empirically derived | Empirically derived |
Frequently Asked Questions
The DeLong test is a cornerstone of clinical validation for diagnostic AI. These answers address the most common statistical and practical questions engineers and clinical researchers encounter when comparing the performance of two correlated ROC curves.
The DeLong test is a non-parametric statistical method for comparing the areas under two or more correlated Receiver Operating Characteristic (ROC) curves derived from the same set of cases. It works by computing the AUC for each diagnostic model and then estimating the variance-covariance matrix of these AUCs using the theory of U-statistics. Specifically, the test calculates a chi-square statistic based on the difference in AUCs, accounting for the correlation induced by evaluating both models on identical patient data. This correlation structure is critical; ignoring it by using a standard t-test for independent samples would inflate the Type I error rate. The test's null hypothesis is that the true AUCs are equal, and a significant p-value indicates that one model possesses superior discriminative ability.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the statistical ecosystem surrounding the DeLong Test. These concepts are essential for rigorously comparing and validating the performance of diagnostic AI models.
ROC-AUC
The Receiver Operating Characteristic Area Under the Curve is the primary metric compared by the DeLong Test. It quantifies a diagnostic model's ability to discriminate between classes across all thresholds. An AUC of 1.0 represents perfect separation, while 0.5 is no better than random chance. The DeLong Test statistically evaluates if one model's AUC is significantly greater than another's.
Sensitivity & Specificity
These are the foundational building blocks of the ROC curve. Sensitivity (True Positive Rate) measures a test's ability to correctly identify patients with a disease. Specificity (True Negative Rate) measures its ability to correctly identify patients without the disease. The DeLong Test compares the integrated trade-off between these two metrics for competing diagnostic AI systems.
Confusion Matrix
A contingency table that visualizes the raw counts of True Positives, False Positives, True Negatives, and False Negatives. This is the raw data source from which sensitivity and specificity are derived. Understanding this matrix is crucial for interpreting the inputs that ultimately generate the ROC curves compared by the DeLong Test.
MRMC Analysis
Multi-Reader, Multi-Case analysis extends the DeLong Test's principles to studies involving multiple human interpreters. While the DeLong Test handles correlated data from the same cases, MRMC statistically accounts for variance introduced by both reader variability and case variability, preventing inflated Type I errors when comparing diagnostic modalities.
Bonferroni Correction
A conservative adjustment applied when performing multiple DeLong Tests across several model comparisons. It divides the significance threshold (e.g., 0.05) by the number of tests. If you compare 5 models, the new threshold becomes 0.01. This controls the family-wise error rate, ensuring the overall probability of a false positive remains low.
Non-Inferiority Study
A trial design where the DeLong Test can be adapted to prove a new AI model is 'not unacceptably worse' than a standard. Instead of proving superiority, the test checks if the confidence interval for the AUC difference excludes a pre-specified non-inferiority margin. This is critical for regulatory submissions where a faster or cheaper AI must match existing accuracy.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us