Search

Search papers and lessons

Proper Scoring Rule

Level 3 · 14 min read

A proper scoring rule pays a probability forecast the most, on average, when the forecast equals the true probabilities, so honesty is the best policy.

On this page

  • Colour = topic mix
  • Discrete math
  • Calculus
  • Probability
  • Losses & regularization
  • Inference
  • ReadReady to readNot yet

TL;DR

A forecaster states a probability for each possible outcome, and a scoring rule pays them a number once the outcome is known. A rule is proper if the forecaster's average payment is highest when the stated probabilities match the true ones, and strictly proper if no other statement does as well. That property is what makes the rule a fair way to judge forecasts, and it is why the same idea sits underneath the loss functions used to train classifiers.

Builds on: Expected Value, Probability Mass Function · Leads to: Cross-Entropy Loss, Kullback–Leibler Divergence

Where it's used

Checking weather forecasts. A forecaster who says "70% chance of rain" for each of many days is judged by what happened. Each day's probability is scored against the outcome, and the average over a season tells you whether the forecaster's numbers can be trusted. The Brier score, described below, was introduced for exactly this purpose in the 1950s.

Ranking forecasters in prediction tournaments. In forecasting tournaments, participants give probabilities for questions such as whether a treaty will be signed by a given date. The organisers need a score that cannot be gamed by saying "yes" or "no" with confidence. A proper rule means the best strategy is to report what you really believe.

Training classifiers. A neural network that labels images gives a probability for each label. Training it means pushing its average score up, or equivalently its loss down. The loss most used for this, cross-entropy loss, is the negative of a proper scoring rule, the logarithmic score. Choosing a proper rule is what makes the network learn the true probabilities rather than a distorted version of them.

Scoring probabilistic predictions of continuous values. A weather model that predicts a full distribution for tomorrow's temperature, not just one number, can be scored with a rule for continuous outcomes. The same logic holds: the score is only fair if the honest distribution does best on average.

How it works

Take one tiny instance. A forecaster has to say the chance of rain tomorrow. The true chance is 0.7, meaning that if the day were repeated many times, rain would fall on 70 out of 100 of them. The forecaster is paid by the Brier score, which for a stated probability qq and an outcome yy (1 for rain, 0 for dry) is

S(q,y)=−(q−y)2.S(q, y) = -(q - y)^2.

A higher score is better, and the best possible score is 0.

  1. Make the statement. The forecaster says q=0.9q = 0.9. Check: qq is between 0 and 1, so it is a legal probability.
  2. The day happens. It rains with probability 0.7 and stays dry with probability 0.3. Check: 0.7 + 0.3 = 1, so these are all the cases.
  3. Score each case. If it rains, S=−(0.9−1)2=−0.01S = -(0.9 - 1)^2 = -0.01. If it stays dry, S=−(0.9−0)2=−0.81S = -(0.9 - 0)^2 = -0.81. Check: the rain case scores close to 0 because the forecast was close to the outcome.
  4. Average over the cases. The average payment the forecaster can expect is 0.7×(−0.01)+0.3×(−0.81)=−0.007−0.243=−0.250.7 \times (-0.01) + 0.3 \times (-0.81) = -0.007 - 0.243 = -0.25. Check: both weights add to 1, so this is a true weighted average.
  5. Try the honest statement. Now the forecaster says q=0.7q = 0.7. Rain gives −(0.3)2=−0.09-(0.3)^2 = -0.09, dry gives −(0.7)2=−0.49-(0.7)^2 = -0.49. The average is 0.7×(−0.09)+0.3×(−0.49)=−0.063−0.147=−0.210.7 \times (-0.09) + 0.3 \times (-0.49) = -0.063 - 0.147 = -0.21. Check: −0.21-0.21 is larger than −0.25-0.25, so the honest statement earns more.
  6. Conclude. Saying 0.7 beats saying 0.9 when the truth is 0.7. The rule has rewarded the forecaster for reporting what they believe.

The visual below shows the average score as the statement changes, with the true value 0.7 marked at the top of the curve.

00.20.40.60.81−0.8−0.6−0.4−0.2stated probability qexpected score
  • expected Brier score when the truth is 0.7
The average score peaks at the true probability. Any other statement scores lower.

The math

Definition

Definition: Proper scoring rule

Let YY be a random variable that takes values in a finite set of outcomes, with true probability mass function p(y)p(y). A forecaster states a distribution qq over the same outcomes. A scoring rule S(q,y)S(q, y) is a number paid to the forecaster when outcome yy occurs. Its expected score under the true distribution is

Ep[S(q,Y)]=∑yp(y) S(q,y).\mathbb{E}_p[S(q, Y)] = \sum_{y} p(y)\, S(q, y).

