Lesson · 8 pages · about 7 min
Calibration: does a 20% chance mean one in five?
A model can put products in the right order and still be wrong about how likely each one is. Calibration checks the size of the chances against what really happened, bin by bin, in a reliability diagram. Two everyday habits break it: down-sampling the “no” rows, and counting purchases before they have arrived.
- What it is
- A model is calibrated when its chances match reality: of all the rows it gave about 20%, about one in five really happened.
- What it is for
- Whenever a chance is used as a number, not just to sort: multiplied by a price or a bid, added to other heads with weights, or compared with a threshold.
- Use it when
- Check it before every model ships and keep checking in production, per slice (new products, each country), because it drifts when the data or the training changes.
Words you’ll learn
- Calibration
- AUC
- Row
- Expected calibration error
- Negative down-sampling
- Reliability diagram
- Join
- Label window
- Platt scaling
- Position bias