46.09.02 · information-theory / convolutional-classical

Gambling, the Kelly Criterion, and the Doubling Rate: Entropy as Growth

shipped3 tiersLean: none

Anchor (Master): Cover & Thomas 2006 Elements of Information Theory 2e (Wiley) Chapter 6 and Chapter 16 (Kelly 1956, log-optimal portfolios, the stock market as a horse race, universal portfolios)

Intuition Beginner

Imagine a horse race with horses. Horse wins with probability . The track offers odds -to-1: bet $1 on horse , and if it wins you get back $o(x)$; if it loses, you lose your dollar.

You have $1 to spread across all horses. You put fraction on horse , with all fractions summing to 1. If horse wins, your new wealth is . You just multiplied your money by the factor .

Now repeat the race over and over, reinvesting everything each time. After races your total wealth factor is the product of random multipliers. Products of random numbers grow or shrink exponentially, and the exponential rate is what matters in the long run. That rate is called the doubling rate : the number of times your wealth doubles per race, on average. Positive means you get richer exponentially. Negative means you go broke.

The first surprise: the best strategy is proportional betting, . Bet on each horse in proportion to its probability of winning. This is optimal regardless of the odds, though the value of the strategy depends on the odds [source pending].

Under "fair odds," where , proportional betting yields a doubling rate of exactly zero: your wealth stays flat on average. The track is fair, so no strategy can extract a positive growth rate. Under "super-fair" odds, where the track pays out more than the fair level for some horses, proportional betting exploits the edge and yields a positive .

The second surprise comes from side information. Suppose you receive a tip correlated with the outcome — say, a weather report that shifts the probabilities. You can now bet conditionally: choose depending on the signal. The increase in doubling rate from using the tip equals exactly the mutual information [source pending].

If the tip tells you the outcome perfectly, and your doubling rate jumps by the full entropy. If the tip is noise, and it adds nothing. Mutual information is not just an abstract measure of statistical dependence — it is the exact monetary value of a tip, measured in growth-rate units.

Why does proportional betting win? If you put too little on a likely horse and too much on an unlikely one, you lose a little on most races (when the likely horse wins) and gain a lot on rare races (when the longshot wins). The arithmetic works against you because you are multiplying your wealth each round. A single zero wipes you out, but even a near-zero outcome sets you back enormously.

Proportional betting avoids near-zero outcomes: you always have something on the winning horse, and the fraction scales with how likely that horse was to begin with. The log of your wealth is what matters, not the wealth itself, because logs turn products into sums and the law of large numbers kicks in.

This framework extends beyond horse racing. Any repeated favorable bet — stock markets, venture capital, insurance underwriting — has the same structure. You have a bankroll, you allocate it across outcomes, and you reinvest. The Kelly criterion tells you how to allocate optimally: in proportion to your beliefs about the probabilities. The result is that your wealth grows at the fastest possible exponential rate, and that rate is governed by information-theoretic quantities.

The gambling framework gives information theory an economic interpretation. Entropy measures the uncertainty in the race. Mutual information measures how much a correlated signal reduces that uncertainty and translates it into extra growth. These are theorems, not analogies.

Theory Intermediate

Formal definitions: the horse race model and the doubling rate

Fix a finite alphabet . The race outcome is a random variable , a probability mass function on . The track offers odds for each horse : a bet of $1 on horse returns $o(x)x$ wins and $0 otherwise.

A betting strategy is a vector with for all and . The gambler invests their entire bankroll each round, distributing it across the horses.

If horse wins, the gambler's wealth is multiplied by . After independent races with outcomes , the total wealth factor is:

Taking logarithms and dividing by :

By the strong law of large numbers (prerequisite 37.02.01), the sample average converges almost surely to its expectation:

where the doubling rate is defined as:

All logarithms are natural unless otherwise noted. The doubling rate is measured in nats per race. Wealth behaves as in the long run: positive yields exponential growth, negative yields exponential decay [source pending].

The doubling rate decomposes as:

