Free · Exact + clipped · Browser-only

Football log loss calculator for 1X2 predictions

Score one complete home–draw–away forecast with the logarithmic rule. Inspect the exact penalty, the declared clipping rule and what the same probabilities would score under every result.

Canonical publication record

Abstract

A deterministic browser calculator for exact and explicitly clipped logarithmic loss on one complete home-draw-away forecast, including natural-log nats, ignorance bits, the uniform 1X2 reference and every possible result.

Author and publisher
Football Proof AI
Technical report
football-log-loss/1.0.0
Published
Last modified
Release status
Current release
Review status
Editorial technical note; not externally peer reviewed
Version history
  1. football-log-loss/1.0.0 : Initial public release.

Interactive · Formula football-log-loss/1.0.0

Expose the probability behind every log-loss score

Set one complete home–draw–away forecast and the result. Linked controls keep the total at 100%, and every calculation stays in this browser.

Input as
Linked probability total100.0%Changing one outcome redistributes the other two proportionally.
Actual match result

Observed result · Home win

Probability assigned to the result54.0%
Exact natural-log loss0.6161860.888969 bits · no clipping
Explicitly clipped loss0.6161860.888969 bits · epsilon 1e-15
Uniform 1X2 referenceln(3) = 1.0986121.584963 bits · exact row difference -0.482426

Lower loss rewards more probability on the observed result. ln(3) is only the same-row uniform reference—not a universal model-quality threshold.

Same forecast · Every possible result

One probability vector produces three counterfactual losses

The selected row uses only the probability assigned to what happened; the complete 1X2 vector is still required and must sum to one.

Possible resultAssigned probabilityExact natural logExact bitsClipped natural log
Home winSelected result54.0%0.6161860.8889690.616186
Draw26.0%1.3470741.9434161.347074
Away win20.0%1.6094382.3219281.609438

Deterministic calculation passport

Keep the log base, epsilon and full probability vector with the score

The export contains no upload, fetch, generated timestamp or hidden model claim. The share fragment does not create a duplicate indexable URL.

Browser-only calculation · no data leaves this page.

Exact scoring rule

How is football prediction log loss calculated?

Select the probability assigned to the result that actually occurred, write it as a decimal and take its negative natural logarithm. A complete 1X2 distribution must still sum to one, even though a single row's loss uses only the observed class.

One-match multiclass log loss−ln(pactual)

For a collection, average the row losses over the same pre-declared matches. Never compare averages built from different fixtures or exclusions.

Reference, not a quality label

The uniform 1X2 baseline is ln(3) = 1.0986

A 33.33% / 33.33% / 33.33% forecast scores approximately 1.0986 nats regardless of the result. That is a useful arithmetic check, not a universal “good score” threshold. League priors or time-matched market probabilities are usually stronger reference forecasts.

Uniform 1X21.0986 natslog₂(3) = 1.5850 bits
Perfect exact row0 natsObserved outcome assigned 100%
Impossible exact rowObserved outcome assigned 0%

Overconfidence is expensive

Log loss penalty by observed-outcome probability

The penalty rises slowly near sensible probabilities and very sharply as the probability of what happened approaches zero.

Probability given to resultExact log loss (nats)Interpretation
100%0.0000A certain forecast that occurs
80%0.2231A strong probability that occurs
60%0.5108More likely than not
50%0.6931Even chance in a binary framing
33.33%1.0987Approximately uniform in 1X2
20%1.6094An unlikely outcome occurs
10%2.3026A low-probability miss
1%4.6052A severe overconfidence penalty
0%Impossible under the forecast

Exact result and implementation result

Zero probability means infinite exact loss; clipping must stay visible

Software often clips probabilities to a small interval before applying the logarithm. This prevents infinity in finite computation, but it changes the score. The calculator therefore preserves the exact result and displays a separate symmetric clipped result using your chosen ε: max(ε, min(1 − ε, p)).

The default ε of 10−15 is an explicit calculator convention, not a universal football standard. Publish the value whenever clipped scores are compared.

Same information, different units

Natural-log loss and ignorance bits

Natural logarithmNats

Uses ln and is the primary convention in this calculator.

Base-2 logarithmBits

Uses log₂ and is sometimes called ignorance score.

The rankings are identical because the scales differ by a constant factor. The numeric values are not directly comparable unless the logarithm base is the same.

One metric cannot answer every question

Log loss versus Brier score and calibration

Log loss

Uses the observed outcome's probability and heavily penalizes near-zero misses.

Brier score

Uses squared errors across all three outcome probabilities and has a bounded range.

Calibration

Checks whether stated probabilities match frequencies over repeated forecasts.

Hit rate

Checks only whether the highest-probability label won and discards probability quality.

Use the metric convention guide, compare two models on matched rows, or audit a complete prediction history.

Primary method record

Sources and reproducibility boundary

The calculator performs deterministic arithmetic in your browser. It does not fetch forecasts, verify when they were published, certify a model or infer profitability.

  1. Good (1952), logarithmic scoring and rational decisions
  2. Gneiting & Raftery (2007), strictly proper scoring rules
  3. scikit-learn log_loss reference
  4. Wheatcroft (2021), football scoring-rule comparison

From one row to honest evidence

Calculate here. Validate on frozen history.

An aggregate claim also needs pre-match timestamps, a complete denominator, fixed exclusions, an honest baseline and uncertainty.

Build a 1X2 forecastCompare Ranked Probability ScoreInspect calibrationUse walk-forward validationRead the responsible boundary