Author-reviewedEvidence: highv1.0.3

Area Under Curve

Area under the curve (AUC), or C-statistic, is the probability a test or risk model scores a random case above a random non-case (0.5 chance, 1 perfect).

Download concept guide
Last reviewed byDr Darrin Baines

Concept Architecture

Area Under Curve as a Measure of Discrimination in Economic Evaluation

In health economics the phrase "area under the curve" has several meanings. The meaning used here is the area under a receiver operating characteristic (ROC) curve, also reported as the C-statistic, which summarises how well a diagnostic test or risk prediction model separates people who have, or will have, an outcome from people who do not. It matters to economists because tests and risk scores decide who is treated, and the costs and health effects in a model follow from those decisions. The statistic rests on a simple probability, can be calculated from patient pairs or from the ROC curve, has a survival version, and a high value does not on its own show that a test or model is worth using, as an illustrative ten-patient example shows. The survival and pharmacokinetic meanings of the phrase are linked in the first section.

Which area under which curve

Several quantities in health economics are areas under curves, and they share only the mathematics of integration. In survival modelling, the mean survival of a population is the area under its whole survival function; when some patients are still alive at the end of follow-up, only a mean restricted to that time can be estimated directly, which is the restricted mean survival time, and fitted curves are extrapolated to estimate the total area, as described under the area under curve approach. Partitioned survival models build health-state occupancy from such curves, and quality-adjusted life years weight time by health-state utility, as set out under the QALY calculation method. In clinical pharmacology, the area under a plasma concentration and time curve measures the extent of drug exposure, covered under pharmacokinetics.

These areas carry units, such as years or concentration multiplied by time. The discrimination AUC is a probability between 0 and 1 with no units, and it is the quantity discussed in the remaining sections.

The area as a probability of correct ranking

The discrimination AUC has a direct reading that does not need the curve at all. Hanley and McNeil showed that the area under an ROC curve equals the probability that a randomly chosen person with the condition is rated or ranked with greater suspicion than a randomly chosen person without it, the same quantity estimated by the Wilcoxon rank statistic. For a score SS from a test or model, the definition is as follows.

AUC=P(S1>S0)+12P(S1=S0)\text{AUC} = P(S_1 > S_0) + \tfrac{1}{2} P(S_1 = S_0)

where S1S_1 is the score of a randomly chosen person with the outcome, S0S_0 is the score of a randomly chosen person without it, and P(⋅)P(\cdot) denotes probability. The second term gives half credit to tied scores, which corresponds to the diagonal segment drawn through tied points on the ROC curve.

A score unrelated to the outcome achieves 0.5, the area under the diagonal line of random guessing, and a score that places every person with the outcome above every person without it achieves 1. A value below 0.5 means the score ranks in the wrong direction; reversing it gives one minus the original AUC. Because only the order of the scores matters, any transformation that keeps the order, such as adding a constant to every predicted risk, leaves the AUC unchanged. A related Gini index, twice the area between the ROC curve and the diagonal, satisfies Gini+1=2×AUC\text{Gini} + 1 = 2 \times \text{AUC}, as Fawcett notes; this index is a different quantity from the Gini coefficient of income or health inequality.

Calculating AUC from patient pairs or from the ROC curve

With observed data, every person with the outcome is compared with every person without it. The estimate is the share of those pairs in which the person with the outcome has the higher score. Written as a formula, the estimate is as follows.

AUC^=1n1n0∑i=1n1∑j=1n0ψ(si,sj)\widehat{\text{AUC}} = \frac{1}{n_1 n_0} \sum_{i=1}^{n_1} \sum_{j=1}^{n_0} \psi(s_i, s_j)

where n1n_1 and n0n_0 are the numbers of people with and without the outcome, sis_i and sjs_j are their scores, and ψ\psi equals 1 when si>sjs_i > s_j, one half when si=sjs_i = s_j and 0 otherwise.