The rule is proper if this expected score is largest when q=pq = p, for every possible pp. It is strictly proper if q=pq = p is the only statement that achieves that largest value.

The phrase "for every possible pp" matters. The rule must work whatever the true distribution happens to be. A rule that is best only for some pp is not proper.

Step 1 in symbols: the statement and the outcome

The forecaster reports qq. Nature picks an outcome yy with probability p(y)p(y). The score is S(q,y)S(q, y). This is the formal version of steps 1 and 2 in the walkthrough, where q=0.9q = 0.9 and the outcome was rain or dry.

Step 2 in symbols: the average payment

The average payment for a statement qq is the weighted sum in the definition. For the rain example with the Brier score, p(1)=0.7p(1) = 0.7, p(0)=0.3p(0) = 0.3, and

Ep[S(q,Y)]=0.7⋅(−(q−1)2)+0.3⋅(−(q−0)2).\mathbb{E}_p[S(q, Y)] = 0.7 \cdot \bigl(-(q-1)^2\bigr) + 0.3 \cdot \bigl(-(q-0)^2\bigr).

Step 3 in symbols: the Brier score is strictly proper

Expand the expression from step 2, now writing pp for the true chance of rain in general, so that 1−p1 - p is the chance of no rain:

Ep[S(q,Y)]=−[p(q−1)2+(1−p)q2]=−(q−p)2−p(1−p).\mathbb{E}_p[S(q, Y)] = -\bigl[p(q-1)^2 + (1-p)q^2\bigr] = -(q-p)^2 - p(1-p).

The second form comes from expanding the brackets: p(q−1)2+(1−p)q2=q2−2pq+pp(q-1)^2 + (1-p)q^2 = q^2 - 2pq + p, and q2−2pq+p=(q−p)2+p−p2q^2 - 2pq + p = (q-p)^2 + p - p^2. The term −(q−p)2-(q-p)^2 is never positive, and it equals zero only when q=pq = p. So the average is largest, and equal to −p(1−p)-p(1-p), exactly at the truth. For p=0.7p = 0.7 this is −0.21-0.21, matching step 5.

Step 4 in symbols: the log score is strictly proper

The logarithmic score is S(q,y)=log⁡q(y)S(q, y) = \log q(y), the log of the probability the forecaster gave to the outcome that happened. Its expected value under the truth is ∑yp(y)log⁡q(y)\sum_y p(y) \log q(y). Subtract the expected value of the honest statement q=pq = p. The first sum, ∑yp(y)log⁡p(y)\sum_y p(y)\log p(y), is the negative of the entropy of pp:

∑yp(y)log⁡p(y)−∑yp(y)log⁡q(y)=∑yp(y)log⁡p(y)q(y)=DKL(p ∥ q).\sum_y p(y)\log p(y) - \sum_y p(y)\log q(y) = \sum_y p(y)\log\frac{p(y)}{q(y)} = D_{\mathrm{KL}}(p \,\|\, q).

This is the Kullback–Leibler divergence. It is never negative, and it is zero only when q=pq = p. So the honest statement beats every other one, and the log score is strictly proper. This also gives the size of the loss from misreporting: exactly the divergence between the truth and the statement.

Step 5 in symbols: the rule with the most intuitive failure

Consider a rule that pays 1 if the forecaster's favourite outcome happens and 0 otherwise. For a two-outcome event with true chance p≥0.5p \ge 0.5, any statement q≥0.5q \ge 0.5 has average payment pp, whether q=0.6q = 0.6, q=0.7q = 0.7 or q=1.0q = 1.0. The honest report is among the best, so the rule is proper, but it is not strictly proper: it cannot tell an honest 0.7 from an overconfident 1.0.

Worked examples

Example
1. A coin with a 50 percent chance of heads

The true chance of heads is p=0.5p = 0.5. The forecaster reports qq for heads, and the Brier score is S(q,y)=−(q−y)2S(q, y) = -(q - y)^2, with y=1y = 1 for heads and y=0y = 0 for tails.

  1. Report q=0.5q = 0.5. Heads gives −(0.5−1)2=−0.25-(0.5 - 1)^2 = -0.25. Tails gives −(0.5−0)2=−0.25-(0.5 - 0)^2 = -0.25.
  2. Average: 0.5×(−0.25)+0.5×(−0.25)=−0.250.5 \times (-0.25) + 0.5 \times (-0.25) = -0.25.
  3. Report q=0.8q = 0.8. Heads gives −(0.8−1)2=−0.04-(0.8 - 1)^2 = -0.04. Tails gives −(0.8)2=−0.64-(0.8)^2 = -0.64.
  4. Average: 0.5×(−0.04)+0.5×(−0.64)=−0.02−0.32=−0.340.5 \times (-0.04) + 0.5 \times (-0.64) = -0.02 - 0.32 = -0.34.
  5. Check: −0.34-0.34 is smaller than −0.25-0.25, so overstating the chance costs the forecaster.
  6. Interpretation: the honest 0.5 is the best report, which is what the formula −(q−p)2−p(1−p)-(q-p)^2 - p(1-p) predicts with p=0.5p = 0.5.
