Skip to content
Last Dictionary

decision threshold

nounAlso: classification threshold, operating point, cutoff, threshold tuning, threshold moving

In plain wordsThe cut-off score above which a model's prediction counts as 'yes'; moving it trades missed cases against false alarms, like setting how sensitive a smoke alarm should be.

  1. The value of a classifier's score or predicted probability above which an example is assigned to the positive class. Many models output a continuous score, and the default threshold of 0.5 on a probability is optimal only if the probabilities are calibrated and both kinds of error cost the same. Raising the threshold generally increases precisionprecision, n.: Of all the items a model flagged as positive, the share that really were positive; a spam filter with high precision rarely sends genuine emails to the spam folder. and specificityspecificity, n.: Of all the cases that really were negative, the share a test correctly cleared; a highly specific test rarely raises false alarms on healthy people. and lowers recallrecall, n.: Of all the items that really were positive, the share the model managed to find; a cancer screen with high recall misses very few people who actually have cancer.; lowering it does the reverse. Each threshold yields one confusion matrixconfusion matrix, n.: A table that counts a model's right and wrong answers by type, showing for each true category how often each category was predicted, so you can see exactly which things it mixes up., and sweeping it traces the ROC curveROC curve, n.: A graph showing how a detector's hit rate and false-alarm rate change together as it is made more or less trigger-happy; the closer the curve hugs the top-left corner, the better. and the precision–recall curveprecision–recall curve, n.: A graph showing how a model's share of correct alarms and its share of cases caught trade off as it is made more or less cautious; especially useful when positive cases are rare.. Choosing the operating point is a decision rather than a learning problem: with calibrated probabilities, the threshold that minimizes expected cost is the cost of a false positive divided by the sum of the costs of a false positive and a false negative. In practice thresholds are tuned on a validation setvalidation set, n.: A set of examples kept out of training and used during development to compare model versions and settings, like a practice exam taken before the real one. to meet a constraint, such as 95% recall or at most 1% of transactions flagged, to maximize a metric such as the F1 scoreF1 score, n.: A single score that combines how many of a model's alarms are right and how many real cases it catches, and stays low unless both are good., or separately per group to satisfy fairness criteria. They should be re-checked when class prevalence or score distributions drift.

    We lowered the decision threshold from 0.5 to 0.2 because a missed tumor costs far more than an extra biopsy.

t∗=CFPCFP+CFNt^{*} = \frac{C_{\mathrm{FP}}}{C_{\mathrm{FP}} + C_{\mathrm{FN}}}

Origin

Threshold choice comes from statistical decision theory and the signal detection theory of the 1950s, in which an observer's criterion trades hits against false alarms. Charles Elkan's 'The Foundations of Cost-Sensitive Learning' (IJCAI 2001) gave the standard machine-learning treatment of cost-based thresholds.

Related

See also
  • ROC curveROC curve, n.: A graph showing how a detector's hit rate and false-alarm rate change together as it is made more or less trigger-happy; the closer the curve hugs the top-left corner, the better.
  • precision–recall curveprecision–recall curve, n.: A graph showing how a model's share of correct alarms and its share of cases caught trade off as it is made more or less cautious; especially useful when positive cases are rare.
  • calibrationcalibration, n.: How well a model's stated confidence matches reality: when a well-calibrated system says it is 80% sure, it turns out to be right about 80% of the time.
  • confusion matrixconfusion matrix, n.: A table that counts a model's right and wrong answers by type, showing for each true category how often each category was predicted, so you can see exactly which things it mixes up.
  • precisionprecision, n.: Of all the items a model flagged as positive, the share that really were positive; a spam filter with high precision rarely sends genuine emails to the spam folder.
  • recallrecall, n.: Of all the items that really were positive, the share the model managed to find; a cancer screen with high recall misses very few people who actually have cancer.
  • class imbalanceclass imbalance, n.: When one category is far rarer than the others in the data — say, one fraud case per thousand transactions — so a model can look accurate while missing nearly every rare case that matters.

Sources

  1. Elkan, C. (2001). The Foundations of Cost-Sensitive Learning. Proc. 17th International Joint Conference on Artificial Intelligence (IJCAI).

Mentioned in

Matthews correlation coefficientMatthews correlation coefficient, n.: A single score from −1 to +1 for a yes-or-no classifier that uses all four kinds of right and wrong answers, so it stays honest even when one answer is far more common than the other.