The second term is a constant with respect to . The first term is where the gambler's choice matters. By the strict concavity of , this term satisfies , with equality if and only if . The strategy-dependent term is always non-positive, and it attains its maximum value of zero precisely at proportional betting. This observation is the core of the optimality proof.

2. Optimal betting: the Kelly strategy

Theorem (Kelly optimality). For any odds , the optimal doubling rate is achieved by proportional betting :

Proof. Maximize subject to and . (The term is constant in and does not affect the optimization.)

Method 1: Lagrange multipliers. The Lagrangian is . Setting gives . Summing: , so and . The objective is strictly concave in , so the stationary point is the unique global maximum.

Method 2: KL divergence. For any strategy :

where is the KL divergence between the true distribution and the betting strategy (viewed as a distribution on ). Equality holds if and only if for all . The gap between optimal and any other strategy is exactly the KL divergence .

Substituting gives:

where is the Shannon entropy [source pending].

Corollary (Fair odds). When the odds are fair, :

Under fair odds, no strategy — including proportional betting — can extract a positive growth rate. The track is efficient: the expected return on any bet equals the amount wagered. Proportional betting is still optimal, but the optimum is zero.

Corollary (Super-fair odds). When for some constant (the track overpays every horse by the same factor):

The growth rate depends only on the overpayment factor , not on the distribution . This makes sense: every horse is overpaid by the same multiplicative factor, so the edge is uniform regardless of which horse wins.

Corollary (General super-fair). More generally, if and only if , equivalently . A positive growth rate requires that the odds sufficiently exceed the fair-odds level on average.

3. Side information and the mutual-information gain

Suppose the gambler observes a side signal , jointly distributed with according to . Given , the gambler adopts a conditional betting strategy . The conditional doubling rate is:

Maximizing independently for each yields the conditional optimal strategy , by the same argument as the unconditional case.

Theorem (Value of side information). The increase in doubling rate from using side information equals the mutual information:

where and .

Proof.

The odds cancel because they depend only on , not on . The result holds for any odds structure [source pending].

Interpretation. This is the second major operational meaning of mutual information (the first being channel capacity, unit 46.03.01). The mutual information is the increase in exponential growth rate of wealth attributable to the signal . For fair odds, the unconditional doubling rate is zero and the conditional doubling rate is : the gambler's wealth grows at a rate determined by how informative is about . A perfect signal () gives the gambler full knowledge and the maximum possible edge. A useless signal () adds no growth.

Key result: optimal betting and worked examples

Worked example. A binary horse race: with , odds , .

Without side information. The optimal strategy is (proportional betting). The doubling rate:

This is positive: the track overpays relative to fair odds on average. (Fair odds would be , ; here and , but the excess on horse 1 more than compensates.)

With side information. Suppose satisfies . Then , and symmetrically for . The mutual information:

Converting to nats: nats. The conditional optimal doubling rate:

Side information nearly septuples the growth rate. The conditional gambler exploits the correlation by betting , , concentrating wealth on the likely winner.

4. The gambling-compression duality

The horse race has a precise duality with lossless source coding (unit 46.02.02). Given a uniquely decodable code with codeword lengths , the Kraft inequality guarantees . Define a "gambling strategy" (renormalized to sum to 1 if necessary) and odds . Then for all , and the doubling rate is .

The duality becomes meaningful with a different mapping. Let the code lengths be . The associated strategy bets and the odds are determined by the channel or track. The expected code length is minimized by the same distribution that maximizes the doubling rate. Both problems optimize over the simplex: the Huffman code minimizes subject to Kraft, while Kelly maximizes subject to [source pending].

This duality is not merely structural. Cover and Thomas show that the optimal doubling rate for the horse race with fair odds can be expressed as when the gambler uses the code-length strategy. The surplus growth under super-fair odds corresponds to the redundancy of a suboptimal code. Gambling and compression are two faces of the same optimization problem over the probability simplex.

A deeper version of the duality emerges from the Kraft inequality. Given a uniquely decodable code with lengths , define a gambling strategy where . The corresponding odds are . Then the doubling rate is:

