Theory behind derivation of Kelly Criterion
Table of contents
Open Table of contents
Definition
If was published by John Kelly in 1956.
The Kelly Criterion is the rule that says what proportion of your wealth f should you bet on a double-or-nothing bet:
where is the fraction of your wealth to bet, is the probability of winning, and is the win-loss odds. Essencialy is the edge and is the odds. So what the formula is saying is bet edge over odds.
Essencially the formula provides for the optimal strategy for maximizing the long-term growth rate of your wealth in a game with favourable odds.
It builds upon the work of Daniel Bernoulli who worked out the St. Petersburg Paradox, a lottery with inifinite expected payout, by introducing a utility function that the player will maximize.
St. Petersburg Paradox
In the St. Peterburg Paradox, a player is not willing to pay more than $10 to play the game.
Basic idea
The basic concept behind the formula is that someone who wants to maximize the long-term growth rate of their wealth should bet a constant fraction of their wealth on each bet, defined by the function where p is the probability of winning. The formula assumes a log utility function.
If a player bets too high of a fraction, he risks ruin. If he bets too low, he won’t maximize his long-term growth rate.
While is it true that the expected value of the game goes up with the bet size, the probability of ruin also goes up. The odds play a role, since the higher the odds the higher the fraction of wealth that should be allocated to a single bet.
Example
Suppose you have a 60% chance of winning, and the odds are 1:1, and you have $1000 of initial wealth.
- Then the Kelly Criterion says you should bet 20% of your wealth.
- Versus bet all at each stage.
Why? How can we calculate probability of ruin? Case 2 you have 99.9963% probability of ruin.
Big-O and little-o
Before we learn how to derive the formula, we need to learn about Big-O and little-o notation, since we will be dealing with approximations. Considering we start with an arbitrary complicated function , we want to write it as an approximation plus an error . We want the approximation to be simple, and the error to be small. So we need a way to say the error is small without getting into the details of what the error is and how is it defined. This is where Big-O and little-o notation comes in.
Big-O informally means “up to the same general size as” amd little-o will mean “grows more slowly than”. So, for a large enough , is bounded by a constant times , we write . If however, goes to zero as goes to infinity, we write .
So for example and vanishes as goes to infinity.
Mean rate of return
You have found a bet where you have an edge and you can play repeatadly, and you have decided to bet a constant fixed fraction of your wealth on each bet. What is the mean rate of return of your wealth?
So formally, it’s simple: if starting wealth is , then the wealth after bets is , where is the outcome of the -th bet. Here is the random variable realization of the bet .
Now we find an issue - repeated multiplication. Statistics is all about sums, not products. So we take the logarithm of both sides, turning the multiplication into addition, by using a trick that :
We are not out of the woods yet, and it is still an ugly equation. On to our next trick in the toolbox - the Law of Large Numbers, that states that if is a random variable then the num of independent samples boils down to where is the expected value or average of . So by applying this, we can write:
All the steps except the last rely on straightforward algebra manipulations, except the last step. To understand why holds, we need to delve into the properties of exponential functions and remember the concept of in asymptotic notation. Let’s break it down:
-
Exponential Function Expansion: The term can be interpreted as an exponential function with a sum in the exponent. We can use the property of exponentials where to rewrite this. Applying this to our equation gives:
-
Understanding in Exponential Terms: The term represents a quantity that tends to 0 as tends to infinity. In the context of exponential functions, approaches 1 as becomes large. This is because , and is essentially raised to a power that is getting closer and closer to 0.
-
Approximating : For sufficiently large , can be approximated as . This is based on the fact that can be expanded as a series , and for very small (like ), the higher-order terms become negligible.
-
Substituting Back into the Equation: Replacing with in our original expression, we get:
-
Final Equation: Substituting this back into the original equation gives us:
The key step in this derivation is the approximation of as , which is valid under the assumption that represents a quantity that becomes very small. So given that in the long run vanishes, our networth is multiplied by approximately on each bet. So the mean rate of return is .
The problem of Variance
The problem we now have to deal with now is variance. There can be large fluctuations on the way your path to the long term average. So we need to find a way to deal with variance.
Lets first define some terms:
- Expected Value: This is what people call the average or mean. Key fact to keep in mind is that the expected value of the sum of Random Variables is the equal to the sum of expected values. So
- Deviation: This is basically the difference between the actual value and the expected value. So
- Variance: This is the expected value of the square of the deviation. So . It has some nice properties, one of which is that the variance of the sum of independent random variables is the sum of the variances. So
- Standard deviation: This is the square root of the variance. So
So, with that out of the, if we have a normal distribution with a measurable standard deviation we are in luck, since we know that 95% of the time the value will be within 2 standard deviations of the mean. Here we take advantage of another trick in our math toolbox, the Central Limit Theorem, which states that the sum - or average - of a large number of independent and identically distributed random variables will be approximately normally distributed, regardless of the original distribution of the original Random Variables. Note that the Central Limit Theorem applies to the sum or average of Random Variables, not to individual observations. Also note that the number of Random Variables needs to be sufficiently large, and that some distributions converge faster than others.
Going back to our average return equations, we saw that the log of our networth after many bets has the sum of many independent measurements of log(X). Hence, by the CLT, the log of our networth after many bets is approximately normally distributed. So we can use the normal distribution to estimate the probability of ruin.
In practice, lets estimate the log of our networth and take the exponential. We can see and measure . Lets name this expected value for instantaneous rate of return. We can also measure the standard deviation of the log of our networth, by simply taking the variance and taking it’s square root. Lets call this value for volatility. The variance is .
Taking that together with the fact that both expected values and variances sum, we find that the sum of realizations of has an expected and a variance of . So the standard deviation of the sum is .
Taking a look at a z-table, we find for instance that the 10th percentile is 1.28 standard deviations out. So we can say that the probability of your networth being in the 10th percentile after bets is where is the cumulative distribution function of the standard normal distribution.
Formaly Deriving the Kelly Criterion
Lets use some calculus to derive the Kelly Criterion. We want to maximize the long-term growth rate of our wealth. So we want to maximize the expected value of the log of our networth. So we want to maximize .
now, if we are betting fraction of our networth, we have that:
where is the probability of winning, is the odds, and is the fraction of our networth we are betting.
Now, we basically want to maximize this function. So we take the derivative with respect to and set it to zero. We get:
Setting the derivative to zero, we get:
And so, we have derived the Kelly Criterion.