The Kelly Criterion

The Kelly Criterion

This is a short summary of the Kelly Criterion, initially developed by J. Kelly Jr. in their 1956 manuscript [1], which describes the optimal way in which to size bets as to obtain the greatest expected logarithmic returns in a betting game. Plenty of further reading is available on this topic, one useful resource is [2], which is a short article on the Kelly Criterion from a course taught by T. Ferguson of UCLA in 2009. Ferguson also has a number of other interesting articles on his webpage, which you can find here. There also exist a plethora of other articles from the famous E. Thorp on the matter, see for example [3]. Note, for brevity, the notation used here aims to remain consistent with that of Thorp and Ferguson.

The Game #

Suppose you are asked to play a betting game where you undergo repeated trials against an infinitely wealthy opponent who will wager even-money bets. Suppose further that on each trial, you have a probability of winning of p>12p > \frac{1}{2}, and of losing, q:=1−pq := 1 - p.

Let X0X_{0} denote your initial wealth, and XkX_{k} your wealth after the kkth trial. Denote by 0⩽Bk⩽Xk−10 \leqslant B_{k} \leqslant X_{k - 1} the bet made on the kkth trial (we can assume that this is either deterministic or random). If you win the kkth trial, your wealth increases to Xk−1+BkX_{k - 1} + B_{k} and Xk−1−BkX_{k - 1} - B_{k} if you lose, i.e.