Every code induces a fair-gambling game with zero doubling rate. The code length plays the role of the log-odds. The optimality of the Shannon code () in compression corresponds to the optimality of proportional betting () in gambling: both minimize the KL divergence to the true distribution.

This duality has computational consequences. The Blahut-Arimoto algorithm (unit 46.04.04) iterates between optimizing the input distribution and the test channel to compute channel capacity. An analogous algorithm computes the log-optimal portfolio by iterating between the portfolio weights and the dual variables. The convergence guarantees are the same because the underlying convex optimization structure is identical.

5. The Kelly criterion for continuous outcomes

The horse race extends to the stock market. Consider assets with price relatives drawn i.i.d. from a distribution on . The component is the ratio of closing to opening price for asset .

A portfolio is with , . The one-period wealth factor is . The doubling rate is:

The log-optimal portfolio maximizes . Since is concave and is linear in , the composition is concave in . The maximum exists and first-order conditions are sufficient.

Theorem (Log-optimal portfolio conditions). The portfolio is log-optimal if and only if:

The condition states that at the optimum, reallocating wealth from any active asset to any other active asset does not improve expected log-return. This is a stationarity condition for the concave program [source pending].

The horse race is a special case: define so that when horse wins and for . Then when horse wins, and .

Example (Two-asset market). Two assets with price relatives and jointly distributed as: with probability and with probability . By symmetry, the log-optimal portfolio is . The doubling rate:

A portfolio all in one asset gives . Diversification improves the growth rate from zero to .

A less obvious strategy, , yields:

This is lower than . The symmetric portfolio dominates the asymmetric one, consistent with the symmetry of the return distribution. The log-optimal portfolio matches the symmetry of the market.

Cover's universal portfolio achieves the optimal doubling rate without knowing . At time , the universal investor allocates wealth proportional to the accumulated wealth of each constant-rebalanced portfolio under the observed returns. Formally, let be a constant-rebalanced portfolio and define . The universal portfolio at time invests:

where the integrals are over the -dimensional simplex. This is a Bayesian mixture with uniform prior on the simplex, where the "posterior" weight of each portfolio equals its accumulated wealth. The resulting wealth satisfies:

The inequality follows from the fact that the integral of the maximum is bounded below by the maximum divided by the "effective number" of portfolios. Taking logs: . The universal strategy achieves the same doubling rate as the optimal strategy that knows in advance, with polynomial convergence in and exponential dependence on [source pending].

The universal portfolio has a natural interpretation in the language of prediction with expert advice. The "experts" are the constant-rebalanced portfolios, and the loss function is the log-loss. The universal strategy is the Bayesian mixture, and the regret bound is per round. This connects Kelly betting to the online learning literature, where the same mixture strategy (with different loss functions) appears as the "exponentiated gradient" or "Hedge" algorithm.

6. Exercises

Exercise 1 (Doubling rate computation). A 3-horse race has , , and odds , , . Compute the optimal strategy , the optimal doubling rate , and the doubling rate of the uniform strategy .

Exercise 2 (KL divergence proof of optimality). Show that for any strategy , . Use this to prove that proportional betting is the unique optimal strategy. Hint: with equality iff .

Exercise 3 (Fair odds). For a 3-horse race with and fair odds, verify that . Then compute when the odds are (uniformly doubled) and verify .

Exercise 4 (Side information gain). A binary race has , , and odds , . The side signal satisfies . Compute , the unconditional , and the conditional . Verify .

Exercise 5 (Suboptimal strategies). For the race in Exercise 1, compute for the strategies: (a) (proportional), (b) (uniform), (c) (concentrated). Rank them and compute the KL divergence for each.

Exercise 6 (Numerical simulation). Simulate 10,000 rounds of a 3-horse race with and odds . Compare the empirical for proportional betting, uniform betting, and a concentrated strategy. Verify convergence to the theoretical doubling rates.

Exercise 7 (Continuous portfolio). Two assets with w.p. and w.p. . Find the log-optimal portfolio and doubling rate. Hint: take the derivative of with respect to and set it to zero.

