Group forecasts into a calibration bin
Type each count alongside the label that gives it meaning. · 181 words
Calibration asks whether stated probabilities match observed frequencies. To check it, sort forecasts into bins, such as all probabilities from 0.60 through 0.80. Within a bin, compare the observed fraction of positive outcomes with the average forecast. Suppose a tennis model gives win probabilities of 0.60, 0.65, 0.70, 0.75, and 0.80 for five matches. All five fall in the 0.60-to-0.80 bin. Their average forecast is (0.60 + 0.65 + 0.70 + 0.75 + 0.80) / 5 = 0.70.
The player wins three matches and loses two, so the observed win frequency is 3 / 5 = 0.60. The calibration gap is the absolute difference between average forecast and observed frequency: |0.70 - 0.60| = 0.10. A gap of zero means perfect calibration for that bin. Here, the gap suggests these confident forecasts are too high: forecasts near 0.70 should produce wins about 70 percent of the time, but this group produced only 60 percent. Calibration should be checked across many bins because five matches can be noisy. A model may win three of five matches while its probabilities remain poorly calibrated.
Check your recall
For the 0.60-to-0.80 calibration bin, what are the average forecast, observed frequency, and calibration gap?
Check your answer
The average forecast is 0.70, the observed win frequency is 3 / 5 = 0.60, and the calibration gap is |0.70 - 0.60| = 0.10.
Sources and credits
Original KeyTouch lesson. Background reading · Google · Classification metrics.