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
- Decimal odds d: probability = 1 / d. Odds of 1.25 imply 80%.
- American odds, negative (−400): probability = 400 / (400 + 100) = 80%.
- American odds, positive (+300): probability = 100 / (300 + 100) = 25%.
- Fractional odds a/b: probability = b / (a + b). Odds of 1/4 imply 80%.
- Margin: the sum of all sides minus 100%. Here 80% + 25% = 105%, a margin of 5%.
- Margin removed (proportional method): each side divided by the sum: 76.2% and 23.8%.
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.