Skip to content

Commit 8187d64

Browse files
committed
add kelly criterion discussion with corresponding TeXMacs file
1 parent 9927e39 commit 8187d64

File tree

2 files changed

+928
-0
lines changed

2 files changed

+928
-0
lines changed
Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,290 @@
1+
---
2+
date: "2025-11-06"
3+
math: true
4+
refs:
5+
- "KellyJr.1956"
6+
- "Ferguson2009"
7+
- "Thorp2006"
8+
- "VonNeumann2007"
9+
- "MacLean2010"
10+
title: "The Kelly Criterion"
11+
---
12+
13+
14+
This is a short summary of the Kelly Criterion, initially developed by J.
15+
Kelly Jr. in their 1956 manuscript {{< cite "KellyJr.1956" >}}, which
16+
describes the optimal way in which to size bets as to obtain the greatest
17+
expected logarithmic returns in a betting game. Plenty of further reading is
18+
available on this topic, one useful resource is {{< cite
19+
"Ferguson2009" >}}, which is a short article on the Kelly Criterion from a
20+
course taught by T. Ferguson of UCLA in 2009. Ferguson also has a number of
21+
other interesting articles on his webpage, which you can find
22+
[here](https://www.math.ucla.edu/~tom/). There also exist a plethora of other
23+
articles from the famous E. Thorp on the matter, see for example {{< cite
24+
"Thorp2006" >}}. Note, for brevity, the notation used here aims to remain
25+
consistent with that of Thorp and Ferguson.
26+
27+
## The Game
28+
29+
Suppose you are asked to play a betting game where you undergo repeated trials
30+
against an infinitely wealthy opponent who will wager even-money bets. Suppose
31+
further that on each trial, you have a probability of winning of $p >
32+
\frac{1}{2}$, and of losing, $q := 1 - p$.
33+
34+
Let $X_{0}$ denote your initial wealth, and $X_{k}$ your wealth after the
35+
$k$th trial. Denote by $0 \leqslant B_{k} \leqslant X_{k - 1}$ the bet made on
36+
the $k$th trial (we can assume that this is either deterministic or random).
37+
If you win the $k$th trial, your wealth increases to $X_{k - 1} + B_{k}$ and
38+
$X_{k - 1} - B_{k}$ if you lose, i.e.
39+
40+
$$
41+
\begin{eqnarray}
42+
X_{k} & = & \left\lbrace\begin{array}{ll}
43+
X_{k - 1} + B_{k} & \text{with probability } p,\\
44+
X_{k - 1} - B_{k} & \text{with probability } q = 1 - p.
45+
\end{array}\right. \nonumber
46+
\end{eqnarray}
47+
$$
48+
49+
Letting $T_{k} = + 1$ if the $k$th trial is won, and $T_{k} = - 1$ otherwise,
50+
we can simplify and instead write
51+
52+
$$
53+
\begin{eqnarray}
54+
X_{k} & = & X_{k - 1} + T_{k} B_{k}, \nonumber
55+
\end{eqnarray}
56+
$$
57+
58+
where $T_{k}$ is a Bernoulli random variable with success $p$, i.e. $T_{k}
59+
\sim \operatorname{Bernoilli} (p)$, and each $T_{k}$ is i.i.d. for $k \in
60+
\mathbb{N}$. Recursively expanding, and unravelling, we can further simplify
61+
the expression for our wealth after the $k$th trail to
62+
63+
$$
64+
\begin{eqnarray}
65+
X_{k} & = & X_{0} + \sum_{i = 1}^k T_{i} B_{i} . \nonumber
66+
\end{eqnarray}
67+
$$
68+
69+
## Maximising Wealth After $k$ Trials
70+
71+
The question we now ask ourselves is, how can we best maximise our wealth, in
72+
whatever manner we mean best.
73+
74+
From a naïve point of view, a gambler will aim to determine how to size bets
75+
$B_{i}$ to maximise $\mathbb{E} (X_{k})$ given knowledge of the outcome of the
76+
previous bets. Indeed, doing so, we see that
77+
78+
$$
79+
\begin{eqnarray}
80+
\mathbb{E} (X_{k}) & = & X_{0} + \sum_{i = 1}^k \mathbb{E} (T_{i} B_{i}) .
81+
\nonumber
82+
\end{eqnarray}
83+
$$
84+
85+
Expanding by the law of total expectation, and using the fact that $\mathbb{P}
86+
(T_{i} = + 1) = p, \mathbb{P} (T_{i} = - 1) = q$,
87+
88+
$$
89+
\begin{eqnarray}
90+
\mathbb{E} (X_{k}) & = & X_{0} + \sum_{i = 1}^k (p - q) \mathbb{E} (B_{i}) .
91+
\nonumber
92+
\end{eqnarray}
93+
$$
94+
95+
Since $p > \frac{1}{2}$, we have $p - q > 0$, therefore to maximise
96+
$\mathbb{E} (X_{k})$, we are simply required to maximise $\mathbb{E} (B_{i})$
97+
for each $i = 1, \ldots, k$. As $0 \leqslant \mathbb{E} (B_{i}) \leqslant \max
98+
B_{i} = X_{i - 1}$, one can maximise $\mathbb{E} (B_{i})$ by simply (in a
99+
deterministic manner) setting $B_{i} = X_{i - 1}$ for each $i = 1, \ldots, k$.
100+
That is, the optimal strategy to maximise *expected total wealth* $\mathbb{E}
101+
(X_{k})$ at stage $k$, is to simply wager your whole fortune at each trial.
102+
103+
In doing so, in $k$ trials, you will amass a wealth of
104+
105+
$$
106+
\begin{eqnarray}
107+
X_{k} & = & \left\lbrace\begin{array}{ll}
108+
2^k X_{0} & \text{with probability } p^k,\\
109+
0 & \text{with probability } 1 - p^k,
110+
\end{array}\right. \nonumber
111+
\end{eqnarray}
112+
$$
113+
114+
with $\mathbb{E} (X_{k}) = (2 p)^k X_{0}$. Note that the probability of ruin,
115+
$1 - p^k$, quickly tends to one as $k \rightarrow \infty$. Although this is a
116+
strategy that generates the greatest expected wealth, it is not a sensible
117+
strategy, as that wealth is not probable and chance of ruin is high.
118+
119+
Indeed, calculating the variance of your wealth with this strategy, we find
120+
that for any $k \in \mathbb{N}$
121+
122+
$$
123+
\begin{eqnarray}
124+
\mathbb{V} (X_{k}) & = & X_{0}^2 (4 p)^k (1 - p^k) . \nonumber
125+
\end{eqnarray}
126+
$$
127+
128+
In particular, as $p > \frac{1}{2}$, $4 p > 2$, and as $p < 1$,
129+
$p^k \rightarrow 0$ as $k \rightarrow \infty$, therefore $\mathbb{V} (X_{k})$
130+
grows at least as fast as $X_{0}^2 2^k$ as $k \rightarrow \infty$, which is
131+
exponentially fast, i.e. the strategy is not very stable.
132+
133+
One other metric that is interesting to calculate is the Sharpe of this
134+
strategy. Define by $R_{i} := \frac{X_{i} - X_{i - 1}}{X_{i - 1}}$ for $i = 1,
135+
\ldots, k$, the returns of this strategy after stage $i$. Then, using $B_{i} =
136+
X_{i - 1}$,
137+
138+
$$
139+
\begin{eqnarray}
140+
R_{i} & = & \frac{X_{i - 1} + T_{i} X_{i - 1} - X_{i - 1}}{X_{i - 1}} =
141+
T_{i} \nonumber
142+
\end{eqnarray}
143+
$$
144+
145+
Since, for each $i = 1, \ldots, k$, $T_{i} \sim \operatorname{Bernoilli} (p)$,
146+
and is i.i.d., we have that
147+
148+
$$
149+
\begin{eqnarray}
150+
\mathbb{E} (R_{i}) & = & p - q = 2 p - 1, \nonumber\\
151+
\mathbb{E} (R_{i}^2) & = & p + q = 1, \nonumber\\
152+
\mathbb{V} (R_{i}) & = & \mathbb{E} (R_{i}^2) -\mathbb{E} (R_{i})^2 = 4 p (1 - p), \nonumber
153+
\end{eqnarray}
154+
$$
155+
156+
and in particular the Sharpe ratio for this strategy is
157+
158+
$$
159+
\begin{eqnarray}
160+
\operatorname{Sharpe} (R_{i}) & = & \frac{\mathbb{E}
161+
(R_{i})}{\sqrt{\mathbb{V} (R_{i})}} = \frac{2 p - 1}{2 \sqrt{p (1 - p)}}
162+
\nonumber
163+
\end{eqnarray}
164+
$$
165+
166+
which is positive for $p > \frac{1}{2}$, approaches infinity as $p
167+
\rightarrow + 1$ and zero as $p \rightarrow \frac{1}{2}$. Surprisingly, this
168+
strategy has a relatively high Sharpe for $p$ just above $0.5$.
169+
170+
## Avoiding Ruin
171+
172+
To avoid ruin, that is seeing your wealth $X_{k}$ go to zero, we can instead
173+
opt for a slightly modified strategy, where we restrict $0 \leqslant B_{k}
174+
< X_{k - 1}$, and take a proportional approach and never invest our whole
175+
wealth (note that, although this avoids complete ruin, it does not avoid
176+
asymptotic ruin, i.e. there exists $k \in \mathbb{N}$ such that $\mathbb{P}
177+
(X_{k} < \varepsilon)$ for any $\varepsilon > 0$, for which there are
178+
other results). For brevity, write $B_{k} := \pi (p) X_{k - 1}$ for $k \in
179+
\mathbb{N}$ for some $\pi : [0, 1] \rightarrow [0, 1)$ yet to be determined.
180+
Then, we can write
181+
182+
$$
183+
\begin{eqnarray}
184+
X_{k} & = & X_{0} + \sum_{i = 1}^k T_{i} B_{i} . \nonumber\\\
185+
& = & X_{0} (1 + \pi)^{\sharp (T_{i} = + 1, i = 1, \ldots, k)} (1 -
186+
\pi)^{\sharp (T_{i} = - 1, i = 1, \ldots, k)} \nonumber
187+
\end{eqnarray}
188+
$$
189+
190+
where $\sharp (T_{i} = + 1, i = 1, \ldots, k)$ denotes the number of times
191+
$T_{i} = + 1$ for $i = 1, \ldots, k$, and similarly for $\sharp (T_{i} = -
192+
1)$. The random variable $\sharp (T_{i} = + 1, i = 1, \ldots, k)$ can be
193+
understood as the Binomial random variable $Z_{k} \sim \operatorname{Binomial}
194+
(k, p)$, with success $p$, allowing us to rewrite
195+
196+
$$
197+
\begin{eqnarray}
198+
X_{k} & = & X_{0} (1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}} . \nonumber
199+
\end{eqnarray}
200+
$$
201+
202+
Under this construction, we can see that under an appropriate choice of $\pi$,
203+
our wealth could grow exponentially fast, without the chance of absolute ruin,
204+
in particular
205+
206+
$$
207+
\begin{eqnarray}
208+
X_{k} & = & X_{0} (1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}}, \nonumber\\\
209+
& = & X_{0} e^{\log ((1 + \pi)^{Z_{k}} (1 - \pi)^{k - Z_{k}})},
210+
\nonumber\\\
211+
& = & X_{0} e^{k \left[ \frac{Z_{k}}{k} \log (1 + \pi) + \frac{(k -
212+
Z_{k})}{k} \log (1 - \pi) \right]}, \nonumber
213+
\end{eqnarray}
214+
$$
215+
216+
which in conjunction with the estimator $\frac{Z_{k}}{k} \rightarrow p$ as $p
217+
\rightarrow \infty$ for the Binomial random variable $Z_{k}$, we find that for
218+
large $k \gg 1$
219+
220+
$$
221+
X_{k} \approx X_{0} e^{k [p \log (1 + \pi) + (1 - p) \log (1 - \pi)]} =
222+
X_{0} e^{G (p) k}
223+
$$
224+
225+
where $G (p) :=$$p \log (1 + \pi) + (1 - p) \log (1 - \pi)$ denotes
226+
the *growth rate*.
227+
228+
Indeed, which $\pi (p)$ attains maximal growth is known as the Kelly
229+
proportion, which can be calculated as $\bar{\pi} (p) := p - q = 2 p - 1$, for
230+
$q := 1 - p$.
231+
232+
In particular, the Kelly proportion suggests that for $k \gg 1$, $X_{k}$ would
233+
grow at a rate of
234+
235+
$$
236+
\begin{eqnarray}
237+
X_{k} & \approx & X_{0} e^{k [\log (2) + p \log (p) + (1 - p) \log (1 - p)]}
238+
\nonumber\\\
239+
& = & X_{0} (2 p^p (1 - p)^{(1 - p)})^k \nonumber
240+
\end{eqnarray}
241+
$$
242+
243+
which grows exponentially for $p \neq \frac{1}{2}$, and stays at the initial
244+
capital $X_{0}$ for $p = \frac{1}{2}$, in which case the Kelly proportion,
245+
$\pi$, is $0$, and no capital would be bet. I wish to state that the above
246+
strategy does not maximise $\mathbb{E} (X_{k})$, as that would be the strategy
247+
of betting your whole wealth at each trial, but instead concerns maximising
248+
the asymptotic rate of growth, $G$, of your wealth as $k \rightarrow \infty$.
249+
250+
## Kelly Betting System: Maximising Expected Utility
251+
252+
Instead of aiming to maximise $\mathbb{E} (X_{k})$, consider instead the want
253+
to maximise $\mathbb{E} (\log (X_{k}))$ at each $k \in \mathbb{N}$, where
254+
$\log (X_{n})$ is often called the utility, see the work of J. von Neumann in
255+
{{< cite "VonNeumann2007" >}} for the seminal work on utility theory.
256+
257+
Additionally, assume that $B_{k} := \pi _{k} (p) X_{k - 1}$ with $\pi _{k} :
258+
[0, 1] \rightarrow [0, 1]$ which can vary at each step. Then, the expected
259+
wealth at trial $k$, given information at trial $k - 1$ can be written as
260+
261+
$$
262+
\begin{eqnarray}
263+
\mathbb{E} (\log (X_{k}) |X_{k - 1}) & = & \log (X_{k - 1}) + p \log (1 +
264+
\pi _{k}) p + q \log (1 - \pi _{k}) . \nonumber
265+
\end{eqnarray}
266+
$$
267+
268+
At each stage $k$, $\mathbb{E} (\log (X_{k}) |X_{k - 1})$ is maximised by the
269+
Kelly proportion discussed above
270+
271+
$$
272+
\pi _{k} (p) := p - q = 2 p - 1.
273+
$$
274+
275+
This gives a small justification of the Kelly betting system (i.e. it
276+
maximises the expectation of the log utility, whereas for the non log-utility
277+
approach, it only maximises the rate of increase of wealth).
278+
279+
This betting system can also be used if the win probabilities change from
280+
stage to stage. If there are $n$ stages, and the win probability at stage $k$
281+
is $p_{k}$, then the Kelly betting system at each stage uses the rule of
282+
maximising the expected $\log$ of fortune one step ahead, as done above. Thus
283+
at stage $k$, you bet the proportion $\pi _{k} (p_{k})$ of your fortune.
284+
285+
For further reading on the matter, one can also review the good and bad
286+
properties of the Kelly betting system, {{< cite "MacLean2010" >}},
287+
and the application of the Kelly criterion for sports betting and Wall Street,
288+
see {{< cite "Thorp2006" >}} and references therein.
289+
290+
{{< references >}}

0 commit comments

Comments
 (0)