Kelly Criterion Sports Betting

Jul 11, 2016 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.

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.

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.

The Kelly Criterion is often a hot topic of debate amongst bettors. Pinnacle has published numerous articles on the subject, from simple explanations to complex analyses. How does a fractional approach to the Kelly Criterion work and is it the best option for serious bettors? Read on to find out. If you do not bet exactly $57.00, you should bet less than $57.00. The outcome of this bet is assumed to have no relationship to any other bet you make. The Kelly criterion is maximally aggressive — it seeks to increase capital at the maximum rate possible. Professional gamblers typically take a less aggressive approach, and generally won't. The formula was derived by J.L. Kelly, Jr in 1956. The formula has a number of applications, one of which is sports betting. Australia Sports betting has previously published a series dedicated to the Kelly Criterion, which can be followed using the links below. Introduction; Derivation; Backing and Laying Bets with Betfair.

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*}

Kelly Criterion Sports Betting

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)
ProbabilityProbability between 0.0 and 1.0
Kelly BetStake 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

Kelly Criterion Calculator

Betting

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 Against

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 PlanAverage Balance after 1.000 Bets
Kelly Criterion2.65
Proportional Staking1.70
Flat Staking1.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.

It is in the heart of every bettor to see their bets turn into fruition. But not once or twice they have been forced to contend with multiple bet failures. Unprecedented turns of events has seen many quitting betting or seek alternatives due to excessive loss of money. But must things be so? Must one always suffer from a backlash of poor betting? The answer could be simple as it gets. It is about time we take a look at Kelly’s criterion.

Developed by J.L. Kelly, in 1956, the mathematical formula has over the years served as the best alternative of maximizing profit while minimizing risk. Unlike other betting criteria which never bother on bettors money, Kelly’s criterion have become the bettors choice due to its ability to bridge the gap between losing a bet and losing the entire bankroll.

Kelly’s Formula

Kelly’s formula directs a bettor on the most appropriate amount to bankroll a certain bet by using the available odds and the chances of winning.

F= (BP - Q) / B

Kelly Criterion Sports Betting Against

B = the Decimal odds -1
P = the probability of success
Q = the probability of failure (i.e. 1-P)

Extensive explanation of the inputs

“B” is the entire amount one can win after a particular bankroll. In the “b to 1 ” system it is simply the stated odd less one, that is, if a speculated winning team carries odd @5, and you place a bet of $10, you win +$40

“P” is likelihood of a particular bet winning. For a team having a 20% winning chance, the probability becomes 0.2.

“Q” is the chance of losing in a particular bet. That is, in the case of a team that has winning probability of 20% the same team stands 80% chance of losing. “Q” therefore becomes 0.8. Which means it can be simplified into 1 - “P”

“F” is Kelly’s advice on the appropriate amount to bankroll a particular bet.

Application of the formula

Take an instance of a match between two teams, say Liverpool and Barcelona with odds of 2.8, 3.2, and 2.4 for win, draw and win respectively. Given that Liverpool’s probability to win is 25%, draw is 40% and that for FC Barcelona winning is 35%, using “b to 1” decimal system it follows that:

Liverpool win: FL [0.25(2.8 - 1) - 0.75] / (2.8 - 1) = - 0.375

Game Draw: FD [0.4(3.2 - 1) - 0.6] / (3.2 - 1) = 0.1273

Barcelona win: FB [0.35(2.4 - 1) - 0.65] / (2.4 - 1) = - 0.1142

Interpretation of the values

As an investor the best option for this bet would be Draw. The negative value for Barcelona and Liverpool win implies neither of the team has a sure winning potential and should not be considered while betting. With the above returns you stand to lose 11.4% of your stake for bets placed on Barcelona and 37.4 % for bets laid for Liverpool.

Pros

Kelly’s formula is fairly comprehensible and all is required from a bettor is to hunt for teams and feed the data in the formula to screen most appropriate amount to wage on a team. The criterion also ensures that a potential investor suffers the least risk at the expense of maximizing profits.

Using Kelly Criterion Sports Betting

Cons

Though the point behind the criterion is to ensure there is minimum risk in the hunt for maximum profits, mistakes arising due to improper computation while using the criterion, may cost ones money to the extent of impoverishing their accounts. Secondly, since bets are never guaranteed, you stand to lose a huge amount of bankroll in the event that the formula proposes heavy betting on one outcome.