On this page
A reliability diagram compares predicted probabilities with how often the event actually happened. For binary forecasts, the horizontal axis is the average probability of Yes in a group; the vertical axis is that group's observed Yes frequency. A point near the diagonal means those two numbers agree in that sample.
This guide walks through an original fictional 20-event record. You can reproduce every plotted point with the downloadable data and Python worksheet. It illustrates a diagnostic method, not the measured accuracy of Alphascope, Kalshi, Polymarket or any forecasting model.
How to read a reliability diagram
The point (0.80, 0.60) means forecasts averaging 80% Yes were followed by Yes in 60% of the observations in that group. It does not mean the model was 80% accurate, nor that one particular event had a knowable true probability of 60%.
| Point location | Meaning for the selected Yes outcome | Example |
|---|---|---|
| Below the diagonal | Forecast Yes probabilities exceeded observed Yes frequency | 80% forecast, 60% Yes frequency |
| Above the diagonal | Forecast Yes probabilities were below observed Yes frequency | 20% forecast, 40% Yes frequency |
| On the diagonal | Mean forecast and observed frequency matched | 60% forecast, 60% Yes frequency |
A curve that is too flat relative to the diagonal can indicate excessive confidence: low Yes probabilities are too low and high Yes probabilities are too high. A single point below the line is not enough to diagnose that whole pattern. At a 20% Yes forecast, below the line means overestimating Yes, while the corresponding 80%-confident No prediction may actually be too cautious.
The scikit-learn calibration guide describes these plots as calibration curves or reliability diagrams. The term here concerns probability forecasts; a reliability block diagram used in engineering is a different diagram.
A reliability diagram example with 20 forecasts
Imagine twenty separate binary events with forecasts recorded before their outcomes. Five receive each of four probabilities. The outcomes below are deliberately constructed so the arithmetic is easy to inspect.
| Predicted Yes probability | Events | Yes outcomes | Observed Yes frequency | Plot coordinate |
|---|---|---|---|---|
| 20% | 5 | 0 | 0% | (0.20, 0.00) |
| 40% | 5 | 1 | 20% | (0.40, 0.20) |
| 60% | 5 | 3 | 60% | (0.60, 0.60) |
| 80% | 5 | 5 | 100% | (0.80, 1.00) |
For the 40% group, the horizontal value is (0.40 + 0.40 + 0.40 + 0.40 + 0.40) / 5 = 0.40. The vertical value is 1 / 5 = 0.20. The point therefore lies below the reference diagonal. For the 80% group, all five outcomes are Yes, so the plotted frequency is 1.00.
Five out of five is an observed frequency, not proof that a future 80% prediction should become 100%. Each group has only five records. A different small sample can produce a different curve even when the forecasting process has not changed.
Download the 20-event CSV for a spreadsheet, or the two-column calculator input. The CSV stores probabilities as fractions from 0 to 1. The calculator input instead uses percentage values such as 40,1, with no header.
How to make a reliability diagram
- Define the positive outcome. Record p as the probability of the same Yes event represented by outcome 1. Keep No as 0.
- Select the observation rule. Use a consistent forecast horizon, such as one snapshot per event at a predefined time before its deadline.
- Choose bins before comparing results. For each occupied bin, calculate its record count, average forecast probability and fraction of Yes outcomes.
- Plot means, not bin labels. If probabilities in a bin average 0.43, its x coordinate is 0.43, even if the interval midpoint is 0.45.
- Display support. Include counts or a histogram so a point based on two events cannot look equivalent to one based on two thousand.
For each occupied bin b:
x_b = sum(p_i in b) / n_b
y_b = sum(outcome_i in b) / n_b
plot (x_b, y_b), alongside n_b
Our calibration calculator already plots these occupied-bin means. Choose Yes-probability mode for this guide's interpretation. The separate predicted-label confidence mode answers a different question. With ten equal-width bins, the downloadable input reproduces the four points above.
Equal-width bins, quantiles and empty bins
Equal-width bins divide the probability axis into fixed intervals. Quantile bins aim to put similar numbers of records in each group. The official calibration_curve reference documents both strategies and omits empty bins from its output. Repeated identical probabilities can limit how finely a quantile partition separates records.
The accompanying worksheet uses exact rational arithmetic and lower-inclusive intervals: [0, 0.1), [0.1, 0.2), and so on, with 1 included in the final interval. Thus exactly 20% enters the interval starting at 20%. This matches the Alphascope calculator's convention; it is not a promise that every library assigns boundary values the same way.
Empty intervals contain no observations. Do not plot them as zero successes. A line joining occupied points is a visual connection, not evidence about the gaps. Our chart uses separate points and includes counts.
A coarse chart can hide opposing errors
Take a separate fictional pair: a 40% Yes forecast followed by Yes, and a 60% Yes forecast followed by No. With one bin, the mean forecast is 50% and the observed Yes frequency is also 50%. The single point lands perfectly on the diagonal.
With two equal-width bins, the points are (0.40, 1.00) and (0.60, 0.00). Their absolute gaps are both 0.60. The one-bin agreement concealed the opposite errors. Changing bins changes the question you summarize, not the underlying forecasts.
For the main 20-event example, the count-weighted absolute Yes-probability gap is 0.15, or 15 percentage points. That is (5/20) × (0.20 + 0.20 + 0 + 0.20). It is neither a 15% loss on a trade nor the squared reliability component in a Brier decomposition.
Calibration, sharpness and overall forecast skill
A constant 45% forecast for all twenty fictional events would produce one point exactly on the diagonal: nine of twenty outcomes are Yes. Yet it would not distinguish relatively likely Yes events from relatively likely No events. Agreement at one aggregate point cannot establish useful discrimination.
Our four-group forecast has a binary Brier score of 0.13. The constant sample-frequency forecast scores 0.45 × 0.55 = 0.2475. The first can have a better overall probability score despite the visible departures from the diagonal. Read the Brier skill score guide for how the choice of reference affects the comparison.
In this example, grouping by the four exact forecast values gives reliability 0.03, resolution 0.1475 and uncertainty 0.2475: 0.03 − 0.1475 + 0.2475 = 0.13. These are squared-error quantities. Replacing a range of different probabilities with coarse bin means can change the score being decomposed; do not assume a three-term calculation from arbitrary bins exactly reproduces the original unrounded score.
Using the diagram for prediction-market research
For a Kalshi or Polymarket study, preserve the market ID, full outcome definition, forecast source, timestamp, horizon and final resolution. A midpoint, last trade and executable ask can differ. Decide which price or model forecast you are evaluating before collecting data.
Multiple snapshots of one event do not become independent events merely because the timestamps differ. Related contracts can also share underlying outcomes. Keep a consistent inclusion rule, report exclusions, and assess uncertainty using the dependence structure of the actual study. This worksheet does not compute confidence intervals.
If a curve suggests a repeatable issue, evaluate any fitted correction on data separate from the fitting sample. Our Platt scaling guide covers that separate fitting workflow. A reliability diagram itself neither refits probabilities nor establishes a profitable trading strategy.
Reproduce the calculations in Python
The standalone Python worksheet needs only the standard library. Run python3 reliability-diagram.py. It prints the four points and counts, the weighted absolute gap, the direct Brier score, and the exact-value decomposition. It also reproduces the two-record coarse-bin counterexample.
The dataset is a teaching fixture, not a historical export. For entered probabilities use the interactive calibration calculator; for other scoring views use Brier score and log loss. Explore Alphascope prediction-market research to investigate a market, keeping forecast evaluation separate from the economics of a trade.
Definitions and linked documentation reviewed December 2, 2026. All numerical examples and the accompanying chart are original synthetic illustrations.