FAILURE MAP
← Case archive

FA-84778 / Betting odds conversion / Member archive

Draw-no-bet price derived by renormalising home and away · case 03

Draw-no-bet prices ignore the draw refund value in the stated formula.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

Derive secondary markets from 1X2 decimal prices [home, draw, away], keeping the original margin. Draw no bet side price = side * (1 - 1/draw). Double chance for two outcomes p, q = p * q / (p + q): 1X from home and draw, 12 from home and away, X2 from draw and away. Return a dict with keys dnb_home, dnb_away, 1X, 12, X2, values rounded half up to two decimals.

Why this case matters

Sportsbooks price derived markets from the main 1X2 line.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
control balanced match{"12": "1.36", "1X": "1.40", "X2": "1.55", "dnb_away": "2.06", "dnb_home": "1.83"}{"12": "1.36", "1X": "1.40", "X2": "1.55", "dnb_away": "2.06", "dnb_home": "1.72"}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