Skip to content

Brier Score Grades a Classifier's Probabilities

The Brier score grades probability forecasts: for a yes-or-no outcome it is the mean squared gap between each forecast probability and what happened. In symbols, BS = (1/N) Σ (yᵢ − p̂ᵢ)², where yᵢ is 1 if the event happened and 0 if not. The scikit-learn user guide, citing Brier's 1950 definition, says that "the lower the value the better the probability estimates are (the mean squared difference is smaller)," and that the score is "a strictly proper scoring rule, meaning that it achieves the best score only when the estimated probabilities equal the true ones." In expectation, that is: the guarantee is about the average over all the outcomes the world could produce, and it rewards honest probabilities, not confident guessing.

Try it by hand. A classifier says 0.8 for the same kind of event five times. The event happens in four of the five. Each time the event happened, the forecast missed by 0.2, which costs 0.2² = 0.04. The one time it did not happen, the forecast missed by 0.8, which costs 0.8² = 0.64. The average is (4 × 0.04 + 0.64)/5 = 0.80/5 = 0.16. Now compare other forecasts on the same five outcomes. Always saying 0.5 scores 0.25. Always saying 1.0, certain of the event every time, scores (4 × 0 + 1)/5 = 0.20. Saying 0.9 scores 0.17, and saying 0.7 also scores 0.17. On these five outcomes the best constant forecast is the observed frequency, 0.8, which scores 0.16: the score of a constant forecast p here is (p − 0.8)² + 0.16, lowest at p = 0.8. Strict propriety is a statement about expectation, which is a different thing. If the true chance of the event were q, the expected score of forecasting p is (p − q)² + q(1 − q), uniquely lowest at p = q, so shading your forecast away from the truth cannot help on average. A finite sample can still favor a different number: with a true q of 0.5, four events in five can happen by luck, and then 0.8 would score best. The outcomes here are invented.

The single-miss cost is large for a single forecast: 0.8 on an event that fails costs 0.64. But a probability of 0.8 is not claiming certainty. Over five cases where one fails, the score of 0.16 beats both the vague 0.5 and the overconfident 1.0.

One convention warning from the same guide: with more than two classes the Brier score sums over the classes and lies in [0, 2], and in the binary case it is usually divided by two to range from 0 to 1, as the library's scale_by_half option controls. The formula above is the plain binary form. Check which convention a tool uses before comparing numbers.

The trap: treating a probability below 1 as proven wrong whenever the event fails once. A forecast of 0.8 is expected to fail one time in five. Judge forecasts over many cases, and the Brier score is one way to do it.

Prof Rod's rule: grade probabilities with a proper score, never by counting how often the favorite won.

scikit-learn user guide, Model evaluation, Section Brier score loss (citing Brier, 1950)