FAILURE MAP
← Case archive

FA-84579 / Betting odds conversion / Member archive

Arbitrage scan keeps the worst price per outcome · case 04

Genuine sure bets are missed because the lowest quote is used.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

Arbitrage finder. books rows are [bookmaker, outcome, decimal price]. For each outcome take the highest price; ties go to the alphabetically first bookmaker. S = sum of 1/best price. If S >= 1 return ["no arb"]. Otherwise stake_i = floor(total * (1/d_i) / S) cents; guaranteed return = min over outcomes of floor(stake_i * d_i). Return ["arb", [[outcome, bookmaker, stake] sorted by outcome], guaranteed return - sum of stakes].

Why this case matters

Odds comparison tools flag sure bets and split a bankroll across bookmakers.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control two-way arb["no arb"]["arb", [["away", "bravo", 5000], ["home", "alpha", 5000]], 500]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 ↗