Kelly Criterion Sports Betting
When you place a bet on a certain outcome with a bookmaker or betting exchange you might ask yourself how much you should stake or risk and what is the optimal bet size.
There is the possibility that you risk too little and work with too small stakes. When you lose your bet you don't lose much money which is good. On the other hand, if you win, you also don't win much because your stakes are too low. In the end you spend some time and effort with sports betting but it doesn't pay off as your account doesn't improve much.
Practical application of the Kelly criterion by using it for card counting in blackjack. We will present some useful formulas and methods to answer various natural questions about it that arise in blackjack and other gambling games. Then we illustrate its recent use in a successful casino sports betting. Fractional Kelly betting is also supported. The Kelly criterion is formula that calculates the proportion of your balance to wager on a particular gamble. Learn more about the Kelly criterion.
The other is extreme is that you risk to much and place too large bets. Taking large risk is great when you win and it pays off. The problem is losing: A few lost bets can completely destroy your bankroll when you work with extremely large stakes.
Now that we understand the extreme scenarios, betting too little and betting too much, the question is: What is the optimal size for a bet?
Optimal staking has been a field of study in the area of probability theory for quite some time. In 1956 a researcher at Bell Labs named J. L. Kelly created the formula that would be known as Kelly criterion.
Definition of the Kelly Criterion
The Kelly Criterion tells you how much of your bankroll you should risk when betting on a certain outcome. The size of the bet depends on the offered odds and the probability of the outcome. The formula of the Kelly criterion defines how much of your bankroll you should bet:
begin{equation*} f = frac{p (b + 1) - 1}{b}end{equation*}
with:
p: probability of winning the bet
b = odds - 1
To give you an example: Let's assume that a bookmaker offers you to place a back bet on a certain outcome with decimal odds of 2.0 whilst the probability of the outcome is 60%.
begin{equation*} f = frac{p (b + 1) - 1}{b} = frac{0.6 * (1 + 1) -1}{1} = 0.2end{equation*}
This means that the recommended bet size for this kind of bet is 20% of your bankroll.
There are also staking variations that only use a fraction of the Kelly criterion. Popular example are half Kelly (where only half of the Kelly stake is used) or quarter Kelly (using 25% of the Kelly stake).
Calculator for the Kelly Criterion
With the following tool you can easily calculate the optimal staking for your bet. You simply need to specify the odds as well as the probability for the event:
Odds | (Odds in decimal format, e.g. 1.6, 2.0, 10.5, etc) |
Probability | Probability between 0.0 and 1.0 |
Kelly Bet | Stake as percentage of bankroll |
As a result you will get the fraction of your bankroll (percentage) that should be used for your bet.
Instead of relying on online tools to calculate the Kelly stake you can easily use a spreadsheet software or a programming language of your choice to implement the formula and calculate stakes for various scenarios.
Using the Kelly Criterion in Python
Looking at the definition of a Kelly bet for an event with two outcomes we can use the following Python function to calculate the Kelly bet:
It is basically a function that depends on two arguments: the offered odds and the probabilities. You can easily create a heat map with the odds on the x axis and the probability on the y axis which looks like the following:
The color scheme goes from red to blue. Red areas are the ones that you should not bet on, it is where the offered odds are lower than the probability. Red color means zero staking. Blue is the other extreme where you would bet almost the whole bankroll.
Using the Kelly Criterion in a Spreadsheet Software
You can also use spreadsheet software such as Microsoft Excel or LibreOffice Calc to calculate the Kelly bet. In LibreOffice Calc you can simply use the following formula and build your own Kelly Criterion calculator tool:
Comparing and Simulating Different Staking Options
Now that we have covered the basics of the Kelly Criterion you might ask yourself why it is worth using Kelly bets. There is a mathematical proof that shows that the Kelly criterion is superior compared to other staking plans which you can follow along on the Wikipedia page. However, I will use a more empirical approach to illustrate that the Kelly Criterion is better than other staking plans.
First, let's have a look at a couple of staking options that are most common in the area of sports betting. We will compare the Kelly Criterion with the following two staking plans:
Flat Staking
When you use flat staking you simply risk a fix amount per bet. Let's say 1 unit per bet. It does not rely depend on the size of your bankroll. Of course you should be able to sustain a longer period of drawdown but your bet size is not re-evaluated on a per bet basis. For most of the betting strategies that I present here flat staking is used in the backtests.
Kelly Criterion Sports Betting Expert
Proportional Staking
When following a proportional staking approach your bet size is a certain percentage of you bankroll, let's say 1% as an example. For every bet you need to take into account your bankroll and re-calculate the bet size. If your account is at 100 you would need to risk 1 unit with a 1% proportional stake. However, if your account shrinks to 80 units you would only risk 0.8 units per bet.
Simulating Betting Accounts
I will use a simple Python script to simulate how betting accounts evolve following different staking plans. First I will generate some random odds using a normal distribution with mean 2.0 and stdev 0.1:
The 1000 odds in my example are in the range between 1.70 and 2.28. I assume that the true probability of those events is always 0.5 and hence there is a 50% chance for win and lose at every bet. I will then simulate a portfolio where different staking options are used: Kelly bet, proportional of the bank and constant staking. The following functions returns the account balance after the 1000 for each of the staking options:
I can now run this simulation multiple times to aggregate some statistics. I will run it 100 times and calculate the mean value for each group of staking:
Staking Plan | Average Balance after 1.000 Bets |
---|---|
Kelly Criterion | 2.65 |
Proportional Staking | 1.70 |
Flat Staking | 1.56 |
Remember that the starting balance was 1.0 and that bets were only placed when the odds were larger than 2.0 as we assumed a 50% chance of winning. From this data it seems that Kelly criterion performs better than proportional staking and flat staking.
Bettors should always look for a mathematical edge rather than rely on their impulses. Learning how to use the Kelly Criterion, for example, is a great way for bettors to determine how much they should stake. Read on to find out.
Prior to placing a bet bettors should consider six important questions: who, what, when, where, why and how? But for this article, it is the how, as in how much to bet, we are interested in.
Popular staking method which suggests that stake should be proportional to the perceived edge.
Kelly Criterion For Sports Betting
Consider placing a bet on the English Premier League. We can adapt these questions accordingly:
- Who to bet on? Manchester United
- What to bet on? Top 4 finish
- When to bet on? Now
- Where to bet on? Pinnacle tend to offer the best odds
- Why to bet on? They seem to be under-priced
- How much? How much to bet on this outcome?
Most articles focus on the first five questions, typically using mathematical or statistical justifications on answering ‘why’ - such as the article on how to use Monte Carlo methods.
In making financial decisions, the key issue is not only finding the adequate financial products to invest in but also deciding how to subdivide one’s portfolio. Similarly, an important question for a bettor, is how much to wager?
Many papers recommend using the Kelly Criterion or a derivative of it - such as my 2013 paper appearing in the The Journal of Gambling Business and Economics. In essence, the Kelly Criterion calculates the proportion of your own funds to bet on an outcome whose odds are higher than expected, so that your own funds grow exponentially.
B = the Decimal odds -1
P = the probability of success
Q = the probability of failure (i.e. 1-p)
Using a coin as an example of Kelly Criterion staking
For example, consider you are betting on a coin to land on heads at 2.00. However, the coin is biased and has a 52% chance of ending up on heads.
In this case:
P= 0.52
Q = 1-0.52 = 0.48
B = 2-1 = 1.
This works out at: (0.52x1 – 0.48) / 1 = 0.04
Therefore the Kelly Criterion would recommend you bet 4%. A positive percentage implies an edge in favour of your bankroll, so your funds grow exponentially. You can also test the criterion for different values in this online sheet by using the code below.
Ultimately the Kelly Criterion offers a distinct advantage over other staking methods such as Fibonacci and Arbitrage methods as there is a lower risk. However, it does require precise calculation of the likelihood of an event outcome, and discipline of this method will not provide explosive growth of your bankroll.
Keep up-to-date with more top-notch betting articles by following us on Twitter @PinnacleSports.