The same number comes from plotting the empirical ROC curve, with sensitivity against the false positive rate (one minus specificity) at every threshold, and adding the trapezoids beneath it. Fawcett explains that trapezoids rather than rectangles are used so that equally scored cases are averaged.

An estimated AUC should carry a confidence interval. Hanley and McNeil gave closed-form approximations for its standard error and for the sample size needed, and DeLong and colleagues proposed a nonparametric method for comparing correlated AUCs when two tests are applied to the same patients. When only part of the curve is relevant, such as a screening test that must keep false positives low, the partial AUC restricts the area to a range of specificity or sensitivity; the pROC authors describe the McClish standardisation, which rescales it to 1 for a perfect curve and 0.5 for no discrimination.

The C-statistic for censored survival outcomes

Many models used in health economics predict time to an event rather than a yes or no outcome. Steyerberg and colleagues describe the concordance (C) statistic as the most commonly used measure of discriminative ability for regression models, identical to the ROC area for a binary outcome and extended to survival outcomes, and Harrell, Lee and Mark describe an index of this kind for survival data.

With censoring, not every pair can be ordered. If one patient is censored before the other has an event, the order of their event times is unknown. A popular version ignores such pairs, and Steyerberg and colleagues note that the result then depends on the censoring pattern. A variant by Gonen and Heller avoids this but holds only within a Cox proportional hazards model, and time-dependent versions measure discrimination up to a stated time. These versions can give different values for the same model, so a survival C-statistic is comparable only when the method and follow-up period match.

Worked example with ten patients and a risk score

The figures below are illustrative. A risk model gives a predicted probability of a cardiovascular event to ten patients, four of whom have the event during follow-up.

GroupPredicted risks
Event (4 patients)0.80, 0.60, 0.40, 0.30
No event (6 patients)0.50, 0.30, 0.20, 0.15, 0.10, 0.05

1. Count the pairs. There are 4 × 6 = 24 pairs of one event patient and one non-event patient. The patients at 0.80 and 0.60 score above all six non-event patients, giving 6 each. The patient at 0.40 scores below the non-event patient at 0.50 and above the other five, giving 5. The patient at 0.30 scores below 0.50, ties with the non-event patient at 0.30 (half credit) and scores above the other four, giving 4.5.

AUC^=6+6+5+4.54×6=21.524=0.896\widehat{\text{AUC}} = \frac{6 + 6 + 5 + 4.5}{4 \times 6} = \frac{21.5}{24} = 0.896

where AUC^\widehat{\text{AUC}} is the estimated probability that an event patient has a higher predicted risk than a non-event patient.

2. Confirm with the ROC curve. As the threshold falls, the curve rises from (0, 0) to (0, 0.5), moves across to (1/6, 0.5), rises to (1/6, 0.75), runs diagonally through the tie to (2/6, 1) and then across to (1, 1). The area is a rectangle, a trapezoid and a second rectangle, as follows.

AUC=16×0.5+16×0.75+12+46×1=0.0833+0.1458+0.6667=0.896\text{AUC} = \tfrac{1}{6} \times 0.5 + \tfrac{1}{6} \times \frac{0.75 + 1}{2} + \tfrac{4}{6} \times 1 = 0.0833 + 0.1458 + 0.6667 = 0.896

where each term is the area of one segment under the empirical ROC curve. The two methods agree, and the diagonal segment supplies the half credit for the tie.

3. Shift every predicted risk upwards. In a second version of the model every predicted risk is 0.10 higher, so the order is unchanged and its AUC is still 0.896. Neither version is calibrated on average. Four of the ten patients (0.40) have the event, against a mean predicted risk of 0.34 in the original and 0.44 in the shifted version. At an illustrative treatment threshold of 0.35, the original model flags four patients (three with the event and the non-event patient at 0.50), while the shifted model flags six (all four with the event and the non-event patients now at 0.60 and 0.40).