Exercise 8 (General odds, general proof). Prove that for arbitrary positive odds , the conditional Kelly strategy achieves . Show explicitly that the odds cancel in the difference .

Connections Master

Relationships across the curriculum

Mutual information (46.01.02). The identity provides the second major operational interpretation of mutual information. The first is channel capacity: is the maximum reliable communication rate over a channel. The gambling interpretation says is the maximum increase in wealth growth rate from observing a correlated signal. Both involve maximizing mutual information over a choice variable (input distribution vs. conditional betting strategy), but the domains differ: communication vs. investment.

The structural parallel runs deeper. In channel coding, the encoder chooses to maximize . In gambling, the gambler chooses (the posterior) and the growth gain is for free — the signal comes from nature. The maximization in the gambling case is immediate (bet the posterior), and the substantive content is the interpretation of the resulting quantity.

Source coding (46.02.02). The duality between entropy as a compression limit and entropy as a growth rate is one of the deepest connections in information theory. Shannon's source coding theorem says the minimum expected code length for is bits. The Kelly theorem says the optimal doubling rate with fair odds is determined by . Both arise from the same functional .

The duality is constructive. A prefix code with lengths induces a gambling strategy . The expected log-wealth under this strategy with odds is . A code that is nearly optimal () corresponds to proportional betting. A suboptimal code ( for some ) corresponds to under-betting on likely outcomes, and the penalty in both contexts equals the KL divergence [source pending].

Slepian-Wolf coding (46.05.01). Slepian-Wolf codes compress to rate when the decoder has access to side information , achieving the full joint entropy across both encoder and decoder. The gambling analog: the gambler with side information achieves a doubling rate that is higher than without. In both cases, side information reduces the "cost" of uncertainty by exactly . In compression, the saved bits equal . In gambling, the gained growth rate equals .

Large deviations (37.07.02). The probability of ruin under Kelly betting decays exponentially. The rate function is computed from Cramer's theorem applied to . Specifically, . By the large-deviations principle, this probability decays as where is the Fenchel-Legendre transform of the cumulant generating function of and is the deviation of the sample average from its mean . The Kelly strategy, by maximizing , simultaneously pushes the "center" of the distribution of to the right, making large negative deviations less probable for a given tail probability.

The precise relationship is as follows. Define the cumulant generating function . By the Gartner-Ellis theorem, the probability that for decays as:

where is the rate function. For the Kelly strategy with and fair odds, deterministically, so and for , otherwise. There is no fluctuation — wealth is constant. Under super-fair odds, the fluctuations are non-negligible, and the rate function depends on the distribution of .

This connects to a general principle: the Kelly strategy minimizes the probability of falling behind any competitor by a given factor over any time horizon. Breiman (1961) proved that for any fixed wealth target , the Kelly strategy minimizes the expected time to reach . The large-deviations perspective shows that Kelly also minimizes the exponential rate at which the probability of ruin decays [source pending].

Rate-distortion (46.02.05). Both and are solutions to convex optimization problems involving functionals. The rate-distortion function minimizes over conditional distributions satisfying an expected distortion constraint. The doubling rate maximizes over strategies on the simplex. Both involve Lagrange multipliers, both have information-theoretic interpretations of their optimizers, and both connect to the duality between compression and estimation.

The parallel extends to the computational level. The rate-distortion function is parameterized by a Lagrange multiplier : . The doubling rate under general odds can be similarly parameterized by introducing a "risk-aversion" parameter : . For , this is the standard Kelly criterion. For , it approaches the entropy-like functional , the expected simple return. The family interpolates between growth-optimality () and return-optimality (), paralleling the rate-distortion tradeoff between rate () and distortion ().

Hypothesis testing (46.04.01). The optimal gambling strategy under uncertain odds involves a hypothesis-testing problem. If the true distribution is either or , the gambler must decide which model to use for betting. The Kelly strategy under model uncertainty reduces to a likelihood-ratio test: bet according to the posterior-weighted average where is the posterior probability of . The growth rate penalty from model uncertainty equals the Chernoff information between and , connecting gambling to the large-deviations theory of hypothesis testing (unit 46.04.02).

