Annex: Statistics model — XG / gnuBG / blunderDB alignment
This page describes how blunderDB computes the figures it displays — PR (Performance Rating), Snowie Error Rate, MWC loss, luck and wins/losses — and how they line up with eXtreme Gammon (XG) and gnuBG (the open reference).
Formal definitions
PR (Performance Rating)
PR is the average equity error per counted decision, multiplied by 500 as eXtreme Gammon does:
The numerator is the sum of the errors in normalised equity (EMG at the score), each one being that of the move played in its match.
The denominator \(N_\text{compté}\) counts decisions according to XG’s rules: non-forced checker plays, doubles offered, takes and passes, and close “no double” decisions. These rules, their rationale and their limits are detailed in PR (Performance Rating).
The factor 500 is XG’s convention. It is not a conversion to millipoints: an average error of 0.010 of equity — i.e. 10 millipoints (mpt) — gives a PR of 5.0. The errors of a position, on the other hand, are properly read in millipoints, that is, in thousandths of equity: the blunder threshold below, the search filters
e>andE>, the magnitude histogram of the Stats panel.
Snowie Error Rate
Snowie ER uses the same numerator as PR, but the denominator is the number of checker plays of both players, forced moves included, with no counting rule:
Reference: gnubg/formatgs.c:415–424.
Snowie ER is more stable across tools because its denominator depends on no decision-counting rule. It serves as a cross-check metric XG ↔ gnuBG ↔ blunderDB.
Important
The “Player” filter applies to the numerator only. Selecting a player restricts the summed errors to that player’s own decisions, but the denominator stays the number of checker plays by both players, over the matches the filter retains. This is what sets the Snowie ER apart from the PR, and the reason for the following property: on a database holding only matches between two players, the sum of their two Snowie ERs is exactly the unfiltered Snowie ER.
Note
A player’s Snowie ER is typically about half their PR, because the denominator includes moves from both players while PR only uses that player’s decisions.
MWC loss (Match Winning Chance)
MWC loss expresses in percentage points of match-winning probability the cumulative effect of a player’s errors. For each decision, the EMG error is converted to MWC using the MET (Match Equity Table) at the current score:
A take or pass is converted at the cube before the double, like the doubler’s decision and like XG does. The conversion and its limits are detailed in MWC loss per decision and match chart.
Luck
The luck of a roll is the gap between what the dice gave and what they give on average:
the sum running over the 36 outcomes of the roll (30 non-double rolls for the opening play of a game, which cannot be a double). A positive value means a favourable roll. Reference: gnubg/analysis.c:199–269 (LuckNormal / LuckFirst, cubeful evaluation at 0 ply).
Important
blunderDB never recomputes luck: the built-in evaluator is not used for that. It takes verbatim the value written by the tool that analysed the match — ErrLuck for eXtreme Gammon, the LU property for gnuBG — having checked that both share the same convention (same unit, positive = lucky).
Practical consequences:
Formats that do not carry luck (BGF, Jellyfish .mat) produce no value at all.
Matches already imported have none either: luck was never stored before schema version 2.15.0, and nothing in the database allows it to be reconstructed. The source files must be re-imported to obtain it.
A missing value means unknown, never zero — zero is a genuinely neutral roll. Luck averages therefore divide only by the number of rolls whose luck is known.
A match in which every roll would have exactly zero luck is treated as unanalysed in that respect (eXtreme Gammon writes 0 both for “neutral” and for “not computed”): its rolls stay unknown. On the gnuBG side the distinction is explicit — an unevaluated roll carries
LU[-inf]— and those rolls stay unknown as well, rather than being turned into a value.
Wins and losses
blunderDB stores no winner at match level: only the points of each game are stored. The result is therefore derived at display time, by adding up the points per seat:
N-point match — winner = the player who reaches N. If nobody does, the match is unfinished (truncated log, resignation) and counts neither a win nor a loss, for anybody.
Money game (no target) — winner = whoever took the most points; on a tie, neither a win nor a loss. This is gnuBG’s session-result convention (+1 / 0 / −1,
gnubg/relational.c).
A consequence to keep in mind when reading the Players tab: wins + losses can be lower than the number of matches. The gap is the unfinished matches.
Errors and blunders
A decision counts as an error as soon as the associated equity error reaches the library’s error threshold, and as a blunder as soon as it reaches its blunder threshold. Both are set in the Library tab of the settings and are 0.050 and 0.100 EMG (50 and 100 millipoints) by default. The comparison is inclusive: an error of exactly 0.100 is a blunder at the default threshold, on every screen (breakdown by cube action, match detail, players table), and the same pair serves the status bar’s counter and the list offered after an import.
These thresholds belong to each library, and the default values are blunderDB’s own: gnuBG grades plays in three steps (0.03 doubtful, 0.06 bad, 0.12 very bad — gnubg/gnubg.c:281–286) rather than in a single category, and eXtreme Gammon draws its own at 0.020 and 0.080. The settings offer three presets: blunderDB (0.050 and 0.100), XG (0.020 and 0.080) and GNUbg (0.040 and 0.080).
Decisions counted: XG and gnuBG
blunderDB counts decisions like XG (PR (Performance Rating)). gnuBG follows other rules, so its per-decision rate cannot be compared with XG’s PR, even when computed on the same analysis:
Decision |
XG and blunderDB |
gnuBG |
|---|---|---|
Checker play |
more than one legal move, unless the analysis covers them all at the same equity to the thousandth |
more than one legal move ( |
Double offered |
always |
always |
Take, pass |
always |
always |
No double |
ND > 0 and ND − min(D/T, D/P) < 0.200 |
“close” decision according to |
The condition ND > 0 is not in the XG manual: XG does not count the “no double” of a player who is behind, and the reference matches show it.
blunderDB ↔ XG ↔ gnuBG correspondence
The metrics agree within the limits below. These are bounds verified by the test suite, not mean deviations: the test compares blunderDB’s figures match by match with those recorded for the repository’s reference matches, and fails as soon as a single deviation exceeds the bound. The XG references cover five 7-point matches, both players of each; the gnuBG references cover two of them. The version of eXtreme Gammon that produced these figures is not recorded.
XG ↔ blunderDB comparison (same analysis)
Apart from the residual deviations below, the decision counts — checker plays, doubles, takes, close cube decisions — are exact. The remaining deviations are those of XG’s display, which rounds to the millipoint what blunderDB sums:
Metric |
Maximum gap |
|---|---|
Decisions counted |
0 |
PR |
≤ 0.02 |
MWC loss (total, checker, doubles, responses) |
≤ 0.06 point |
Equity error (EMG) |
≤ 0.004 |
Known residual deviations
Four players of the reference matches deviate more, each for a cause rooted in what the file does not carry:
Unanalysed move (two players). For a move it did not rate, XG writes an error of −1000 and leaves it out of the count; this value is not read at import, and blunderDB rates the move from the stored candidates. blunderDB counts one more decision; PR deviates by up to 0.09, MWC loss by up to 0.45 point.
Bear-off judged outside the file (one player). XG counts as a decision a bear-off whose stored candidates cover all legal moves at the same equity: it judged it on evaluations the file does not keep. blunderDB counts one decision fewer; PR deviates by 0.02.
Sum of checker-play errors (one player). The counts and the cube agree; the sum of the errors of the stored moves exceeds XG’s checker-play total by a few millipoints (2.150 versus 2.147).
gnuBG ↔ blunderDB comparison (SGF import — different engines)
Metric |
Maximum gap |
Main cause |
|---|---|---|
PR (checker play) |
≤ 0.40 |
forced-move rule, equities between engines |
MWC loss |
≤ 3.5 points |
incomplete close cube decision in the SGF |
Snowie ER |
≤ 0.50 |
forced moves without analysis (SGF) |
Note
SGF files (gnuBG) do not include alternatives for forced moves, which means blunderDB cannot detect all forced moves when importing SGF. This creates a structural gap on Snowie ER (slightly different denominator).
Validating your own figures
If your PR or MWC values diverge from XG figures, check the following points:
Complete analyses — PR can only be computed on positions that have an analysis. Positions without analysis count as zero error but are not included in \(N_\text{counted}\).
XG version — XG may change its calculations between versions. blunderDB is aligned with the behaviour observed in recent versions.
Import format — gnuBG SGF files produce larger gaps on cube metrics (see table above) because the file does not include complete analyses for all cube decisions.
Database migration — After updating blunderDB, existing databases are migrated automatically. Make a backup before opening a database with a new version.
gnuBG reference
The gnuBG formulas cited on this page are found in the following source files (gnuBG repository):
gnubg/formatgs.c:399–409— error rate per decision (“Error rate per decision”).gnubg/formatgs.c:415–424— Snowie Error Rate.gnubg/analysis.c:458–462— checker-play accumulation, exclusion of forced moves (cMoves > 1).gnubg/analysis.c:1430–1474— Per-decision EMG → MWC conversion.gnubg/analysis.c:1449–1464— MWC loss accumulation (eq2mwc).gnubg/eval.c:5088–5100—isCloseCubedecisionpredicate.