Notes#
For a market where exactly one outcome wins, the implied probabilities of all outcomes should add up to 1. Bookmakers price them so they add up to more than 1, and the excess is their margin:
| Quantity | Formula | Method |
|---|---|---|
| Overround | sum(p) - 1 | overround |
| Vig (juice) | 1 - 1 / sum(p) | vig |
| Devigged probability | p / sum(p) | devig |
Examples#
import pandas as pd
import stakepd as spd # importing stakepd adds these methods to pandas objects
Example:
implied_probabilities = pd.Series([0.8, 0.5, 0.3])
devigged_probs = implied_probabilities.devig()
print(devigged_probs)
Output:
0 0.5000
1 0.3125
2 0.1875
dtype: float64
From odds:
devig works on implied probabilities, so convert odds first:
odds = pd.Series([2.0, 1.5, 3.0])
fair = odds.implied_probability().devig()