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 and an outcome (1 for rain, 0 for dry) is
A higher score is better, and the best possible score is 0.
- Make the statement. The forecaster says . Check: is between 0 and 1, so it is a legal probability.
- 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.
- Score each case. If it rains, . If it stays dry, . Check: the rain case scores close to 0 because the forecast was close to the outcome.
- Average over the cases. The average payment the forecaster can expect is . Check: both weights add to 1, so this is a true weighted average.
- Try the honest statement. Now the forecaster says . Rain gives , dry gives . The average is . Check: is larger than , so the honest statement earns more.
- 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.
- expected Brier score when the truth is 0.7
The math
Definition
Let be a random variable that takes values in a finite set of outcomes, with true probability mass function . A forecaster states a distribution over the same outcomes. A scoring rule is a number paid to the forecaster when outcome occurs. Its expected score under the true distribution is
The rule is proper if this expected score is largest when , for every possible . It is strictly proper if is the only statement that achieves that largest value.
The phrase "for every possible " matters. The rule must work whatever the true distribution happens to be. A rule that is best only for some is not proper.
Step 1 in symbols: the statement and the outcome
The forecaster reports . Nature picks an outcome with probability . The score is . This is the formal version of steps 1 and 2 in the walkthrough, where and the outcome was rain or dry.
Step 2 in symbols: the average payment
The average payment for a statement is the weighted sum in the definition. For the rain example with the Brier score, , , and
Step 3 in symbols: the Brier score is strictly proper
Expand the expression from step 2, now writing for the true chance of rain in general, so that is the chance of no rain:
The second form comes from expanding the brackets: , and . The term is never positive, and it equals zero only when . So the average is largest, and equal to , exactly at the truth. For this is , matching step 5.
Step 4 in symbols: the log score is strictly proper
The logarithmic score is , the log of the probability the forecaster gave to the outcome that happened. Its expected value under the truth is . Subtract the expected value of the honest statement . The first sum, , is the negative of the entropy of :
This is the Kullback–Leibler divergence. It is never negative, and it is zero only when . 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 , any statement has average payment , whether , or . 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
The true chance of heads is . The forecaster reports for heads, and the Brier score is , with for heads and for tails.
- Report . Heads gives . Tails gives .
- Average: .
- Report . Heads gives . Tails gives .
- Average: .
- Check: is smaller than , so overstating the chance costs the forecaster.
- Interpretation: the honest 0.5 is the best report, which is what the formula predicts with .
Now use the log score with base 2, , and a true chance of rain . The base changes the size of the numbers, not the ranking.
- Report . Rain gives , dry gives .
- Average: .
- Report , the honest value. Rain gives , dry gives .
- Average: .
- Report . Rain gives , dry gives .
- Average: .
- Check the order: (honest) beats (unsure) beats (overconfident).
- 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.
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, , and compare their average scores.
- Forecaster A, day 1: , rain, so .
- Forecaster A, day 2: , dry, so .
- Forecaster A, day 3: , dry, so .
- Forecaster A's total is , so the average is .
- Forecaster B says 0.5 each day. Each day scores , so the average is .
- Check: A's average is larger than B's , so A's forecasts were better on this run.
- 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 , so A's total is , and the average is . 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 . 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 , and a scoring rule pays a number when outcome occurs.
- The expected score under the truth is , a weighted average built from expected values.
- A rule is proper if the honest statement maximises this average, and strictly proper if it is the only maximiser.
- The Brier score is strictly proper, with expected value 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 is largest when the forecaster reports , 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 . What is the expected score if she reports 0.25, and what if she reports 0.5?Show answer
Reporting 0.25 gives by the formula. Reporting 0.5 gives . The honest report scores higher, against .
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 , every report has the same expected payment . 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
- Scoring rule (Wikipedia): https://en.wikipedia.org/wiki/Scoring_rule
- Brier score (Wikipedia): https://en.wikipedia.org/wiki/Brier_score
- Gneiting and Raftery (2007), Strictly Proper Scoring Rules, Prediction, and Estimation: https://doi.org/10.1198/016214506000001437