Xk={Xk−1+Bkwith probability p,Xk−1−Bkwith probability q=1−p. \begin{aligned} X_{k} &= \left\lbrace\begin{array}{ll} X_{k - 1} + B_{k} & \text{with probability } p,\\ X_{k - 1} - B_{k} & \text{with probability } q = 1 - p. \end{array}\right. \end{aligned}

Letting Tk=+1T_{k} = + 1 if the kkth trial is won, and Tk=−1T_{k} = - 1 otherwise, we can simplify and instead write

Xk=Xk−1+TkBk, \begin{aligned} X_{k} &= X_{k - 1} + T_{k} B_{k}, \end{aligned}

where TkT_{k} is a Bernoulli random variable with success pp, i.e. Tk∼Bernoilli⁡(p)T_{k} \sim \operatorname{Bernoilli} (p), and each TkT_{k} is i.i.d. for k∈Nk \in \mathbb{N}. Recursively expanding, and unravelling, we can further simplify the expression for our wealth after the kkth trail to

Xk=X0+∑i=1kTiBi. \begin{aligned} X_{k} &= X_{0} + \sum_{i = 1}^k T_{i} B_{i} . \end{aligned}

Maximising Wealth After kk Trials #

The question we now ask ourselves is, how can we best maximise our wealth, in whatever manner we mean best.

From a naïve point of view, a gambler will aim to determine how to size bets BiB_{i} to maximise E(Xk)\mathbb{E} (X_{k}) given knowledge of the outcome of the previous bets. Indeed, doing so, we see that

E(Xk)=X0+∑i=1kE(TiBi). \begin{aligned} \mathbb{E} (X_{k}) &= X_{0} + \sum_{i = 1}^k \mathbb{E} (T_{i} B_{i}) . \end{aligned}

Expanding by the law of total expectation, and using the fact that P(Ti=+1)=p,P(Ti=−1)=q\mathbb{P} (T_{i} = + 1) = p, \mathbb{P} (T_{i} = - 1) = q,

E(Xk)=X0+∑i=1k(p−q)E(Bi). \begin{aligned} \mathbb{E} (X_{k}) &= X_{0} + \sum_{i = 1}^k (p - q) \mathbb{E} (B_{i}) . \end{aligned}

Since p>12p > \frac{1}{2}, we have p−q>0p - q > 0, therefore to maximise E(Xk)\mathbb{E} (X_{k}), we are simply required to maximise E(Bi)\mathbb{E} (B_{i}) for each i=1,…,ki = 1, \ldots, k. As 0⩽E(Bi)⩽max⁡Bi=Xi−10 \leqslant \mathbb{E} (B_{i}) \leqslant \max B_{i} = X_{i - 1}, one can maximise E(Bi)\mathbb{E} (B_{i}) by simply (in a deterministic manner) setting Bi=Xi−1B_{i} = X_{i - 1} for each i=1,…,ki = 1, \ldots, k. That is, the optimal strategy to maximise expected total wealth E(Xk)\mathbb{E} (X_{k}) at stage kk, is to simply wager your whole fortune at each trial.

In doing so, in kk trials, you will amass a wealth of

Xk={2kX0with probability pk,0with probability 1−pk, \begin{aligned} X_{k} &= \left\lbrace\begin{array}{ll} 2^k X_{0} & \text{with probability } p^k,\\ 0 & \text{with probability } 1 - p^k, \end{array}\right. \end{aligned}

with E(Xk)=(2p)kX0\mathbb{E} (X_{k}) = (2 p)^k X_{0}. Note that the probability of ruin, 1−pk1 - p^k, quickly tends to one as k→∞k \rightarrow \infty. Although this is a strategy that generates the greatest expected wealth, it is not a sensible strategy, as that wealth is not probable and chance of ruin is high.

Indeed, calculating the variance of your wealth with this strategy, we find that for any k∈Nk \in \mathbb{N}

V(Xk)=X02(4p)k(1−pk). \begin{aligned} \mathbb{V} (X_{k}) &= X_{0}^2 (4 p)^k (1 - p^k) . \end{aligned}

In particular, as p>12p > \frac{1}{2}, 4p>24 p > 2, and as p<1p < 1, pk→0p^k \rightarrow 0 as k→∞k \rightarrow \infty, therefore V(Xk)\mathbb{V} (X_{k}) grows at least as fast as X022kX_{0}^2 2^k as k→∞k \rightarrow \infty, which is exponentially fast, i.e. the strategy is not very stable.

One other metric that is interesting to calculate is the Sharpe of this strategy. Define by Ri:=Xi−Xi−1Xi−1R_{i} := \frac{X_{i} - X_{i - 1}}{X_{i - 1}} for i=1,…,ki = 1, \ldots, k, the returns of this strategy after stage ii. Then, using Bi=Xi−1B_{i} = X_{i - 1},

Ri=Xi−1+TiXi−1−Xi−1Xi−1=Ti \begin{aligned} R_{i} &= \frac{X_{i - 1} + T_{i} X_{i - 1} - X_{i - 1}}{X_{i - 1}} = T_{i} \end{aligned}

Since, for each i=1,…,ki = 1, \ldots, k, Ti∼Bernoilli⁡(p)T_{i} \sim \operatorname{Bernoilli} (p), and is i.i.d., we have that

E(Ri)=p−q=2p−1,E(Ri2)=p+q=1,V(Ri)=E(Ri2)−E(Ri)2=4p(1−p), \begin{aligned} \mathbb{E} (R_{i}) &= p - q = 2 p - 1, \\ \mathbb{E} (R_{i}^2) &= p + q = 1, \\ \mathbb{V} (R_{i}) &= \mathbb{E} (R_{i}^2) -\mathbb{E} (R_{i})^2 = 4 p (1 - p), \end{aligned}

and in particular the Sharpe ratio for this strategy is

Sharpe⁡(Ri)=E(Ri)V(Ri)=2p−12p(1−p) \begin{aligned} \operatorname{Sharpe} (R_{i}) &= \frac{\mathbb{E} (R_{i})}{\sqrt{\mathbb{V} (R_{i})}} = \frac{2 p - 1}{2 \sqrt{p (1 - p)}} \end{aligned}

which is positive for p>12p > \frac{1}{2}, approaches infinity as p→+1p \rightarrow + 1 and zero as p→12p \rightarrow \frac{1}{2}. Surprisingly, this strategy has a relatively high Sharpe for pp just above 0.50.5.

Avoiding Ruin #

To avoid ruin, that is seeing your wealth XkX_{k} go to zero, we can instead opt for a slightly modified strategy, where we restrict 0⩽Bk<Xk−10 \leqslant B_{k} < X_{k - 1}, and take a proportional approach and never invest our whole wealth (note that, although this avoids complete ruin, it does not avoid asymptotic ruin, i.e. there exists k∈Nk \in \mathbb{N} such that P(Xk<ε)\mathbb{P} (X_{k} < \varepsilon) for any ε>0\varepsilon > 0, for which there are other results). For brevity, write Bk:=π(p)Xk−1B_{k} := \pi (p) X_{k - 1} for k∈Nk \in \mathbb{N} for some π:[0,1]→[0,1)\pi : [0, 1] \rightarrow [0, 1) yet to be determined. Then, we can write

Xk=X0+∑i=1kTiBi.=X0(1+π)♯(Ti=+1,i=1,…,k)(1−π)♯(Ti=−1,i=1,…,k) \begin{aligned} X_{k} &= X_{0} + \sum_{i = 1}^k T_{i} B_{i} . \\ &= X_{0} (1 + \pi)^{\sharp (T_{i} = + 1, i = 1, \ldots, k)} (1 - \pi)^{\sharp (T_{i} = - 1, i = 1, \ldots, k)} \end{aligned}

where ♯(Ti=+1,i=1,…,k)\sharp (T_{i} = + 1, i = 1, \ldots, k) denotes the number of times Ti=+1T_{i} = + 1 for i=1,…,ki = 1, \ldots, k, and similarly for ♯(Ti=−1)\sharp (T_{i} = - 1). The random variable ♯(Ti=+1,i=1,…,k)\sharp (T_{i} = + 1, i = 1, \ldots, k) can be understood as the Binomial random variable Zk∼Binomial⁡(k,p)Z_{k} \sim \operatorname{Binomial} (k, p), with success pp, allowing us to rewrite

Xk=X0(1+π)Zk(1−π)k−Zk. \begin{aligned} X_{k} &= X_{0} (1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}} . \end{aligned}

Under this construction, we can see that under an appropriate choice of π\pi, our wealth could grow exponentially fast, without the chance of absolute ruin, in particular

Xk=X0(1+π)Zk(1−π)k−Zk,=X0elog⁡((1+π)Zk(1−π)k−Zk),=X0ek[Zkklog⁡(1+π)+(k−Zk)klog⁡(1−π)], \begin{aligned} X_{k} &= X_{0} (1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}}, \\ &= X_{0} e^{\log ((1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}})}, \\ &= X_{0} e^{k \left[ \frac{Z_{k}}{k} \log (1 + \pi) + \frac{(k - Z_{k})}{k} \log (1 - \pi) \right]}, \end{aligned}