4. Follow the decision into costs. With an illustrative treatment cost of £400 per patient flagged, the original model leads to £1,600 of treatment per ten patients (4 × 400 = 1600) and the shifted model to £2,400 (6 × 400 = 2400). The AUC is identical, yet a cost-effectiveness model that uses the threshold to select patients would give different costs, events prevented and incremental results. Whether the extra treatment is worthwhile depends on its costs and health effects, which the AUC does not contain.

Where discrimination enters economic evaluation and HTA

In health technology assessment the AUC is rarely the input a model needs. The NICE manual (PMG36) describes diagnostic test accuracy statistics as intermediate measures that, when incorporated into models, can predict future health outcomes, and asks for a linked-evidence model, specifying the links between diagnosis, treatment and final outcomes, when direct evidence on final outcomes is missing. Such a model follows people through the test result they receive, so it needs the sensitivity and specificity at the threshold used in practice. PMG36 also notes that sensitivity and specificity are usually correlated and asks for correlation between parameters to be reflected in the probabilistic analysis.

Risk prediction models raise the same issue. Collins and Altman validated QRISK2-2011 and the NICE version of the Framingham equation in a cohort of over two million patients from UK general practice, comparing the two in people aged 35 to 74. Among men in that age group the AUCs were 0.771 and 0.750, yet at the traditional 20% threshold for designating high risk, QRISK2-2011 identified 110 men per 1,000 and the Framingham equation 206, because the Framingham equation over-predicted 10-year risk in men by about 5%. A difference in AUC of about 0.02 says little about a near doubling of the treated population, which drives the cost side of any prevention model.

Vickers, Van Calster and Steyerberg note that sensitivity, specificity and the area under the curve do not show whether a model, marker or test should be used. Decision curve analysis instead calculates the clinical net benefit of acting on a model, true positives less weighted false positives, across a range of threshold probabilities. That clinical measure is distinct from the net monetary benefit of cost-effectiveness analysis, although both judge a decision at a stated trade-off.

Misreadings of the AUC and the C-statistic

The statistic is easy to compute and widely reported, which makes some errors common. The points below are the ones most likely to mislead an economic evaluation.

A good AUC says nothing about calibration. Steyerberg and colleagues note that, as a rank order statistic, the C-statistic is insensitive to systematic errors in calibration such as differences in average outcome, and Van Calster and colleagues add that a poorly calibrated model can be less clinically useful than a well calibrated competitor with a lower AUC. Predicted risks that enter a model as probabilities, or that set treatment thresholds, need calibration checked separately.

Small changes in AUC can hide large changes in risk. Cook showed that a biomarker with an odds ratio of 3 may have little effect on the C-statistic yet could shift an individual's estimated 10-year cardiovascular risk from 8% to 24%. A model comparison based on the AUC alone can therefore miss changes that alter who is treated.

Association, risk and discrimination are different properties. A strong odds ratio does not guarantee good discrimination. Pepe and colleagues showed that a marker with an odds ratio of 3 that flags 10% of people without the condition will correctly identify only 25% of those with it.

The AUC does not change with prevalence, but value does. Fawcett notes that ROC curves are insensitive to changes in the proportion of positive and negative cases. If a test produces the same score distributions among people with and without the condition in a screening population and a specialist clinic, its AUC is the same in both, while its positive predictive value and cost per case detected differ widely. In practice case mix also differs between settings, which can change the AUC as well.

Apparent performance is optimistic. An AUC measured on the data used to develop a model tends to overstate how it will perform elsewhere, partly because of overfitting and partly because new settings differ in case mix. In the testicular cancer case study of Steyerberg and colleagues, the C-statistic of the model without the tumour marker fell from 0.818 at development to 0.785 at external validation. Economic evaluations that borrow a published risk equation should look for external validation, or internal validation by bootstrapping or cross-validation.

The same name, a different quantity. An "AUC" reported in a pharmacokinetic study as drug exposure, or in a survival analysis as the area under a survival curve, is an exposure or a mean time, and cannot be read on the 0.5 to 1 scale.

Sources

