Reliability Diagrams for Trading Forecasts
A reliability diagram checks whether a model's stated confidence matches how often it's actually right — plotting predicted probability against realized frequency exposes overconfidence at a glance.
Prerequisites: Calibrating a Forecast: Are Your Numbers Real?
A model that says "I'm 80% confident this trade goes up" is making two claims at once: a direction, and a reliability claim about that 80%. If trades the model tags as 80%-confident actually go up only 55% of the time, the direction call might still be useful, but sizing positions off that stated 80% will be badly wrong. A reliability diagram is the standard way to check the second claim — whether stated confidence matches reality — separately from checking whether the direction call itself is any good.
A reliability diagram plots predicted probability on one axis against actually-observed frequency on the other. A perfectly calibrated forecaster's points sit on the diagonal; points below the diagonal mean the model is overconfident, and that gap is exactly the amount a trader should discount the model's stated odds.
Building the diagram
Take every prediction a model made (say, "probability this stock closes up tomorrow"), bucket predictions into bins — 0-10%, 10-20%, and so on — and within each bin compute two numbers: the average predicted probability, and the fraction of times the outcome actually happened. Plotting bin-average-predicted against bin-actual-frequency, one point per bin, traces the reliability curve.
Move the probability parameter above and picture each of a model's confidence bins as one of these binomial outcomes: a model that predicts "70% probability" for a batch of trades should see roughly 70% of them succeed — the explorer shows how much a realized frequency can wobble around a true probability even when the model is perfectly calibrated, purely from sample size.
Worked example
A signal makes 200 predictions it tags as "65% confident, up." Of those 200, 110 actually closed up — a realized frequency of . The point for this bin sits at (predicted 0.65, actual 0.55), ten percentage points below the diagonal: the model is overconfident in this bucket. Meanwhile its "50% confident" bucket, covering 300 predictions, saw exactly 152 go up, a frequency of — essentially on the diagonal, well calibrated.
The fix used in practice is not to throw out the 65% bucket's directional call, but to recalibrate it: since predictions tagged 65% actually resolve at about 55%, a trader sizing positions off this model should treat any future "65%" prediction as worth roughly 55% until the model itself is refit and retested.
What this means in practice
A model can have real, useful directional skill (it correctly separates likely-up from likely-down trades) while still being badly calibrated (its stated probabilities are systematically too extreme). These are different failures needing different fixes — better features address the first, recalibration (like fitting a simple correction curve on top of the raw output) addresses the second, and reliability diagrams are how a researcher tells which one they're facing.
A model can look excellent by accuracy or hit-rate alone while being severely miscalibrated — hit-rate only checks whether the majority-vote direction was right, not whether the confidence attached to it was honest. Always check calibration separately, especially before sizing positions off a model's stated probability.
Related concepts
Practice in interviews
Further reading
- Murphy & Winkler, 'Reliability Diagrams for Probability Forecasts' (Journal of Applied Meteorology)
- Niculescu-Mizil & Caruana, 'Predicting Good Probabilities with Supervised Learning'