The Kelly Criterion is a formula used to determine the optimal size of a series of bets to maximize the long-term growth rate of a portfolio. It was developed by John L. Kelly Jr., a scientist at Bell Labs, in 1956. The formula is a powerful tool for managing risk and maximizing returns in any situation where you have an edge.
The Coin Toss Game
Let’s consider a simple game: a biased coin toss. Suppose the coin has a probability of landing on heads, and you win dollars for every dollar you bet. If it lands on tails (with probability ), you lose your bet. You start with an initial portfolio of dollars. You decide to bet a fraction of your on each toss.
After one toss, your new portfolio will be:
- if you win (with probability )
- if you lose (with probability )
After tosses, with wins and losses (), your portfolio will be:
Geometric Mean
Our goal is to find the fraction that maximizes the growth rate of our portfolio. To define the growth-rate of the portfolio we first note that we must use the geometric mean rather than the arithmetic mean. This is because for each bet we compound our portfolio multiplicatively (the amount bet increases/decreases with portfolio size rather than being a fixed amount). For example suppose we started with = $100 and gained 50% on the first bet and lost 50% on the next. Then:
- The first growth rate is 1.5x, leaving us at = $150.
- The second growth rate is 0.5x, leaving us at = $75.
Arithmetically averaging the growth rates would yield a growth rate of 1.0x yet we ended up at $75.
The geometric mean on the otherhand is defined as:
which is the average multiplicative factor we needed to apply times to get us to our final state of $75.
Moving back to the task at hand, we look at the geometric mean of the portfolio growth.
Using the Logarithm
We begin our analysis of the portfolio growth by doing a convenient calculus trick of taking the logarithm of this geometric mean. This trick will assist during the optimization step:
Since all of these values are positive (you didn’t take a loan or risk more than your portfolio right?) the logarithm is a strictly increasing continuous function, and so maximizing this value will occur at the same point as the function inside the log (the geometric mean of the portfolio growth).
Here is a visualization of this concept. Notice that while the shape of the transformed function changes, the x-coordinate of the maximum remains the same.
The proof is rather simple, the inner function has a maximum say at , then every -value nearby is maps to less than , but is the input to the increasing function, and so this is just choosing an input value to the left of . The function is increasing and so this new input must be lower than what is sent to.
Deriving the Kelly Criterion
Now we want to derive the Kelly Criterion for bet sizing. Returning to which is the log of the geometric average growth rate, we can simplify the formula by noting that part of our assumptions is that the long-term success rate, , is known, so that as , we have and . So, the long-term growth rate is:
To find the optimal fraction , we need to maximize . We can do this by taking the derivative of with respect to and setting it to zero:
Solving for , we get:
The right side can be factored as . Since , this is just .
This is the Kelly Criterion. It gives the optimal fraction of your portfolio to bet to maximize long-term growth. All you need to know is and .
Portfolio Growth Rate
Now that we have the optimal fraction , let’s analyze the growth it produces. It’s important to distinguish between two related concepts.
Logarithmic Rate vs. Geometric Factor
The value we have been working with is the logarithmic growth rate, :
This is the exponent in the portfolio’s long-term exponential growth curve, .
The geometric mean growth factor, which was defined earlier, converges to a value that depends only on as gets large. Let’s call this :
Click to see the proof of this convergence.
The proof relies on the Law of Large Numbers. Here is a step-by-step breakdown:
-
Substitute the formula for : We know that . Substituting this into the limit gives:
-
Simplify using exponent rules: We distribute the
1/Nexponent: -
Apply the Law of Large Numbers: As the number of trials approaches infinity, the proportion of wins converges to the probability of winning , and the proportion of losses converges to the probability of losing .
-
Substitute the limits: Replacing the proportions with their probabilities gives us the final result:
This is the average multiplier your portfolio experiences on each bet.
The logarithmic rate and the growth factor are directly related:
An Example: Let’s take a biased coin with and odds . The optimal fraction is .
First, we find the logarithmic growth rate :
From this, we can find the average growth factor :
This means that by betting 40% of your capital each time, your capital will be multiplied by an average of 1.16 on every bet, for a 16% average gain per bet.
For the rest of this post, we will use the logarithmic growth rate , as is conventional.
Maximum Growth Rate
So now we know the optimal fraction of our portfolio to bet each time, and we know what and represent. What remains is to find the maximum growth rate by plugging the Kelly fraction back into the formula for and then finding .
This simplifies to the following.
Click to see the simplification steps
and ultimately is just raised to this.
This is the maximum achievable growth rate. It’s a function of the probability of winning and the odds .
Visualizing the Growth Rate
To get a better feel for how the growth rate depends on the betting fraction, let’s visualize it. We’ll create an interactive plot where you can adjust the parameters and and see how the growth rate curve changes. The x-axis will be the fraction of the portfolio bet, and the y-axis will be the growth rate .
This component will allow you to adjust the probability of winning () and the odds () with sliders and see the resulting growth rate curve. The optimal fraction to bet, the Kelly fraction, is also calculated and displayed.
Kelly Fraction: 0.200
Max Log Growth Rate (G): 0.020
Max Growth Factor (K): 1.020