Institutional Perspectives (2)

  • EMA

    ROC Curves Mainly Used to Select Cut-off Points

    The EMA guideline on diagnostic agents treats ROC curves mainly as a way to select cut-off points for prospective use in confirmatory trials. In comparative trials with an active comparator, the area under the ROC curve can illustrate diagnostic performance by turning sensitivity and specificity into a single variable, although observed differences may be hard to interpret clinically. The guideline also asks for sensitivity and specificity with confidence intervals, cut-off values fixed in the protocol before the data are evaluated, and discussion of the effect of disease prevalence on predictive values.

    European Medicines Agency, Committee for Medicinal Products for Human Use, Guideline on clinical evaluation of diagnostic agents (CPMP/EWP/1119/98/Rev. 1), adopted 23 July 2009, in effect from 1 February 2010, sections 7.2, 7.2.1 and 7.2.2View source →
  • FDA

    ROC Summary Metric Recommended as Primary CADe Endpoint

    For reader studies of computer-assisted detection devices in radiology, FDA recommends an ROC summary performance metric, such as the area or partial area under the ROC curve or its FROC and LROC variants, as part of the primary analysis, with sensitivity and specificity at a clinical action point as secondary endpoints. Sensitivity and specificity should come from explicit clinical decisions by readers, not from the rating data used to build the curves. Where endpoints use the area or partial area, plots of the actual curves should accompany parametric and non-parametric summary results.

    U.S. Food and Drug Administration, Clinical Performance Assessment: Considerations for Computer-Assisted Detection Devices Applied to Radiology Images and Radiology Device Data in Premarket Notification (510(k)) Submissions, Guidance for Industry and FDA Staff, 28 September 2022, section IV.AView source →

Functions & Formulae (3)

AUC = P(S_1 > S_0) + 0.5 * P(S_1 = S_0)

Maps the scores that a diagnostic test or risk prediction model gives to people with and without an outcome to a single probability: the chance that a randomly chosen person with the outcome scores higher than a randomly chosen person without it, with tied scores counted as half. S_1 and S_0 are the scores of the two people and P denotes probability. The result has no units, equals 0.5 for a score unrelated to the outcome and 1 for perfect separation, and is the area under the receiver operating characteristic (ROC) curve and the C-statistic for a binary outcome. It measures discrimination only; calibration and the costs and health effects of acting on the score are separate questions.

  • AUC estimated by counting case and non-case pairs

    AUC = (n_conc + 0.5 * n_tie) / (n_1 * n_0)

    Compares every person with the outcome with every person without it. A pair in which the person with the outcome has the higher score counts 1, a tied pair counts one half, and the total is divided by the number of such pairs. This is the article's double sum of psi(s_i, s_j) over all n_1 times n_0 pairs, written with pair counts, and it is the quantity estimated by the Wilcoxon rank statistic.

  • AUC as the trapezoidal area under the empirical ROC curve

    AUC_trap = sum_(k=1)^K [(FPR_end_k - FPR_start_k) * (TPR_start_k + TPR_end_k) / 2]

    Adds the areas of the trapezoids beneath the empirical ROC curve, which plots sensitivity (the true positive rate) against the false positive rate (one minus specificity) at every threshold. Each segment between consecutive points contributes its width on the false positive axis multiplied by the mean of its two heights. Vertical segments add nothing, and the diagonal segment drawn through tied scores supplies the half credit of the pair count, so the result equals HE-FM-AUC-001.

  • Gini index from the discrimination AUC

    Gini = 2 * AUC - 1

    Converts the AUC to the Gini index, defined as twice the area between the ROC curve and the diagonal, using the relation that the Gini index plus 1 equals twice the AUC. The index is 0 for no discrimination and 1 for perfect discrimination. It is a different quantity from the Gini coefficient of income or health inequality.

View all formulae

Library

Publications

