
Log loss evaluates the probability assigned to what actually happened. A football forecast that gives the eventual result a very small probability receives a large loss, even if its headline selection looked plausible. Lower average loss is better on the same matches, with the same outcome definitions and calculation rules.
That makes it useful when two prediction services have similar pick accuracy but express very different levels of certainty. It requires saved probabilities. A list of team names, winners or historical strike rates cannot supply the missing numbers.
Start with the eventual result’s probability
For a regulation-time home/draw/away forecast, retain all three probabilities before kickoff. When the match ends, identify the probability attached to the observed category. The single-match loss is the negative natural logarithm of that probability. A result assigned 50% produces about 0.693; one assigned 10% produces about 2.303. Both are dimensionless scores.
The negative sign makes the loss non-negative for valid probabilities. As the probability of the observed outcome approaches zero, the penalty grows. Giving a result 100% when it happens gives zero loss for that match, but giving an impossible zero to a result that subsequently happens creates an unbounded mathematical loss.
The scikit-learn reference documents the natural-log convention, mean aggregation and numerical clipping used by its implementation. Those implementation details matter when reproducing a published number. Software may protect calculations from a logarithm of zero, but the report should disclose that handling.
Equal accuracy can hide a different probability record
Consider an invented binary home-win example. Four matches contain three home wins followed by one match without a home win. Method A assigns an 80% home-win probability every time. Method B assigns 60% every time. Both select a home win four times and both get three of those selections right, so both have 75% selection accuracy.
| Hypothetical method | Loss on each home win | Loss on the non-win | Average over four |
|---|---|---|---|
| A, 80% home win | 0.223 | 1.609 | 0.570 |
| B, 60% home win | 0.511 | 0.916 | 0.612 |
A has the lower loss in this particular four-match example. Its greater confidence helps on the three successes enough to offset its larger penalty on the failure. The arithmetic does not say that confidence is always better. It depends on whether the probabilities are justified by subsequent outcomes.
Now replace A’s 80% with 99%, leaving exactly the same four results. Its average becomes approximately 1.159, despite the same 75% pick accuracy. The one non-win receives a probability of 1%, producing a loss of about 4.605. This is the practical reason to look beyond a correct-pick count when a service publishes precise probabilities.
Do not confuse a binary example with a three-way forecast
A home-win/non-home-win forecast has two categories. A home/draw/away forecast has three. In the binary example, a draw and away win both belong to non-home-win. In a three-way evaluation they are separate, and the model must say how the remaining probability is divided.
Suppose a fictional model issues 50% home, 30% draw and 20% away. A draw produces a loss of about 1.204, using 30%. Do not use the combined 50% probability of a non-home-win. That would evaluate a different event and flatter the reported score.
Store category labels explicitly. A file containing three unnamed columns can be silently misread if a calculation assumes a different order. Check that every probability is between zero and one and that the complete mutually exclusive result distribution sums to one, allowing only a disclosed numerical tolerance. Correct genuine data errors at source rather than quietly rescaling unexplained values.
Compare matched records before comparing scores
A lower number from a different fixture list is not a clean head-to-head comparison. One service may cover only short-priced favourites while another forecasts every league match. Different competitions and publication cutoffs can change the difficulty of the task.
Choose the shared fixture cohort and forecast time before inspecting results. Preserve the original probabilities, final outcome, competition and model version for each row. If a service revises a forecast after lineups, decide whether the comparison concerns the earlier or later publication window. Do not give one participant a later information set without saying so.
Report missing probabilities separately. An absent row has no calculable log loss, and removing difficult matches after results are known can distort a mean. A practical record shows how many fixtures were eligible, how many had usable probabilities and why any were excluded. Use the backtest checks for the wider question of whether the forecasts could genuinely have existed at the stated time.
Keep a simple reference forecast
A score becomes easier to interpret beside a benchmark chosen in advance. An equal-probability three-way forecast assigns one third to each category and scores about 1.099 on every match. It is a transparent arithmetic reference, not a claim that football outcomes are equally likely.
A stronger comparison might use a frozen historical-frequency method or another documented baseline. Its input period must end before the evaluated fixtures. A baseline estimated using the final outcomes of the evaluation sample receives information unavailable at forecast time and changes the comparison.
Do not compare the binary equal-probability score of about 0.693 with the three-way value of about 1.099 as though they measure rival models on the same task. Category definitions are part of the metric. Nor should a report select whichever benchmark happens to make its preferred service look strongest after seeing all results.
Inspect the large losses without deleting them
One surprising result can contribute a substantial share of total loss. Show the average alongside the sample size, and inspect the largest contributing rows. They may reveal excessive certainty, a mislabeled category, a data import error or simply an unlikely football outcome.
These explanations require evidence. A correctly recorded upset should remain in the evaluation. If a genuine data error is corrected, preserve the original value, reason and revised calculation so the change can be checked. Reporting an additional breakdown by competition or model version can help identify where a weakness occurs, but small subgroups need cautious interpretation.
A short sample does not establish a durable ranking. Shared fixtures also make model errors related, so a comparison should examine paired losses on those fixtures rather than treating the two averages as unrelated collections. Any uncertainty procedure needs its assumptions stated. This article does not calculate a confidence interval or an OptaTips performance result.
Separate probability quality from a betting return
Log loss contains no odds, stakes, commission or settlement deductions. A lower score therefore cannot establish a profitable betting strategy. It assesses probabilistic forecasts against observed outcomes under a chosen evaluation design.
Two services can rank differently on pick accuracy, log loss and realised return because those measures answer different questions. A report should show the relevant evidence for each claim instead of using one number as a substitute for all three. Calibration remains useful alongside loss because it asks how groups of stated probabilities compare with observed frequencies. The probability explainer introduces that distinction.
When reading a published log-loss claim, ask for the event definition, original probability rows, shared fixture scope, aggregation method and treatment of zero probabilities. If those are unavailable, the figure may be impossible to reproduce. A precise-looking decimal is only as informative as the record behind it.
Comments 0
No comments yet.