BoxerbookAI

Tool

Odds converter: implied probability with the margin removed

Type the odds of both sides in any format: decimal (1.25), American (-400, +300) or fractional (1/4). You get the implied probability of each side, the margin, and the probabilities with the margin removed.

The formula

How to read the result

The probability with the margin removed is the market's forecast. On 1,723 boxing bouts it was close for favourites priced at 60–80% and too low for heavy favourites: those priced at 90–95% won 97.5%. The tables are in How accurate are boxing odds?

The proportional method is the common one, not the only one: other methods move a little more probability from the long shot to the favourite.

In code

python · implied_probability.py
"""Odds to implied probability, with the margin removed. No network, no dependencies."""

def implied(odds):
    """Decimal odds (1.25), American odds ("-400", "+300") or fractional odds ("1/4") -> raw implied probability."""
    s = str(odds).strip()
    if "/" in s:
        num, den = s.split("/")
        return float(den) / (float(num) + float(den))
    if s[0] in "+-":
        v = float(s)
        return 100 / (v + 100) if v > 0 else -v / (-v + 100)
    return 1 / float(s)

def no_margin(*odds):
    """Probabilities of all outcomes of one bout, scaled to sum to 1 (the proportional method)."""
    raw = [implied(o) for o in odds]
    return [p / sum(raw) for p in raw]

if __name__ == "__main__":
    a, b = no_margin("-400", "+300")
    print("raw: %.1f%% + %.1f%% = %.1f%%" % (100 * implied("-400"), 100 * implied("+300"), 100 * (implied("-400") + implied("+300"))))
    print("margin removed: %.1f%% / %.1f%%" % (100 * a, 100 * b))        # 76.2% / 23.8%

For the consensus of many quoting firms on a real bout, read market.p_a from the API.