Author-reviewedEvidence: highv1.0.1

ROC Curve

The ROC (receiver operating characteristic) curve plots a test's sensitivity against its false positive rate at each cut-off, guiding thresholds in HTA.

Last reviewed byDr Darrin Baines

Concept Architecture

ROC Curve for Choosing Test Thresholds in Economic Evaluation

A receiver operating characteristic (ROC) curve shows every combination of true positive rate and false positive rate that a diagnostic test, screening tool or risk score can deliver as its positivity threshold is moved. Each point on it is in effect a different version of the test, with its own mix of cases found and false alarms, and so its own costs and health effects in an economic evaluation. The curve describes what the test can do, while prevalence and the values placed on correct and incorrect results decide which point is worth using. The area under curve condenses the curve into one measure of ranking and a summary ROC curve pools studies, but a decision model needs a single point.

Sensitivity plotted against the false positive rate

The Cochrane Handbook for Systematic Reviews of Diagnostic Test Accuracy (chapter 10) defines the ROC curve as the graph of the values of sensitivity and specificity obtained by varying the positivity threshold across all possible values, plotted as sensitivity against one minus specificity. For a test in which higher values point to disease, each threshold gives one point, as follows.

TPR(c)=Pr⁡(X≥c∣D+),FPR(c)=Pr⁡(X≥c∣D−)TPR(c) = \Pr(X \ge c \mid D^{+}), \quad FPR(c) = \Pr(X \ge c \mid D^{-})

where XX is the test result, cc is the positivity threshold, D+D^{+} and D−D^{-} denote people with and without the target condition, TPR(c)TPR(c) is the true positive rate or sensitivity, and FPR(c)FPR(c) is the false positive rate, equal to one minus specificity.

The Handbook notes that the shape of the curve between the all-negative and all-positive corners depends on how much the distributions of results in the two groups overlap. A test that separates them well approaches the upper left corner, and a test whose distributions coincide lies on the rising diagonal. Metz described the curve as a complete empirical description of the decision threshold effect, covering every combination of correct and incorrect decisions a test can make.

Building an empirical curve from study data

With data, the curve is built by sorting people by score and lowering the threshold one value at a time, adding to the true positive count when the next person has the condition and to the false positive count when they do not. Fawcett notes that any curve from a finite sample is a step function, and that tied scores should be processed together, which draws a diagonal segment.

Only the order of the scores matters. Fawcett points out that ROC graphs measure the ability to produce good relative scores, so predicted risks need not be calibrated for the curve to look good, which leaves calibration to be checked separately, and that scores from different model types should not be compared at a common threshold.

Slopes of the curve as likelihood ratios

The slope of the curve carries the information used to revise a probability. Choi showed that the tangent at a point equals the likelihood ratio for the test value at that point, that the slope of the line joining the origin and a point equals the positive likelihood ratio at that cut-off, and that the slope between two points equals the likelihood ratio for a result between the two thresholds. On an empirical curve, the band between thresholds ckc_{k} and ck+1c_{k+1} has the slope below.

LRk=TPR(ck)−TPR(ck+1)FPR(ck)−FPR(ck+1)LR_{k} = \frac{TPR(c_{k}) - TPR(c_{k+1})}{FPR(c_{k}) - FPR(c_{k+1})}

where LRkLR_{k} is the likelihood ratio for a result in band kk, ckc_{k} is the lower threshold of the band and ck+1c_{k+1} the next higher threshold. Multiplying the pre-test odds by LRkLR_{k} gives the post-test odds for a result in that band.

If the categories are ordered by strength of evidence for disease, these slopes fall as the threshold is lowered and the curve bows upwards. Fawcett shows that only points on the convex hull of a set of ROC points can be optimal under any combination of costs and class proportions, so a point lying beneath the hull is never the best choice.

Choosing an operating point with costs and prevalence

The 2011 NICE Diagnostics Assessment Programme manual, since replaced by the NICE HealthTech programme manual (PMG48), stated that each point on the ROC curve could be considered a different version of the test and evaluated separately, and that the optimal cut-off point is usually one of the decision problems explored in an assessment. PMG48 (section 2.1.15) counts using a different threshold for established tests among the ways current care can be delivered differently. Metz linked ROC analysis to cost and benefit analysis, using average net benefit to identify the optimal compromise among kinds of diagnostic error.

A simple version uses net monetary benefit per person tested, compared with testing and treating nobody, as follows.

NMB(c)=p×G×TPR(c)−(1−p)×L×FPR(c)−kNMB(c) = p \times G \times TPR(c) - (1 - p) \times L \times FPR(c) - k

