Math & ModelsUpdated 22 Jul 20262 min read

Log Loss

Log loss answers a narrow question well: when your model said a number, how surprised should it have been by what happened?

log loss = −(1 ÷ n) × Σ ln(probability assigned to the actual outcome)

Say 70% for a home win that lands and you score −ln(0.70) = 0.357. Say 30% for the same result and you score −ln(0.30) = 1.204. Lower is better; perfect foresight scores zero.

#Forecast probabilityResultBrier contribution
10.0625
20.1600
30.3025
40.1600
50.4900
60.0400
Brier score
0.2025

Base-rate baseline 0.2500 — lower is better.

Log loss
0.5892

Base-rate baseline 0.6931.

Skill vs base rate+19.0%

6 forecasts, of which 50% happened. Your probabilities beat simply predicting that base rate every time.

A handful of forecasts cannot separate skill from luck whatever the score says. Treat anything under a few hundred as a sanity check, not a verdict.

Why the logarithm#

Because it makes confidence expensive.

Under the Brier score, being 99% certain about something that fails costs (0.99 − 0)² ≈ 0.98 — bad, but bounded. Under log loss it costs −ln(0.01) = 4.6, roughly thirteen times the penalty of a lukewarm 60% miss. Claim certainty and be wrong often enough and log loss will bury you, which is exactly the behaviour you want from a metric that guards a staking decision. A confidently wrong 95% is the single most expensive thing a betting model can produce, because it is the forecast you stake most on.

Taken to the limit, a 0% forecast for something that happens is infinitely wrong. Real implementations clip probabilities marginally away from 0 and 1 so a single row cannot dominate the average — ours included.

Both metrics, on purpose#

Log loss and Brier are both proper scoring rules: each is minimised by reporting what you genuinely believe, so neither can be gamed by hedging everything toward 50%. That property is what makes them usable at all.

Where they disagree is temperament. Brier is forgiving and stable; log loss is unforgiving about overconfidence. A model that is well calibrated in the middle of the range but occasionally too sure at the extremes will look respectable on Brier and poor on log loss — and that gap is diagnostic, not noise. It is telling you precisely where the model is overreaching.

Tofiko's Model Accuracy view showing calibration and scoring metrics for the model's forecasts
Tofiko's Model Accuracy view scores real pre-kickoff forecasts. Scoring says whether the probabilities are honest — it does not say whether they beat the market, which is a separate question.

What a score cannot tell you#

Two limits worth holding onto.

A good score is not a profit. Scoring measures whether your probabilities are honest, not whether they are better than the price you can bet at. A model can be beautifully calibrated and still lose money against a sharper market — which is why closing line value is the metric that answers the betting question, and why our own Performance page reports both.

A small sample tells you nothing. A few dozen forecasts cannot separate skill from luck at any confidence worth acting on. See sample size for how many you actually need — the honest answer is more than almost anyone has.

Score your own forecasts with the Brier and log loss calculator, and read how our models work for what goes into the numbers being scored.

Related

Frequently asked questions

What is log loss?

Log loss is the average negative logarithm of the probability a model gave to what actually happened. Forecast 70% for an event that occurs and you score −ln(0.70) = 0.357. Lower is better, and a perfect forecaster scores zero.

What is a good log loss score in football?

It depends entirely on how predictable the fixtures are, so the number is only meaningful against a baseline. Compare it with the log loss you would get by predicting the base rate every time — if you cannot beat that, the forecasts carry no information.

What is the difference between log loss and Brier score?

Both reward honest probabilities, but log loss is logarithmic and Brier is quadratic. A confident miss costs a bounded amount under Brier and an enormous amount under log loss, which is why log loss is preferred when confident errors are expensive.

Why is log loss infinite for a wrong certainty?

Because the logarithm of zero is undefined. Assigning 0% to something that happens is infinitely wrong — a model that claims certainty has no way to be forgiven. In practice probabilities are clipped slightly away from 0 and 1 so one row cannot swallow the whole sample.