Concept Architecture
Concept
Theoretically, Receiver Operating Characteristic (ROC) Curve is a graphical method for evaluating the diagnostic or predictive performance of a binary classification model across all possible decision thresholds. Originally developed in signal detection theory, the ROC curve illustrates the trade-off between sensitivity and specificity by plotting the true positive rate against the false positive rate. It provides a threshold-independent assessment of a model's ability to discriminate between individuals with and without the outcome of interest.
Mathematically, the ROC curve is constructed by calculating sensitivity and false positive rate for every possible classification threshold. The overall discriminative performance of the model is commonly summarised by the Area Under the ROC Curve (AUROC or AUC), which represents the probability that a randomly selected positive case receives a higher predicted score than a randomly selected negative case. Values range from 0.5, indicating no discrimination beyond chance, to 1.0, indicating perfect discrimination.
In practice, ROC curves are generated from predicted probabilities or diagnostic test scores and are widely used to evaluate clinical prediction models, diagnostic tests, risk scores, and machine learning classifiers. In health economics they are used when assessing prognostic models, disease screening strategies, treatment selection algorithms, and health technology assessments in which diagnostic accuracy influences costs, health outcomes, or resource allocation.
Purpose
Used to evaluate and compare the discriminatory performance of diagnostic tests and prediction models across all classification thresholds, supporting model selection, threshold determination, and decision-making in health economics.
Mathematical Formulae
Primary Formula
ROC = {(FPR(t), TPR(t)) : t ? Thresholds}
where:
TPR(t) = TP � (TP + FN)
FPR(t) = FP � (FP + TN)
Supporting Formulae
Sensitivity:
Sensitivity = TP � (TP + FN)
Specificity:
Specificity = TN � (TN + FP)
False Positive Rate:
FPR = 1 ? Specificity
Area Under the Curve:
AUC = ??? TPR(FPR) d(FPR)
Related Mathematical Methods
- Area Under the Curve (AUC)
- Sensitivity
- Specificity
- Confusion Matrix
- Diagnostic Accuracy
- Binary Classification
- Logistic Regression
- Classification Threshold Analysis
Example
A health economist evaluates a prediction model identifying patients at high risk of hospital readmission.
At one decision threshold:
- True Positives = 90
- False Positives = 30
- True Negatives = 170
- False Negatives = 10
Sensitivity:
90 � (90 + 10) = 0.90
False Positive Rate:
30 � (30 + 170) = 0.15
Repeating these calculations across all possible thresholds produces the ROC curve. The calculated AUROC is 0.91, indicating excellent discrimination between patients who are and are not subsequently readmitted.
Excel Implementation
| Function | Example Formula | Health Economics Application |
|---|---|---|
| IF | =IF(B2>=Threshold,1,0) | Classify observations at a specified decision threshold. |
| COUNTIFS | =COUNTIFS(PredictedRange,1,ObservedRange,1) | Calculate true positives, false positives, true negatives, and false negatives. |
| SORT | =SORT(ProbabilityRange,-1) | Order predicted probabilities to construct ROC coordinates. |
| SUMPRODUCT | =SUMPRODUCT((PredictedRange=1)*(ObservedRange=1)) | Calculate classification counts used in ROC analysis. |
| TRAPZ* | =((B3-B2)*(C3+C2))/2 | Approximate the area under the ROC curve using the trapezoidal rule. |
*Implemented by copying the trapezoidal calculation across adjacent ROC coordinates.
VBA (Optional)
Automate ROC curve construction, AUROC calculation using the trapezoidal rule, and comparison of multiple prediction models.
Sources
- Hanley JA, McNeil BJ. The Meaning and Use of the Area Under a Receiver Operating Characteristic (ROC) Curve. Radiology. 1982.
- Fawcett T. An Introduction to ROC Analysis. Pattern Recognition Letters. 2006.
- Pepe MS. The Statistical Evaluation of Medical Tests for Classification and Prediction.
- Hosmer DW, Lemeshow S, Sturdivant RX. Applied Logistic Regression.
- Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation.
- Drummond MF, et al. Methods for the Economic Evaluation of Health Care Programmes.
- NICE Health Technology Evaluation Manual.
- ISPOR Good Practice Reports.
Related Concepts (3)
Library
Publications
1
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.
BookView source →
Frequently Asked Questions (6)
What is an ROC curve?
A graph depicting the trade-off between a test's true positive rate and false positive rate across a full range of decision thresholds.
Source: Hanley & McNeil 1982
What trade-off does an ROC curve display?
An ROC curve displays the trade-off a diagnostic test faces between catching true cases and raising false alarms, plotting its true positive rate against its false positive rate as the decision threshold is varied. Each point on the curve corresponds to one possible cutoff, showing that lowering the threshold to catch more disease also flags more healthy people wrongly. A curve bowing toward the top-left corner marks a test that separates the two groups well. Mapping detection against false alarms across thresholds is its purpose. Steyerberg (2009) describes this.
Source: Steyerberg 2009
How is an ROC curve constructed?
An ROC curve is constructed by varying the decision threshold for classifying a test result as positive across its full range, and for each threshold plotting the true positive rate, or sensitivity, against the false positive rate, or one minus specificity. Connecting these points forms the curve. So an ROC curve is constructed by computing the sensitivity and false positive rate at every possible threshold and plotting them, which traces out the trade-off between detecting true positives and incurring false positives as the threshold changes, giving a curve that rises from the origin and whose shape reflects the test's discriminative ability.
Source: Hanley & McNeil 1982
How is an ROC curve interpreted?
An ROC curve is interpreted by its shape and position: a curve bowing toward the top-left corner indicates good discrimination, with high sensitivity at low false positive rates, while a curve near the diagonal indicates discrimination no better than chance. The area under the curve summarises this into a single value. So an ROC curve is interpreted as showing the trade-off between sensitivity and the false positive rate across thresholds, with curves closer to the top-left indicating better tests, and it allows the performance at different thresholds to be compared and an overall summary of discrimination to be obtained from the area beneath it.
Source: Hanley & McNeil 1982
What does the ROC curve show about thresholds?
The ROC curve shows how the choice of decision threshold affects the balance between sensitivity and the false positive rate: a lower threshold for calling a result positive increases sensitivity but also the false positive rate, moving up and right along the curve, while a higher threshold does the reverse. So the ROC curve displays the consequences of each possible threshold, revealing the trade-off between detecting true cases and generating false positives, which helps in selecting a threshold appropriate to the clinical context, since the best choice depends on the relative costs of missing cases and of false positives, information the curve makes visible.
Source: Hanley & McNeil 1982
How does the ROC curve relate to the area under the curve?
The ROC curve relates to the area under the curve in that the area beneath the ROC curve summarises the whole curve into a single measure of discrimination, giving the probability that the test ranks a randomly chosen case higher than a randomly chosen non-case. So the ROC curve and the area under the curve are directly connected, with the curve displaying the full range of sensitivity and false positive rate trade-offs and the area condensing this into one value of discriminative ability, which is why the area under the curve is a common summary derived from the ROC curve, allowing tests to be compared without choosing a particular threshold.
Source: Hanley & McNeil 1982
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 24 Dec 2025
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/roc-curve
- Term code
- HE-ES-SA-186
Stable URI · Machine-readable · Resolvable · CC BY 4.0