where pp is the prevalence in the tested population, GG is the net monetary gain from finding and treating a true positive (health gain valued at the threshold, less treatment and confirmation costs), LL is the net monetary loss from a false positive, and kk is the cost of the test per person, the same at every cut-off. Points with equal net benefit lie on straight lines with the slope below.

m=(1−p)×Lp×Gm = \frac{(1 - p) \times L}{p \times G}

where mm is the slope of a line of equal net monetary benefit in ROC space. The best cut-off is where the highest such line touches the curve. On an empirical curve, a band of results is worth calling positive when its likelihood ratio exceeds mm, which is the same as its post-test probability exceeding L/(G+L)L / (G + L), the threshold probability of decision curve analysis. Fawcett derives the same slope for iso-performance lines from error costs and class proportions, as do Perkins and Schisterman for a cost-weighted Youden index.

The Youden index, JJ, is the maximum over cut-offs of sensitivity plus specificity minus one, the greatest vertical distance between the curve and the diagonal. Perkins and Schisterman show that it minimises the total of the two misclassification rates when they are weighted equally, and that the point closest to the upper left corner can pick a different cut-off. Equal weighting corresponds to m=1m = 1, which holds only when (1−p)L=pG(1 - p) L = p G. In screening, with low prevalence and false positives that cost far less than a missed case, that balance is unlikely.

Worked example with a five-band score in two settings

All numbers in this example are illustrative. A triage score places each person in one of five bands, and a validation sample contains 100 people with the target condition and 900 without it. A positive result leads to a confirmatory test costing GBP 500, assumed perfect. A confirmed case gains 0.5 QALYs from treatment costing GBP 3,000, and health is valued at GBP 25,000 per QALY, the lower end of the range in NICE's PMG36. A false positive costs the confirmatory test only.

BandWith conditionWithout conditionCut-offTPRFPRBand LR
54095 only0.400.0140.0
425364 or above0.650.056.25
320903 or above0.850.152.0
2102252 or above0.950.400.4
15540All1.001.000.083

1. Plot the points. Each TPR is a cumulative count divided by 100, for example (40 + 25) / 100 = 0.65, and each FPR a cumulative count divided by 900, for example (9 + 36) / 900 = 0.05.

2. Read the slopes. Band 4 adds 0.25 to the TPR and 0.04 to the FPR, a slope of 0.25 / 0.04 = 6.25, and band 3 gives 0.20 / 0.10 = 2.0. The slopes fall steadily, so every point lies on the convex hull.

3. Apply the Youden index. Sensitivity plus specificity minus one is 0.39, 0.60, 0.70 and 0.55 for the first four cut-offs and 0 for calling everyone positive, so JJ = 0.70 picks 3 or above in any setting.

4. Value the results. GG = 0.5 × 25,000 − 3,000 − 500 = GBP 9,000 and LL = GBP 500. In a specialist clinic with prevalence 0.10, mm = (0.90 × 500) / (0.10 × 9,000) = 450 / 900 = 0.5. Bands 5, 4 and 3 have likelihood ratios above 0.5 and band 2 does not, so the best cut-off is 3 or above.

5. Move to primary care. At prevalence 0.02, mm = (0.98 × 500) / (0.02 × 9,000) = 490 / 180 = 2.72. Band 3, with a likelihood ratio of 2.0, now falls below the line and the best cut-off is 4 or above. The table gives net monetary benefit per 1,000 people tested, before the test cost.

Cut-offClinic TP / FPClinic NMB (GBP)Primary care TP / FPPrimary care NMB (GBP)
5 only40 / 9355,5008 / 9.867,100
4 or above65 / 45562,50013 / 4992,500
3 or above85 / 135697,50017 / 14779,500
2 or above95 / 360675,00019 / 392−25,000

For example, the clinic figure at 3 or above sets 85 × 9,000 = 765,000 against 135 × 500 = 67,500, leaving 697,500, and the primary care figure at 4 or above sets 13 × 9,000 = 117,000 against 49 × 500 = 24,500, leaving 92,500. Using the Youden cut-off in primary care gives up 92,500 − 79,500 = GBP 13,000 per 1,000 people tested.

6. Check with the threshold probability. Here L/(G+L)L / (G + L) = 500 / 9,500 = 0.053. In primary care a band 3 result raises the odds from 0.02 / 0.98 = 0.0204 to 0.0204 × 2.0 = 0.0408, a probability of 0.039, below 0.053, so confirming it is not worthwhile.

7. Interpret. The curve was held fixed between the two settings by assumption, yet the best point moved, because prevalence enters the slope of the decision line and not the curve.

Comparing tests whose curves cross

