All lessons in Machine Learning Engineering: Reliable Predictive Models

Calibration and Decision Thresholds

Check probability reliability and choose a threshold from costs or capacity.

30 minutes · Members lesson · preview

What you will learn

  • Build a reliability table from predicted probabilities and outcomes and state the direction of miscalibration with appropriate caution about bin size.
  • Derive a decision threshold from false-positive and false-negative costs and explain the assumptions behind the formula.
  • Explain why threshold selection uses validation data and why the sealed final evaluation runs once with a frozen threshold.

The dispatch model for our fictional parcel carrier emits a number between 0 and 1 for every parcel leaving the depot: its estimated probability of arriving late. That number is only useful if two separate questions have good answers. First, when the model says 0.30, do roughly 30 percent of such parcels actually arrive late? That is calibration. Second, at what probability should the dispatcher intervene, for example by moving the parcel to an express van? That is the decision threshold. Confusing the two is common: a model can rank parcels well yet report probabilities that are systematically too low, and a well-calibrated model can still be deployed with a threshold that wastes money.

Choose another lesson