All labs

Net Benefit and Threshold Choice

Accuracy cannot pick a threshold. A stated harm-to-benefit ratio can — and the decision curve shows where a model earns its keep.

Ch 9 9.7
Explorer
Validation & Feature Selection
20 mindifficulty 3/5

Controls

12.0%
1.600

β = 0 is a useless model; large β approaches perfect separation.

50%
10

Treating 10 unnecessary cases is as bad as missing one. Implied threshold 9.1%.

1500
Show treat-all strategy

The benchmark every model must beat.

Random seed

Every result on this page is a deterministic function of the seed and the controls.

Decision curve: net benefit against threshold

A model is only useful where its curve is above both the treat-all line and zero.

-0.10-0.0500.050.100.150.2000.200.400.600.80treat noneyour timplied by harm:benefitthreshold probability tnet benefit
modeltreat alltreat none (zero)your thresholdthreshold from your loss ratio
Net benefit at your t
0.0407
true positives per patient, net of harm
Treat-all at the same t
-0.6160
model wins here
Interventions avoided
65.7per 100
versus treating everyone, same detection rate
AUC
0.847
threshold-free discrimination

At your threshold

t = 50% on 1500 cases.

treated151 (10.1%)
true positives106
false positives45
sensitivity36.8%
specificity96.3%
accuracy84.9%
accuracy of treat-none80.8%

Accuracy prefers treat-none whenever prevalence is low. Net benefit does not, because it prices a missed case against an unnecessary treatment.

Choosing t from a loss ratio

harm : benefit1 : 10
implied threshold9.09%
net benefit there0.1391
best t on this curve1.0%
observed prevalence19.20%

The threshold is a statement about consequences: t/(1−t) is exactly the number of false positives you will tolerate for one true positive.

0.5 is not a natural cutoff

Thresholding a probability at 0.5 asserts that a false positive and a false negative cost the same. In screening they almost never do. Fix the harm-to-benefit ratio you are willing to defend, and the threshold follows: t = 1/(1 + harm:benefit). Every point on the decision curve corresponds to one such ratio.