which in conjunction with the estimator Zkk→p\frac{Z_{k}}{k} \rightarrow p as p→∞p \rightarrow \infty for the Binomial random variable ZkZ_{k}, we find that for large k≫1k \gg 1

Xk≈X0ek[plog⁡(1+π)+(1−p)log⁡(1−π)]=X0eG(p)k X_{k} \approx X_{0} e^{k [p \log (1 + \pi) + (1 - p) \log (1 - \pi)]} = X_{0} e^{G (p) k}

where G(p):=plog⁡(1+π)+(1−p)log⁡(1−π)G (p) := p \log (1 + \pi) + (1 - p) \log (1 - \pi) denotes the growth rate.

Indeed, which π(p)\pi (p) attains maximal growth is known as the Kelly proportion, which can be calculated as πˉ(p):=p−q=2p−1\bar{\pi} (p) := p - q = 2 p - 1, for q:=1−pq := 1 - p.

In particular, the Kelly proportion suggests that for k≫1k \gg 1, XkX_{k} would grow at a rate of

Xk≈X0ek[log⁡(2)+plog⁡(p)+(1−p)log⁡(1−p)]=X0(2pp(1−p)(1−p))k \begin{aligned} X_{k} & \approx & X_{0} e^{k [\log (2) + p \log (p) + (1 - p) \log (1 - p)]} \\ &= X_{0} (2 p^p (1 - p)^{(1 - p)})^k \end{aligned}

which grows exponentially for p≠12p \neq \frac{1}{2}, and stays at the initial capital X0X_{0} for p=12p = \frac{1}{2}, in which case the Kelly proportion, π\pi, is 00, and no capital would be bet. I wish to state that the above strategy does not maximise E(Xk)\mathbb{E} (X_{k}), as that would be the strategy of betting your whole wealth at each trial, but instead concerns maximising the asymptotic rate of growth, GG, of your wealth as k→∞k \rightarrow \infty.

Kelly Betting System: Maximising Expected Utility #

Instead of aiming to maximise E(Xk)\mathbb{E} (X_{k}), consider instead the want to maximise E(log⁡(Xk))\mathbb{E} (\log (X_{k})) at each k∈Nk \in \mathbb{N}, where log⁡(Xn)\log (X_{n}) is often called the utility, see the work of J. von Neumann in [4] for the seminal work on utility theory.

Additionally, assume that Bk:=πk(p)Xk−1B_{k} := \pi _{k} (p) X_{k - 1} with πk:[0,1]→[0,1]\pi _{k} : [0, 1] \rightarrow [0, 1] which can vary at each step. Then, the expected wealth at trial kk, given information at trial k−1k - 1 can be written as

E(log⁡(Xk)∣Xk−1)=log⁡(Xk−1)+plog⁡(1+πk)p+qlog⁡(1−πk). \begin{aligned} \mathbb{E} (\log (X_{k}) |X_{k - 1}) &= \log (X_{k - 1}) + p \log (1 + \pi _{k}) p + q \log (1 - \pi _{k}) . \end{aligned}

At each stage kk, E(log⁡(Xk)∣Xk−1)\mathbb{E} (\log (X_{k}) |X_{k - 1}) is maximised by the Kelly proportion discussed above

πk(p):=p−q=2p−1. \pi _{k} (p) := p - q = 2 p - 1.

This gives a small justification of the Kelly betting system (i.e. it maximises the expectation of the log utility, whereas for the non log-utility approach, it only maximises the rate of increase of wealth).

This betting system can also be used if the win probabilities change from stage to stage. If there are nn stages, and the win probability at stage kk is pkp_{k}, then the Kelly betting system at each stage uses the rule of maximising the expected log⁡\log of fortune one step ahead, as done above. Thus at stage kk, you bet the proportion πk(pk)\pi _{k} (p_{k}) of your fortune.

For further reading on the matter, one can also review the good and bad properties of the Kelly betting system, [5], and the application of the Kelly criterion for sports betting and Wall Street, see [3] and references therein.

References

  1. J. L. Kelly Jr. (1956). A New Interpretation of Information Rate. 35 (4) : 917–926. doi:10.1002/j.1538-7305.1956.tb03809.x link
  2. Thomas Ferguson (2009). The Kelly Betting System for Favorable Games.. link
  3. Edward O. Thorp (2006). Chapter 9 The Kelly Criterion in Blackjack Sports Betting, and the Stock Market. 1 : 385–428. doi:10.1016/S1872-0978(06)01009-X link
  4. John Von Neumann and Oskar Morgenstern (2007). Theory of games and economic behavior.
  5. Leonard C MacLean , Herbert Lamb Chair , Edward O Thorp , Newport Beach and William T Ziemba (2010). Good and bad properties of the Kelly criterion.