On this page
The continuous ranked probability score (CRPS) evaluates a probability distribution for a numeric outcome. Smaller values are better. Unlike a point-error measure, it uses the forecast distribution; unlike binary Brier loss, it can distinguish how far numeric outcomes are apart.
This guide walks through an original empirical-distribution example in two independent ways. Its fictional temperatures are teaching data, not a record of Alphascope or prediction-market performance. Try the interactive CRPS calculator to change the observation and inspect every interval contribution.
What the continuous ranked probability score measures
Let F(z) be the forecast cumulative distribution function: the probability assigned to outcomes at or below z. After observing y, compare F(z) with a step that is zero below y and one at or above y. CRPS integrates the squared difference across numeric thresholds:
CRPS(F, y) = ∫ [F(z) − 1{y ≤ z}]² dz
over all real-valued z
The scoringrules API reference gives this definition and an equivalent expectation form. The integration includes distances between thresholds, so the result has the units of the numeric outcome. Temperature CRPS is measured in degrees, even though the CDF difference is squared.
A distribution can place probability mass at particular numbers; the word continuous in the score's name does not require a smooth forecast density. For an empirical ensemble, each listed member receives mass 1/M, including repeated values.
CRPS formula for an equally weighted ensemble
For members x₁ through xM and observation y, the score of the empirical forecast distribution is:
CRPS = (1/M) Σᵢ |xᵢ − y|
− (1/(2M²)) Σᵢ Σⱼ |xᵢ − xⱼ|
The double sum includes ordered pairs and diagonal pairs. Diagonal distances are zero; off-diagonal distances occur twice. The documented energy form uses this M² denominator. Do not sum only unordered pairs and keep the same denominator.
The first term is mean absolute distance from ensemble members to the observation. The second subtracts a pairwise spread term. It would be a mistake to infer that widening a forecast always improves the result: widening also changes the first term.
Worked example: four members and one observation
Take members 10, 20, 20, 30 degrees and an observed temperature of 24 degrees. The repeated 20 matters: the empirical distribution assigns 25% mass to 10, 50% to 20 and 25% to 30.
| Member | Distance from 24 |
|---|---|
| 10 | 14 |
| 20 | 4 |
| 20 | 4 |
| 30 | 6 |
Mean absolute member distance is (14 + 4 + 4 + 6) / 4 = 7. The ordered-pair distance sum is 120, giving a spread term of 120 / (2 × 4²) = 3.75. Therefore CRPS = 7 − 3.75 = 3.25 degrees.
Deduplicating the two 20s would change the probability distribution. Reordering them would not. This is why a worksheet should preserve multiplicity rather than silently treating members as a set of unique possible outcomes.
Check the same result by integrating the CDF
Break the real line at the distinct forecast values and the observation. The integrand is constant between adjacent breakpoints. Before 10, both CDFs are zero; after 30, both are one. Those outer intervals contribute zero.
| Interval | Forecast CDF | Observed step | Width × squared gap |
|---|---|---|---|
| [10, 20) | 0.25 | 0 | 10 × 0.25² = 0.625 |
| [20, 24) | 0.75 | 0 | 4 × 0.75² = 2.250 |
| [24, 30) | 0.75 | 1 | 6 × 0.25² = 0.375 |
The contributions sum to 3.25, matching the pairwise calculation. Values at individual jump points do not change an integral over intervals of positive width. The calculator shows the CDF steps and this interval ledger instead of approximating the area with a coarse grid.
Same mean, different forecast distributions
Keep the observation at 24. Compare three original candidates, each centered at a mean of 20:
| Candidate distribution | Mean member distance | Spread term | Empirical CRPS |
|---|---|---|---|
| Point mass at 20 | 4.00 | 0.00 | 4.00 |
| 10, 20, 20, 30 | 7.00 | 3.75 | 3.25 |
| 0, 20, 20, 40 | 12.00 | 7.50 | 4.50 |
The middle candidate has the smallest loss for this realized observation. Widening it further makes the score worse. One observation does not establish which distribution is better in expectation or whether either forecast is calibrated.
If every member is the same value a, all pairwise distances are zero and CRPS reduces to |a − y|. Across equally weighted cases, a set of such point-mass forecasts therefore reduces to mean absolute error. See the forecast-error guide for point-forecast metrics.
Empirical CRPS versus a fair ensemble estimator
The empirical formula scores the distribution actually entered. A fair estimator answers a different question when members are treated as suitable random samples from an underlying predictive distribution. The scores documentation distinguishes denominator M² for its empirical method from M(M − 1) for its fair method.
For our four members, replacing 2M² = 32 with 2M(M − 1) = 24 changes the subtracted term from 3.75 to 5. The fair estimate becomes 7 − 5 = 2.00, rather than 3.25. These values use different estimands; reporting the smaller one without explaining the convention is misleading.
A fair correction requires more than one member and assumptions about how members were generated. Do not apply it automatically to an arbitrary collection of model outputs, correlated samples or deliberately chosen quantile values. Our calculator and default worksheet score the equal-mass empirical distribution and apply no fair correction.
CRPS for discrete binary events and Brier score
Encode outcomes as 0 and 1 and assign probability p to outcome 1. The empirical-distribution interpretation gives CRPS = (p − y)²: the binary Brier loss under this single-event convention.
For example, a distribution with 30% mass at 0 and 70% at 1 scores 0.09 when y = 1 and 0.49 when y = 0. The calculator's binary example represents those masses using three zero members and seven one members. It is a defined two-point distribution, not a claim that ten samples recover an unknown population probability.
A single member equal to 0.70 is instead a point mass at the numeric outcome 0.70. Against y = 1, that scores 0.30 absolute error, not 0.09. Keep a probability of Yes separate from a numeric outcome value. Use our Brier score calculator for ordinary binary probability records.
For ordered categorical forecasts, a ranked probability score sums cumulative-category errors under its declared normalization. Numeric CRPS additionally depends on outcome spacing. Do not assign arbitrary numbers to unordered labels and interpret the distances as meaningful.
Reproduce CRPS in Python
Download the original scenario CSV and standard-library Python worksheet. It calculates both ordered-pair and interval forms using exact fractions. Run python3 crps-ensemble.py with the files in the same folder.
from fractions import Fraction
members = [Fraction(x) for x in [10, 20, 20, 30]]
y = Fraction(24)
m = len(members)
distance = sum(abs(x-y) for x in members) / m
spread = sum(abs(x-z) for x in members for z in members) / (2*m*m)
print(distance - spread) # 13/4, or 3.25
The browser calculator's interval integration was independently checked against the worksheet on deterministic cases, including ties, single-member forecasts and binary distributions. The downloaded examples are offline arithmetic; they make no request to a trading account.
What is a good CRPS?
There is no universal cutoff across different outcome units, samples and forecast horizons. Multiplying all values by ten multiplies CRPS by ten; a common additive shift leaves it unchanged. Compare candidate distributions on the same cases and against a reference forecast chosen before observing those outcomes.
The scoringrules theory guide defines proper scoring rules through expected forecast evaluation. Properness concerns expected scoring under the target distribution; it does not promise that an honest forecast wins on every observed case.
CRPS alone does not identify calibration, justify a nominal interval's coverage or prove trading profitability. For a single numeric quantile, use pinball loss; for binary reliability, inspect a reliability diagram. Preserve the observation source, release vintage and forecast timestamp, and use a chronological evaluation before claiming an improvement.
Reviewed December 2, 2026. All examples and figures are original synthetic calculations. Explore Alphascope prediction-market research for event context, keeping forecast scores separate from executable prices, fees and position sizing.