ROC Cutoff Selection
Author: Dr. Mathias Jesussek
Updated:
To select or evaluate a cutoff, select one binary variable under Actual outcomes and one numeric variable under Test values or scores. Confirm the Positive outcome and score direction, then choose a purpose under Cutoff analysis. These controls are available for a single curve. After loading the example, select Diseased as the outcome and Blood value as the test score, without a grouping variable.
Choose the cutoff purpose before interpreting the result
There is no universally best ROC cutoff. Choose the purpose according to the consequences of missed positive cases and false alarms, or evaluate a threshold defined in advance.
| Goal | Constraint | Selection rule in numiqo |
|---|---|---|
| Balanced exploratory cutoff | None | Maximize Youden J |
| Screening or triage | User-defined minimum sensitivity | Among eligible observed cutoffs, maximize specificity |
| Confirmatory or rule-in testing | User-defined minimum specificity | Among eligible observed cutoffs, maximize sensitivity |
| Evaluate an existing rule | User-defined cutoff | Evaluate it without optimizing it on the current sample |
Balanced cutoff using the Youden index
J = sensitivity + specificity − 1
Maximizing J gives sensitivity and specificity equal importance. It is a useful exploratory summary when false negatives and false positives have comparable consequences. It does not account for prevalence, downstream costs or the consequences of a decision, so “optimal” should be understood as optimal for this mathematical rule.
Screening: prioritize sensitivity
Screening aims to miss as few positive cases as practical. Select Screening — prioritize sensitivity and enter the target under Minimum sensitivity (%), for example 90 for 90%. numiqo then chooses the observed cutoff with the highest specificity among those that reach the requested sensitivity. If no observed cutoff meets the request, no operating point is reported.
The requested minimum applies to the estimate in the current sample. Its confidence interval can extend below the requested value, so the result is not a guarantee of population performance.
Confirmatory testing: prioritize specificity
A confirmatory or rule-in threshold is intended to limit false positive classifications. Select Confirmatory testing — prioritize specificity and enter Minimum specificity (%), for example 95 for 95%. numiqo selects the eligible observed cutoff with the highest sensitivity. The same uncertainty warning applies: a sample estimate meeting the target does not prove that the population value meets it.
Evaluate a prespecified cutoff
Select Evaluate an existing cutoff and enter a threshold under Existing cutoff. Use a value defined before examining the current outcome data—for example, a published threshold, a manufacturer’s rule or a cutoff from a development sample. numiqo evaluates the value exactly as entered and does not search for a better-looking threshold. This separates validation of an existing rule from data-driven optimization.
Measures reported at the selected cutoff
All cutoff modes report sensitivity, specificity and likelihood ratios. The balanced mode also reports Youden J. Screening, confirmatory and existing-cutoff modes additionally show PPV, NPV and the true/false positive and negative counts.
| Measure | Meaning |
|---|---|
| Sensitivity | TP / (TP + FN): proportion of positive cases classified positive |
| Specificity | TN / (TN + FP): proportion of negative cases classified negative |
| LR+ | Sensitivity / (1 − specificity) |
| LR− | (1 − sensitivity) / specificity |
| PPV | TP / (TP + FP): proportion of positive results that are actual positives |
| NPV | TN / (TN + FN): proportion of negative results that are actual negatives |
PPV and NPV depend on the prevalence represented in the analyzed data. They can change substantially when the same test and cutoff are applied in a population with a different prevalence. LR+ and LR− do not use prevalence directly.
Bootstrap confidence intervals
numiqo uses 2,000 stratified bootstrap resamples, drawing positive and negative cases separately. For an optimized cutoff, the cutoff-selection step is repeated within each resample. For an existing cutoff, the same entered threshold is evaluated in every resample. Percentile 95% intervals are reported for the cutoff when it is estimated and for the performance measures displayed in the selected mode when defined.
Avoid optimistic cutoff claims
Selecting and evaluating a cutoff on the same observations generally gives an optimistic impression of performance. Report that the cutoff was data-derived, include its uncertainty and, where the decision matters, validate it in independent data. Also state whether high values (value ≥ cutoff) or low values (value ≤ cutoff) indicate the positive outcome.
Related ROC guides
- ROC curve calculator overview
- Comparing paired and independent ROC curves
- Methods and pROC reference validation
- ROC curve and AUC tutorial