↓ Skip to main content
All methods

pandas.Series.devig

Series method → Series
Signature
Series.devig()

Remove the vig from a Series of implied probabilities.

The probabilities are rescaled so they add up to 1, which gives an estimate of the fair (no-margin) probability of each outcome.

Returns

pandas.Series
Devigged implied probabilities as float decimals, adding up to 1.

See also

pandas.DataFrame.devig
Remove the vig from each row of a DataFrame of implied probabilities.
pandas.Series.vig
Calculate the vigorish (juice) of a Series of odds.
pandas.Series.overround
Calculate the overround of a Series of odds.
pandas.Series.implied_probability
Get implied probabilities from odds first.

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:

QuantityFormulaMethod
Overroundsum(p) - 1overround
Vig (juice)1 - 1 / sum(p)vig
Devigged probabilityp / 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()

This method is also covered, alongside the rest of the module, in the overview guide.