A ROC curve (receiver operating characteristic curve) shows how well a continuous score separates two groups, such as patients with and without a disease, students who pass and fail, or customers who churn and stay. The AUC (area under the curve) sums that performance up in one number. ROC analysis is used to evaluate diagnostic tests, screening questionnaires, risk scores and the predicted probabilities from a logistic regression.
- The ROC curve plots sensitivity against 1 − specificity for every possible cut-off.
- AUC = 0.5 means no better than chance; AUC = 1.0 means perfect separation.
- Roughly: .70–.80 acceptable, .80–.90 excellent, above .90 outstanding (Hosmer and Lemeshow).
- The cut-off with the highest Youden’s J (sensitivity + specificity − 1) balances both errors, but the best cut-off depends on the cost of each error.
In this guide
Sensitivity and specificity first
Any cut-off turns a continuous score into a yes/no decision (“positive if score ≥ 5”). Each decision can be right or wrong in two ways:
| Truly positive | Truly negative | |
|---|---|---|
| Test positive | True positive (TP) | False positive (FP) |
| Test negative | False negative (FN) | True negative (TN) |
- Sensitivity = TP / (TP + FN): the share of real positives the test catches.
- Specificity = TN / (TN + FP): the share of real negatives the test correctly clears.
Lowering the cut-off catches more positives (higher sensitivity) but also flags more negatives (lower specificity). The ROC curve shows this trade-off for every cut-off at once.
How to read a ROC curve
- The x-axis is 1 − specificity (the false positive rate) and the y-axis is sensitivity (the true positive rate).
- Each point on the curve is one cut-off.
- The diagonal line is a useless test that guesses at random (AUC = 0.5).
- The closer the curve bends towards the top-left corner, the better the test. A perfect test goes straight up to sensitivity 1 and then across.
What the AUC means
The AUC has a neat interpretation: it is the probability that a randomly chosen positive case has a higher score than a randomly chosen negative case. An AUC of .87 means that in 87% of positive–negative pairs, the positive case scores higher.
| AUC | Discrimination (Hosmer and Lemeshow, 2013) |
|---|---|
| 0.5 | None (chance) |
| 0.5 to 0.7 | Poor |
| 0.7 to 0.8 | Acceptable |
| 0.8 to 0.9 | Excellent |
| Above 0.9 | Outstanding |
An AUC below 0.5 usually means the score runs the other way (lower scores indicate the positive state). Flip the direction rather than reporting a “worse than chance” test.
Worked example
A researcher evaluates a blood biomarker for a disease in 15 patients with the disease and 15 healthy controls.
- Disease: 9.2, 8.4, 7.9, 7.6, 7.1, 6.8, 6.6, 6.3, 6.1, 5.7, 5.4, 5.0, 4.6, 3.9, 3.2
- Healthy: 6.4, 5.9, 5.2, 4.8, 4.5, 4.3, 4.1, 3.8, 3.6, 3.3, 3.0, 2.7, 2.5, 2.2, 1.8
The AUC is .87, 95% CI [.73, 1.00], p < .001: excellent discrimination. Here are some points on the curve:
| Cut-off (positive if ≥) | Sensitivity | Specificity | Youden’s J |
|---|---|---|---|
| 6.6 | .47 | 1.00 | .47 |
| 6.1 | .60 | .93 | .53 |
| 5.4 | .73 | .87 | .60 |
| 5.0 | .80 | .80 | .60 |
| 4.6 | .87 | .73 | .60 |
| 3.9 | .93 | .53 | .47 |
| 3.2 | 1.00 | .33 | .33 |
Choosing the cut-off
Youden’s J = sensitivity + specificity − 1. The cut-off with the highest J gives the best balance between the two error types. In this example three cut-offs tie at J = .60, which is common in small samples. This is where judgment comes in:
- For a screening test, where missing a case is costly, choose the lower cut-off (4.6): it catches 87% of patients at the price of more false alarms.
- For a confirmatory test, where false positives lead to harmful treatment, choose the higher cut-off (5.4): 87% specificity.
- If both errors matter equally, 5.0 gives 80% on both.
An “optimal” cut-off chosen from the same data is tuned to that sample and will usually perform a little worse on new patients. Validate it in a separate sample, or use cross-validation, before recommending it.
AUC is not the whole story
- Prevalence matters for predictive values. Sensitivity and specificity do not depend on how common the condition is, but the positive predictive value does. A test with 90% specificity still produces many false positives when only 1% of people have the disease.
- Compare tests on the same patients with a paired test (DeLong’s method) rather than eyeballing two AUCs.
- Calibration is separate from discrimination. A risk model can rank people well (high AUC) but still over- or under-predict their actual risk.
How to report it in APA 7
What is a good AUC value?
Above .80 is generally considered excellent and above .90 outstanding. For a screening tool, .70 to .80 can still be useful. Context matters: the same AUC can be good for predicting behaviour and poor for a medical diagnosis.
What is the difference between ROC and AUC?
The ROC curve is the graph of sensitivity against 1 − specificity across all cut-offs. The AUC is the area under that graph, a single number from 0.5 (chance) to 1 (perfect).
How do I find the optimal cut-off point on a ROC curve?
The usual method is to choose the cut-off with the largest Youden’s J (sensitivity + specificity − 1). If false negatives or false positives are more costly, choose a cut-off that favours sensitivity or specificity instead.
Can I use ROC analysis after logistic regression?
Yes. Save the predicted probabilities from the logistic regression and use them as the test score. The AUC then measures how well the model separates the two outcome groups (it equals the C statistic).
[/fst_faq]