13
  • Journal article

    Calibration: the Achilles heel of predictive analytics — Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW, Vol. 17, Article 230 ed., 2019 (BMC Medicine)

    Paper arguing that poor calibration can make a prediction algorithm less clinically useful than a well calibrated competitor with a lower AUC.

  • Journal article

    Limitations of the odds ratio in gauging the performance of a diagnostic, prognostic, or screening marker — Pepe MS, Janes H, Longton G, Leisenring W, Newcomb P, Vol. 159, No. 9, pp. 882-890 ed., 2004 (American Journal of Epidemiology)

    Shows that the odds ratio is a poor gauge of marker performance, since a marker with an odds ratio of 3 and 10% false positives correctly identifies only 25% of cases.

  • Journal article

    Assessing the performance of prediction models: a framework for traditional and novel measures — Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, Pencina MJ, Kattan MW, Vol. 21, No. 1, pp. 128-138 ed., 2010 (Epidemiology)

    Framework for assessing prediction models that covers traditional measures such as the concordance statistic and calibration as well as decision-analytic measures such as net benefit.

  • Journal article

    Use and misuse of the receiver operating characteristic curve in risk prediction — Cook NR, Vol. 115, No. 7, pp. 928-935 ed., 2007 (Circulation)

    Paper on the use of the ROC curve in risk prediction, showing that a biomarker with an odds ratio of 3 may barely change the c statistic yet shift an individual's estimated 10-year risk from 8% to 24%.

  • Journal article

    Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach — DeLong ER, DeLong DM, Clarke-Pearson DL, Vol. 44, No. 3, pp. 837-845 ed., 1988 (Biometrics)

    Paper giving a nonparametric method, based on generalised U-statistics, for comparing the areas under correlated ROC curves from tests performed on the same individuals.

  • Journal article

    An introduction to ROC analysis — Fawcett T, Vol. 27, No. 8, pp. 861-874 ed., 2006 (Pattern Recognition Letters)

    Introduction to ROC analysis covering the area under the ROC curve, its relation to the Gini index and the insensitivity of ROC curves to changes in class distribution.

  • Guidance

    Guideline on the investigation of bioequivalence (CPMP/EWP/QWP/1401/98 Rev. 1) — European Medicines Agency, Committee for Medicinal Products for Human Use, Rev. 1 ed., 2010 (European Medicines Agency)

    European Medicines Agency guideline on bioequivalence studies, in which the area under the plasma concentration-time curve is the measure of the extent of drug exposure.

  • Journal article

    Predicting the 10 year risk of cardiovascular disease in the United Kingdom: independent and external validation of an updated version of QRISK2 — Collins GS, Altman DG, Vol. 344, e4181 ed., 2012 (BMJ)

    External validation of QRISK2-2011 and the NICE Framingham equation in more than two million UK general practice patients, comparing how well each predicts 10-year cardiovascular risk.

  • Journal article

    The meaning and use of the area under a receiver operating characteristic (ROC) curve — Hanley JA, McNeil BJ, Vol. 143, No. 1, pp. 29-36 ed., 1982 (Radiology)

    Paper showing that the area under an ROC curve is the probability that a randomly chosen diseased subject is rated with greater suspicion than a randomly chosen non-diseased subject.

  • Journal article

    Net benefit approaches to the evaluation of prediction models, molecular markers, and diagnostic tests — Vickers AJ, Van Calster B, Steyerberg EW, Vol. 352, i6 ed., 2016 (BMJ)

    Explains net benefit approaches to evaluating prediction models, markers and tests, noting that sensitivity, specificity and AUC do not show whether they should be used in clinical practice.

  • Journal article

    pROC: an open-source package for R and S+ to analyze and compare ROC curves — Robin X, Turck N, Hainard A, Tiberti N, Lisacek F, Sanchez JC, Müller M, Vol. 12, Article 77 ed., 2011 (BMC Bioinformatics)

    Paper describing pROC, an open-source package for R and S+ that analyses and compares ROC curves and computes the partial area under the curve.

  • Journal article

    Multivariable prognostic models: issues in developing models, evaluating assumptions and adequacy, and measuring and reducing errors — Harrell FE Jr, Lee KL, Mark DB, Vol. 15, No. 4, pp. 361-387 ed., 1996 (Statistics in Medicine)

    Tutorial on developing multivariable prognostic models that describes an index of predictive discrimination for survival data with censoring.

  • Book

    Bayesian Methods in Health Economics — Gianluca Baio, 1st Edition ed., 2012 (Chapman & Hall / CRC Press)

    An overview of Bayesian statistical methods for the analysis of health economic data, covering economic evaluation concepts, statistical cost-effectiveness analysis, Bayesian computation and MCMC, and applied health economic evaluation.

