↓ Skip to main content
All methods

pandas.Series.vig

Series method → float
Signature
Series.vig(odds_type='implied_probability')

Calculate the vigorish (juice) of a Series of odds.

The vig is the share of the total stake the bookmaker expects to keep. The Series should hold one price for every outcome of a single market.

Parameters

odds_type:{'decimal', 'fractional', 'american', 'implied_probability'}, default 'implied_probability'
Format of the odds in the Series.

Returns

float
The vigorish as a decimal.

See also

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

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

Decimal odds:

decimal_odds = pd.Series([2.0, 1.5, 3.0])
vig_value = decimal_odds.vig(odds_type = 'decimal')
print(vig_value)
Output:
np.float64(0.3333333333)

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