If one curve lies above another everywhere, the first test offers more true positives at every false positive rate. Curves often cross, and Fawcett notes that a test with the larger area under the curve can perform worse in a particular region of ROC space. Vickers and Elkin note that when a false negative is much more harmful than a false positive, a model with much greater specificity but slightly lower sensitivity could have a higher area yet be a poorer choice for clinical use.

The 2011 NICE manual judged the area under the curve of little use for computing test accuracy in practice or cost effectiveness. A decision model needs the sensitivity and specificity at each test's operating point, so the curve, more than its area, is the useful form of diagnostic accuracy evidence.

Uncertainty and optimism in the chosen cut-off

A cut-off chosen in the same data used to estimate its accuracy flatters the test. Leeflang and colleagues simulated cut-offs chosen by the Youden index and found that the bias was inversely related to sample size, with true sensitivity and specificity of 84% estimated at about 90% in studies of 40 people and 86% in studies of 200.

Sensitivity and specificity at points along one curve are linked, since a cut-off that raises one lowers the other. The NICE manual (PMG36, sections 4.7.18 and 4.7.19) states that because they are usually correlated and may vary with how a test is used or interpreted, point estimates with distributions are not usually appropriate, and asks for correlation between parameters to be reflected in the probabilistic sensitivity analysis.

Misreadings of the ROC curve

Several errors recur when a curve supports a cost-effectiveness case. Most come from treating the curve as a property of the test alone, detached from the setting and the decision.

  1. Treating the curve as fixed across settings. Fawcett notes that ROC curves do not change with the proportion of positive and negative cases. The 2011 NICE manual, however, warns that laboratory, operator and machine differences can shift the effective cut-off or move a test below its ROC curve.
  2. Reading accuracy as usefulness. Zweig and Campbell describe the ROC plot as a pure index of accuracy, to be distinguished from the practical value of the information.

Sources

Library

Publications

1
  • 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 an ROC curve?

    The ROC (receiver operating characteristic) curve plots a test's sensitivity against its false positive rate at each cut-off, guiding thresholds in HTA.

    Source: Metz 1978

  • What trade-off does an ROC curve display?

    Each point on an ROC curve pairs a true positive rate, or sensitivity, with a false positive rate, equal to one minus specificity, for one positivity threshold. Moving the threshold so that more people with the target condition test positive also flags more people without it, so gains in sensitivity are paid for with lost specificity. How steep that price is depends on how far the test results of the two groups overlap. A test that separates them well bends towards the upper left corner, where both measures are high, while a test whose distributions coincide lies on the rising diagonal and offers no useful trade-off.

    Source: Macaskill et al. 2010

  • How is an ROC curve constructed?

    With study data, people are sorted by test score and the positivity threshold is lowered one value at a time. Each step adds to the true positive count when the next person has the condition and to the false positive count when they do not, and the cumulative counts divided by the numbers with and without the condition give the true and false positive rates. Fawcett notes that any ROC curve from a finite sample is a step function. Tied scores are processed together, which draws a diagonal segment rather than a step. Only the order of the scores matters, so predicted risks need not be calibrated for the curve to look good.

    Source: Fawcett 2006

  • How is an ROC curve interpreted?

    Beyond its closeness to the upper left corner, an ROC curve is read through its slopes, which carry the information used to revise a probability. Choi showed that the tangent at a point equals the likelihood ratio for the single test value at that point. The slope of the line from the origin to a point equals the positive likelihood ratio when that point is the cut-off for positivity, and the slope between two points equals the likelihood ratio for a result falling between the two thresholds. Multiplying the pre-test odds by such a likelihood ratio gives the post-test odds for that result.

    Source: Choi 1998

  • What does the ROC curve show about thresholds?

    Every point on an ROC curve is a different positivity threshold, so the curve sets out the cut-offs a test offers without saying which one to use. The choice depends on prevalence and on the relative costs of false negatives and false positives. Perkins and Schisterman show that the Youden index, the maximum of sensitivity plus specificity minus one, picks the cut-off that minimises the total of the two misclassification rates when they are weighted equally. Weighting them by prevalence and relative loss gives a generalised index, and in screening, where prevalence is low and a missed case costs far more than a false alarm, the equal-weight cut-off is unlikely to be the best.

    Source: Perkins & Schisterman 2006

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

    The area under the curve condenses a whole ROC curve into one number summarising how well a test ranks people with the condition above people without it. Two curves can cross, so a test with the larger area can still perform worse in the region that matters for a decision. Vickers and Elkin note that when a false negative is much more harmful than a false positive, a model with much greater specificity but slightly lower sensitivity could have the higher area yet be the poorer choice for clinical use. An economic evaluation needs the sensitivity and specificity at a chosen operating point, which the area alone cannot supply.

    Source: Vickers & Elkin 2006

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 29 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-186
Wikidata
Q327120

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