Advanced topics

Competitive optimality. Cover (1991) proved that the log-optimal portfolio is competitively optimal in a multiplicative sense. For any constant-rebalanced portfolio , the wealth ratio is a submartingale: . The log-optimal portfolio does not merely win on average; it dominates every competitor pathwise in this multiplicative expectation. This result strengthens Kelly from an expected-value criterion to a competitive guarantee.

Universal portfolios. Cover's universal portfolio (1986) achieves without knowing . The strategy maintains a wealth-weighted mixture over all constant-rebalanced portfolios, with each portfolio's weight proportional to its accumulated wealth under the observed returns. This is a Bayesian mixture with uniform prior on the simplex. The wealth ratio satisfies , giving . The universal strategy achieves the optimal doubling rate asymptotically, with polynomial convergence in and exponential dependence on .

Log-optimality and repeated games. The Kelly strategy is the solution to a minimax problem over nature's choice of distribution. Consider a two-player repeated game where the gambler chooses and nature chooses the outcome . The gambler wants to maximize while nature is adversarial. The minimax strategy for the gambler is the log-optimal portfolio. This connects Kelly betting to online learning and regret minimization: the universal portfolio is the "follow the leader" strategy for the log-loss game.

Fractional Kelly and drawdown control. The fractional Kelly strategy achieves a growth rate where . The optimal that maximizes the Sharpe ratio (growth per unit volatility) is , which coincides with full Kelly. For drawdown-constrained investors, the relationship between and the maximum drawdown is , showing that even small reductions from full Kelly dramatically reduce tail risk.

The fractional Kelly framework can be derived rigorously from the following Taylor expansion. Let . Expanding around :

The first-order term dominates for small , and the second-order correction captures the volatility drag. The optimal from this approximation is , the same as full Kelly when is already the log-optimal portfolio. The fractional Kelly approach is most useful when the gambler's estimate of is noisy: the estimation error introduces additional variance, and the optimal is reduced accordingly. This connects to the "estimation error" literature in portfolio theory, where the Black-Litterman model and shrinkage estimators play roles analogous to fractional Kelly in reducing the impact of parameter uncertainty.

The horse race and the channel. Kelly's original insight was that the horse race is dual to the communication channel. Consider a channel with input (the side information) and output (the race outcome). The channel capacity is . The gambler's maximum growth rate with access to is . If the gambler can choose the distribution of (by designing the signal acquisition), they should maximize — which is exactly the channel capacity problem. The optimal "investigation" of the race outcome is the same as the optimal use of a communication channel. This duality, first noted by Kelly himself, is the reason the paper was titled "A New Interpretation of Information Rate" rather than "A New Theory of Gambling."

Historical & philosophical context Master

In 1956, John Kelly Jr., a physicist at Bell Labs, published "A New Interpretation of Information Rate" in the Bell System Technical Journal [source pending]. Kelly was directly inspired by Shannon's 1948 paper. He observed that if a gambler receives a noisy signal about a race outcome transmitted through a channel, the capacity of that channel determines the maximum achievable growth rate. The connection was exact: the mathematics of optimal gambling and the mathematics of reliable communication share the same structure. Kelly's paper reportedly drew the attention of Shannon himself, and the story goes that Shannon advised Kelly to tone down the gambling language for the Bell Labs audience.

Ed Thorp, a mathematician at MIT and later UC Irvine, operationalized Kelly's theory. His 1961 paper "A Favorable Strategy for Twenty-One" showed that Blackjack card counting creates a sequence of favorable bets where the Kelly strategy applies. Thorp used the Kelly criterion to size bets: increase the wager when the remaining deck is rich in tens and aces, decrease it otherwise. He then extended the approach to portfolio management, running one of the first quantitative hedge funds. His 1969 paper formalized the continuous-outcome extension and established practical viability [source pending].