Example
2. The logarithmic score for the rain forecast

Now use the log score with base 2, S(q,y)=log⁡2q(y)S(q, y) = \log_2 q(y), and a true chance of rain p=0.7p = 0.7. The base changes the size of the numbers, not the ranking.

  1. Report q=0.5q = 0.5. Rain gives log⁡20.5=−1\log_2 0.5 = -1, dry gives log⁡20.5=−1\log_2 0.5 = -1.
  2. Average: 0.7×(−1)+0.3×(−1)=−10.7 \times (-1) + 0.3 \times (-1) = -1.
  3. Report q=0.7q = 0.7, the honest value. Rain gives log⁡20.7≈−0.5146\log_2 0.7 \approx -0.5146, dry gives log⁡20.3≈−1.7370\log_2 0.3 \approx -1.7370.
  4. Average: 0.7×(−0.5146)+0.3×(−1.7370)≈−0.3602−0.5211=−0.88130.7 \times (-0.5146) + 0.3 \times (-1.7370) \approx -0.3602 - 0.5211 = -0.8813.
  5. Report q=0.9q = 0.9. Rain gives log⁡20.9≈−0.1520\log_2 0.9 \approx -0.1520, dry gives log⁡20.1≈−3.3219\log_2 0.1 \approx -3.3219.
  6. Average: 0.7×(−0.1520)+0.3×(−3.3219)≈−0.1064−0.9966=−1.10300.7 \times (-0.1520) + 0.3 \times (-3.3219) \approx -0.1064 - 0.9966 = -1.1030.
  7. Check the order: −0.8813-0.8813 (honest) beats −1.0-1.0 (unsure) beats −1.1030-1.1030 (overconfident).
  8. Interpretation: the log score also rewards the honest value most. Measured from the honest report, the overconfident 0.9 costs about 0.22 here, against 0.04 for the Brier score, so the log score punishes overconfidence harder.
Example
3. Three days of rain forecasts

A forecaster gives rain probabilities for three days: 0.9, 0.6 and 0.2. Rain falls on the first day and stays dry on the next two. A second forecaster always says 0.5. Score both with the Brier score from the walkthrough, S(q,y)=−(q−y)2S(q, y) = -(q - y)^2, and compare their average scores.

  1. Forecaster A, day 1: q=0.9q = 0.9, rain, so S=−(0.9−1)2=−0.01S = -(0.9 - 1)^2 = -0.01.
  2. Forecaster A, day 2: q=0.6q = 0.6, dry, so S=−(0.6)2=−0.36S = -(0.6)^2 = -0.36.
  3. Forecaster A, day 3: q=0.2q = 0.2, dry, so S=−(0.2)2=−0.04S = -(0.2)^2 = -0.04.
  4. Forecaster A's total is −0.01−0.36−0.04=−0.41-0.01 - 0.36 - 0.04 = -0.41, so the average is −0.41/3≈−0.137-0.41 / 3 \approx -0.137.
  5. Forecaster B says 0.5 each day. Each day scores −(0.5)2=−0.25-(0.5)^2 = -0.25, so the average is −0.25-0.25.
  6. Check: A's average −0.137-0.137 is larger than B's −0.25-0.25, so A's forecasts were better on this run.
  7. Interpretation: the score compares forecasts with outcomes. One run of three days is a small sample, and a proper rule only says that on average, over many days, the honest forecast scores best.

Try it: Suppose on day 2 Forecaster A had instead said 0.4, and everything else is unchanged. What is A's new average? Answer: day 2 becomes −(0.4)2=−0.16-(0.4)^2 = -0.16, so A's total is −0.01−0.16−0.04=−0.21-0.01 - 0.16 - 0.04 = -0.21, and the average is −0.21/3=−0.07-0.21 / 3 = -0.07. The change is an improvement, which shows that the day 2 forecast of 0.6 was too high for a dry day.

Common mistakes and tradeoffs

It is tempting to think a proper score is one that gives a low score when the forecast is wrong. In fact the property is about incentives: a proper rule is one where the honest report wins on average, whatever the truth is. Individual outcomes can score badly even for an honest forecaster, because a 0.7 chance of rain still means dry weather 30 times in 100.

