Probabilities, calibration and thresholds
Notebook· 15.02· 3–4 h· Lesson 122 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Tell apart
confidence, the top probability and the margin, and know which one to set a threshold on. - Measure calibration on labeled data: reliability table and plot, expected calibration error (ECE), Brier score.
- Pick a routing threshold from costs ("a misroute costs $2.50, an escalation $0.50") on one half of the data, and report it on the other.
- Design an uncertain band for a yes/no answer: act, ignore, or ask a human.
- Compare with an LLM's self-reported confidence, and check self-consistency across re-runs.
Before you start
Lesson 15.01, and Lesson 14.03 (ticket router, ECE, route_curve).