The relationship between Kelly betting and Markowitz mean-variance portfolio theory has been debated for over five decades. Mean-variance optimization maximizes expected return subject to a variance constraint, producing an efficient frontier in the risk-return plane. Kelly betting maximizes , which has no variance constraint. The two approaches can yield radically different portfolios. The Kelly strategy can exhibit variance that a mean-variance investor would find intolerable — in a simple binary bet with a 60% chance of doubling and 40% chance of losing everything, Kelly bets 20% of wealth each round, producing large short-term swings. Conversely, a mean-variance optimum can have negative expected log-wealth, meaning ruin is certain in the long run.

Samuelson (1971, 1979) criticized Kelly betting on the grounds that maximizing does not maximize or for concave utility functions other than log. His critique was pointed: in a single-period binary gamble where you win with probability and lose with probability , the Kelly bet is . For , this means betting 2% of wealth. The expected wealth after one round is maximized by betting everything (all-or-nothing), but this leads to ruin with probability 0.49. Samuelson argued that for any reasonable utility function, the Kelly bet is not optimal. However, in the repeated setting, the argument reverses: any strategy other than Kelly has a strictly lower almost-sure growth rate, and with probability 1, the Kelly bettor eventually surpasses all competitors. This "asymptotic" argument is the basis for Kelly's defenders.

The debate has not been fully resolved. The "fractional Kelly" compromise — betting a fraction of the Kelly amount — interpolates between the two objectives. For an investor with constant relative risk aversion , the optimal strategy is fractional Kelly with ; full Kelly corresponds to (log utility). In practice, most quantitative funds that use Kelly-inspired position sizing employ fractional Kelly, typically with between 0.25 and 0.5. The reduction in growth rate is quadratic in the deviation from full Kelly (), so cutting the Kelly bet in half reduces the growth rate by roughly a quarter while halving the volatility of log-returns.

Bibliography Master

  1. Kelly, J. L. (1956). "A New Interpretation of Information Rate." Bell System Technical Journal 35: 917-926. The founding paper that connected Shannon's information theory to proportional gambling and established the identity between growth rate and mutual information gain.

  2. Thorp, E. O. (1969). "Optimal Gambling Systems for Favorable Games." Review of the International Statistical Institute 37:3: 273-293. Extended Kelly's discrete framework to continuous settings and demonstrated practical application through Blackjack card counting.

  3. Cover, T. M. (1991). "Universal Portfolios." Mathematical Finance 1:1: 1-29. Introduced the universal portfolio strategy that achieves log-optimal growth without prior knowledge of the return distribution.

  4. Cover, T. M. & Thomas, J. A. (2006). Elements of Information Theory (2nd ed.). Wiley. Chapters 6 and 16 provide the definitive treatment of gambling as an information-theoretic problem and its extension to portfolio theory.

  5. Breiman, L. (1961). "Optimal Gambling Systems for Favorable Games." Proceedings of the 4th Berkeley Symposium 1: 65-78. Proved that the Kelly strategy minimizes the expected time to reach a given wealth target, complementing the growth-rate maximization result.

  6. Hakansson, N. H. (1971). "Capital Growth and the Mean-Variance Approach to Portfolio Selection." JFQA 6:1: 517-557. Analyzed the relationship between log-optimal growth and mean-variance efficiency, establishing conditions for agreement.

  7. MacLean, L. C., Thorp, E. O., & Ziemba, W. T. (2011). The Kelly Capital Growth Investment Criterion. World Scientific. Comprehensive collection of the major papers on Kelly betting with commentary.

Meta Master

This unit formalized the horse race gambling model, defined the doubling rate , proved that proportional betting is the unique optimal strategy via the non-negativity of KL divergence, and established that side information increases the doubling rate by exactly for any odds structure. The extension to continuous asset returns through the log-optimal portfolio and Cover's universal portfolio was developed.

For the information-theory spine, this unit adds the third major operational interpretation of entropy and mutual information: entropy determines the doubling rate structure under general odds, and mutual information is the monetary value of side information. The identity ties gambling directly to the core information measures (unit 46.01.02), while the gambling-compression duality connects to source coding (unit 46.02.02). The universal portfolio extends the information-theoretic framework to sequential decision-making under uncertainty.