Binning Scores for a Calibration Check
A calibration display can group predicted probabilities into intervals and compare the mean predicted probability with the observed positive fraction in each.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace one bin
Scores 0.7 and 0.9 average 0.8. If one outcome is positive, its observed rate is 0.5. This tiny bin gives weak evidence by itself. See bin boundaries.
Choose bins with readable counts
Changing bin size can reveal or hide variation. Publish numbers of examples and an appropriate held-out sample. Rates and counts describes why.[1][2]
Compare observed and predicted frequency per bin
A bin contains five predictions of .6, .6, .65, .7 and .7. Their mean prediction is .65. If three cases are positive, the observed rate is .6. The difference of .05 is an empirical observation with substantial uncertainty at size five. See small evaluation sets.
Bin count 5
Predicted probability sum 3.25 → mean .65
Positive count 3 → rate .6
Include the group count beside the comparison
Set bin boundaries before interpreting a plot
Fixed-width bins and equal-count bins can show different resolution. Empty bins have no measured frequency. Test assignment of values exactly on boundaries and avoid losing the top endpoint.