It is tempting to think that accuracy, the share of forecasts that land on the right side of 0.5, is a fair way to score probabilities. In fact it is not strictly proper. As shown in step 5 of the math, a forecaster paid for accuracy earns the same average from an honest 0.7 as from an overconfident 1.0, so the rule gives no reason to prefer the honest report. Accuracy is a useful summary of a classifier's decisions, but it cannot be used to train or to reward probability forecasts.

It is tempting to think that the sign of a score does not matter. In fact most machine-learning libraries minimise a loss, which is the negative of a score. Cross-entropy loss is the negative logarithmic score, so a lower loss is a better forecast. Mixing up the two trains a model to do the opposite of what you intend.

It is tempting to think that the log score is always the best choice. In fact the log score gives an unbounded penalty when an event that the forecaster called impossible happens: the score for probability 0 is −∞-\infty. That is why real systems clip probabilities away from 0 and 1. The Brier score is bounded and easier to explain, but it punishes large mistakes less. Use the log score when the cost of a confident mistake is very high, and the Brier score when you want a bounded, easy-to-read number.

A proper score is also not a complete measure of forecast quality. It combines two things, calibration (do the stated probabilities match the observed frequencies) and sharpness (how concentrated the forecasts are). Both matter, and a proper rule rewards both through the same average. For continuous outcomes, the continuous ranked probability score is a proper rule that is often used in place of the Brier score.

History

In 1950 the meteorologist Glenn Brier proposed scoring probability forecasts of weather events by the squared difference between the forecast and the outcome. This became the Brier score, and it is still the standard example. In 1952 I. J. Good described the logarithmic score as a basis for rational decisions under uncertainty, which gave the field its second main rule.

The general idea took longer. In 1971 Leonard Savage studied the problem of eliciting a person's beliefs by asking them for numbers, and he showed that the honest answer should be the best one under a well-designed rule. In 2007 Tilmann Gneiting and Adrian Raftery set out the general theory of strictly proper scoring rules, the framework used in this lesson, and it is now the standard reference for evaluating forecasts.

Recap

  • A forecaster states a probability distribution qq, and a scoring rule pays a number S(q,y)S(q, y) when outcome yy occurs.
  • The expected score under the truth pp is ∑yp(y)S(q,y)\sum_y p(y) S(q, y), a weighted average built from expected values.
  • A rule is proper if the honest statement q=pq = p maximises this average, and strictly proper if it is the only maximiser.
  • The Brier score is strictly proper, with expected value −(q−p)2−p(1−p)-(q-p)^2 - p(1-p) for a yes-or-no event. It is the mean squared error of the stated probability, negated.
  • The log score is strictly proper, and the gap between the honest and the actual statement is exactly the KL divergence.
  • Cross-entropy loss is the negative log score, which is why training a classifier with it teaches the network to report honest probabilities.

What to read next: Cross-Entropy Loss for the training loss built on the log score, Kullback–Leibler Divergence for the gap that a proper rule measures, and Maximum Likelihood Estimation for the statistical method that the log score connects to. The deep ensembles paper uses a proper rule to train networks that estimate their own uncertainty.

Check yourself

QuestionWhat does it mean for a scoring rule to be strictly proper?Show answer

The expected score under the true distribution pp is largest when the forecaster reports q=pq = p, and no other report achieves that largest value. The honest report is the unique best strategy, so the rule rewards honesty and nothing else does as well.

QuestionA forecaster believes an event has probability 0.25 and uses the Brier score S(q,y)=−(q−y)2S(q, y) = -(q - y)^2. What is the expected score if she reports 0.25, and what if she reports 0.5?Show answer

Reporting 0.25 gives −p(1−p)=−0.25×0.75=−0.1875-p(1-p) = -0.25 \times 0.75 = -0.1875 by the formula. Reporting 0.5 gives −(0.5−0.25)2−0.1875=−0.0625−0.1875=−0.25-(0.5 - 0.25)^2 - 0.1875 = -0.0625 - 0.1875 = -0.25. The honest report scores higher, −0.1875-0.1875 against −0.25-0.25.

QuestionWhy is the accuracy rule, which pays 1 when the favourite outcome happens, not a strictly proper scoring rule?Show answer

Because for a two-outcome event with true chance p≥0.5p \ge 0.5, every report q≥0.5q \ge 0.5 has the same expected payment pp. A forecaster who reports 1.0 earns as much as one who honestly reports 0.7, so the rule does not make the honest report uniquely best.

QuestionApplied scenario: a model is trained with the log score, and the loss is the negative of the average log score. Training makes the loss smaller. Which way does that move the score, and why is this good?Show answer

Making the loss smaller makes the average log score larger, because the loss is its negative. The log score is strictly proper, so the largest average is reached when the model's predicted probabilities equal the true probabilities. Training therefore pushes the model towards honest probabilities, not just towards correct top predictions.

Sources