Methods on pandas objects become available as soon as stakepd is imported:
import pandas as pd
import stakepd as spd
pd.Series([2.0, 3.5, 1.8]).implied_probability()
Looking for prediction-market data? See the kalshi_data reference.
Every stakepd method and function on its own page, with parameters, return values and examples.
Methods on pandas objects become available as soon as stakepd is imported:
import pandas as pd
import stakepd as spd
pd.Series([2.0, 3.5, 1.8]).implied_probability()
Looking for prediction-market data? See the kalshi_data reference.
Move between decimal, fractional and American odds and implied probabilities. Available on every pandas.Series and pandas.DataFrame once stakepd is imported.
pandas.Series.implied_probability | Calculate the implied probability from a Series of odds. |
pandas.DataFrame.implied_probability | Calculate the implied probability from a DataFrame of odds. |
pandas.Series.odds | Convert a Series of implied probabilities to the specified odds type. |
pandas.DataFrame.odds | Convert a DataFrame of implied probabilities to the specified odds type. |
pandas.Series.convert | Convert a Series between odds types, or between odds and implied probability. |
pandas.DataFrame.convert | Convert a DataFrame between odds types, or between odds and implied probability. |
pandas.Series.as_fraction | Convert fractional odds from floating point to fractions in string form. |
pandas.Series.as_float | Convert fractional odds from fraction strings to floating point. |
Measure and remove the bookmaker’s margin from a market’s prices.
pandas.Series.overround | Calculate the overround of a Series of odds. |
pandas.DataFrame.overround | Calculate the overround of each row of a DataFrame of odds. |
pandas.Series.vig | Calculate the vigorish (juice) of a Series of odds. |
pandas.DataFrame.vig | Calculate the vigorish (juice) of each row of a DataFrame of odds. |
pandas.Series.devig | Remove the vig from a Series of implied probabilities. |
pandas.DataFrame.devig | Remove the vig from each row of a DataFrame of implied probabilities. |
Module-level functions, called as spd.<name>(...).
stakepd.payout | Calculate the payout of a bet, or of a Series of bets. |
stakepd.profit | Calculate the profit of a bet, or of a Series of bets. |
stakepd.kelly_criterion | Calculate how much to stake on a positive-EV bet using the Kelly criterion. |