Frequently Asked Questions (6)

  • What is the area under the curve?

    Area under the curve (AUC), or C-statistic, is the probability a test or risk model scores a random case above a random non-case (0.5 chance, 1 perfect).

    Source: Hanley & McNeil 1982

  • What does the area under the curve say about a model's discrimination?

    The area under the curve summarises how well a predictive model separates those who will have an outcome from those who will not, measured as the area beneath its ROC curve. It runs from 0.5, meaning the model does no better than chance, to 1, meaning it discriminates perfectly. Concretely it is the probability that the model assigns a higher risk to a randomly chosen case than to a randomly chosen non-case. How well a model tells cases from non-cases is what it captures. Steyerberg (2009) discusses such measures.

    Source: Steyerberg 2009

  • How is the area under the curve interpreted?

    The area under the curve is interpreted as the probability that the model assigns a higher predicted risk, or score, to a randomly chosen person with the condition than to a randomly chosen person without it. A value of 0.5 indicates no discrimination, better than chance, and 1 perfect discrimination, with intermediate values indicating moderate ability. So the area under the curve is interpreted as a measure of discrimination, with higher values meaning the model better separates cases from non-cases, and it provides an overall summary of discriminative performance across thresholds, though it does not assess calibration or the clinical usefulness at a specific threshold.

    Source: Hanley & McNeil 1982

  • What does the area under the curve measure?

    The area under the curve measures discrimination, the ability of a model or test to distinguish those who have the condition or outcome from those who do not, across all possible decision thresholds. It summarises the ROC curve, which shows the trade-off between sensitivity and the false positive rate as the threshold varies. So the area under the curve measures how well a model ranks individuals by their likelihood of the outcome, capturing discrimination independently of any single cut-off, which makes it a widely used summary of a predictive model's or diagnostic test's ability to separate cases from non-cases, though it addresses only discrimination and not other aspects of performance.

    Source: Hanley & McNeil 1982

  • What are the limitations of the area under the curve?

    The limitations of the area under the curve include that it measures only discrimination, not calibration, so a model can have a high area under the curve yet produce poorly calibrated probabilities; that it summarises performance across all thresholds, which may not reflect usefulness at the threshold relevant in practice; and that it can be insensitive to improvements from adding predictors. So the area under the curve is used alongside other measures, such as calibration assessment and clinical usefulness at relevant thresholds, since a high value indicates good separation of cases from non-cases but does not guarantee that the predicted probabilities are accurate or that the model is useful for a specific decision.

    Source: Hanley & McNeil 1982

  • How does the area under the curve relate to the ROC curve?

    The area under the curve is derived directly from the receiver operating characteristic, or ROC, curve, being the area beneath it. The ROC curve plots the true positive rate against the false positive rate as the decision threshold varies, showing the trade-off between sensitivity and specificity, and the area summarises this whole curve into a single number. So the area under the curve relates to the ROC curve as its summary measure, condensing the information across all thresholds into one value of discrimination, which allows models or tests to be compared without choosing a particular threshold, while the ROC curve itself displays the full range of trade-offs.

    Source: Hanley & McNeil 1982

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 20 Oct 2026

Content version: 1.0.3

Canonical Identity

Term code
HE-ES-SA-006

Stable URI · Machine-readable · Resolvable · CC BY 4.0