Skip to content
LeetQuant
E03 Information Theory

E03 · Information Theory · Lesson 3 of 4

Information and Betting

The horse-race model of Kelly betting: the optimal doubling rate is log-odds minus entropy, betting the wrong probabilities costs exactly the KL divergence, and side information raises the doubling rate by exactly the mutual information.

16 min

Objective

Turn the abstract quantities of the previous two lessons into money. The Kelly lessons showed that repeated betting should maximise expected log wealth. Here we use the horse-race formulation, where that growth rate splits cleanly into entropy, KL divergence and mutual information, and compute how much a tip is worth.

The horse race

There are mm horses; horse ii wins with probability pip_i. The track pays oio_i-for-1 on horse ii: a unit bet returns oio_i (including the stake) if it wins and nothing otherwise. Each race, you split your whole wealth across horses in fractions bi≥0b_i \ge 0 with ∑ibi=1\sum_i b_i = 1. If horse XX wins, wealth is multiplied by bXoXb_X o_X, so after nn independent races

Wn=W0∏k=1nbXkoXk≈W0 2nW(b,p),W(b,p)=∑ipilog⁡2(bioi),W_n = W_0 \prod_{k=1}^n b_{X_k} o_{X_k} \approx W_0\, 2^{nW(b, p)}, \qquad W(b, p) = \sum_i p_i \log_2(b_i o_i),

where W(b,p)W(b, p) is the doubling rate: the number of times wealth doubles per race, by the law of large numbers. One bit of doubling rate means wealth doubles every race.

Betting the whole wealth is less restrictive than it looks. When the odds are fair in the bookmaker's sense, ∑i1/oi=1\sum_i 1/o_i = 1 (no track take), holding back cash is equivalent to betting it in proportions 1/oi1/o_i, which returns exactly the stake whoever wins. So with fair odds the full-investment model loses nothing. If ∑i1/oi<1\sum_i 1/o_i < 1 the same bet is a sure profit, which is the arbitrage in the three-horse practice problem.

Proportional betting is optimal

Split the doubling rate:

W(b,p)=∑ipilog⁡2oi+∑ipilog⁡2bi=∑ipilog⁡2oi−H(p)−D(p ∥ b).W(b, p) = \sum_i p_i \log_2 o_i + \sum_i p_i \log_2 b_i = \sum_i p_i \log_2 o_i - H(p) - D(p \,\|\, b).

Only the last term depends on bb, and it is minimised (at zero) by b=pb = p. So:

b∗=p,W∗(p)=∑ipilog⁡2oi−H(p).b^* = p, \qquad W^*(p) = \sum_i p_i \log_2 o_i - H(p).

Three facts follow, all worth stating in an interview:

  1. Bet your probabilities, ignore the odds. With full investment, the Kelly allocation does not depend on oio_i at all.
  2. Wrong beliefs cost exactly KL. Betting b=qb = q when the truth is pp gives W=W∗−D(p ∥ q)W = W^* - D(p \,\|\, q). Overconfidence is fatal: if qi=0q_i = 0 for a horse that can win, D=∞D = \infty and you go broke the first time it wins.
  3. Under uniform odds oi=mo_i = m, growth is lack of entropy. W∗=log⁡2m−H(p)W^* = \log_2 m - H(p): you profit to the extent that the race is more predictable than the bookmaker's uniform pricing implies. With odds oi=1/rio_i = 1/r_i set from the bookmaker's own probabilities rr, W∗=D(p ∥ r)W^* = D(p \,\|\, r), so the edge is the divergence between your beliefs and the market's.

Worked example

growth from predictability

Four horses win with probabilities p=(12,14,18,18)p = (\tfrac12, \tfrac14, \tfrac18, \tfrac18) and every horse pays 4-for-1. What should you bet, what is the doubling rate, and what happens if you bet as though the horses were equally likely?

Show solution

Odds are fair: ∑1/oi=4×14=1\sum 1/o_i = 4 \times \tfrac14 = 1, so full investment is without loss.

Optimal bet: b∗=pb^* = p, so half of wealth on horse 1, a quarter on horse 2, an eighth on each of horses 3 and 4.

Doubling rate:

W∗=log⁡24−H(p)=2−1.75=0.25 bits per race.W^* = \log_2 4 - H(p) = 2 - 1.75 = 0.25 \text{ bits per race}.

Check directly: if horse 1 wins, wealth becomes 12×4=2\tfrac12 \times 4 = 2 times; horse 2, 14×4=1\tfrac14 \times 4 = 1; horses 3 or 4, 18×4=12\tfrac18 \times 4 = \tfrac12. So W=12(1)+14(0)+14(−1)=0.25W = \tfrac12(1) + \tfrac14(0) + \tfrac14(-1) = 0.25. Wealth grows by a factor of 20.25≈1.1892^{0.25} \approx 1.189 per race, so it doubles every 4 races.

Uniform beliefs: betting 14\tfrac14 on each horse returns 14×4=1\tfrac14 \times 4 = 1 whoever wins: growth zero. The loss is D(p ∥ u)=0.25D(p \,\|\, u) = 0.25 bits, exactly the code-length waste from the entropy lesson. Mis-coding and mis-betting are the same mistake.

The value of side information

Now suppose you see a signal YY before each race (a tip, a track report, a model output) jointly distributed with the winner XX. The best you can do is to bet the conditional probabilities, b∗(x∣y)=p(x∣y)b^*(x \mid y) = p(x \mid y), giving

W∗(X∣Y)=∑x,yp(x,y)log⁡2ox−H(X∣Y).W^*(X \mid Y) = \sum_{x, y} p(x, y)\log_2 o_x - H(X \mid Y).

The odds term is the same average ∑xp(x)log⁡2ox\sum_x p(x)\log_2 o_x as before, so subtracting W∗(X)=∑xp(x)log⁡2ox−H(X)W^*(X) = \sum_x p(x)\log_2 o_x - H(X):

ΔW=W∗(X∣Y)−W∗(X)=H(X)−H(X∣Y)=I(X;Y).\Delta W = W^*(X \mid Y) - W^*(X) = H(X) - H(X \mid Y) = I(X; Y).

The increase in the doubling rate equals the mutual information between the signal and the outcome, whatever the odds, as long as you bet your whole wealth (which costs nothing when the odds are fair). A tip worth 1 bit doubles your wealth per race relative to betting without it, every race.

This gives a clean answer to "how much would you pay for this signal?": a subscription that costs a fraction cc of wealth per race is worth it if and only if log⁡211−c<I(X;Y)\log_2\frac{1}{1-c} < I(X; Y).

Worked example

a perfect partial tip and a noisy tip

(a) In the four-horse race above (probabilities 12,14,18,18\tfrac12, \tfrac14, \tfrac18, \tfrac18), an insider tells you before each race only whether horse 1 will win. What is the new doubling rate? Repeat with odds (3,3,6,6)(3, 3, 6, 6)-for-1.

(b) Two horses are equally likely and each pays 2-for-1. A tipster names the winner correctly 75% of the time, independently of which horse wins. What is the doubling rate with the tip, and what is the bet?

Show solution

(a) Y=1{X=1}Y = \mathbf{1}\{X = 1\} is a function of XX with P(Y=1)=12P(Y = 1) = \tfrac12, so I(X;Y)=H(Y)=1I(X; Y) = H(Y) = 1 bit. The doubling rate should rise from 0.250.25 to 1.251.25.

Direct check. If Y=1Y = 1, put everything on horse 1: wealth ×4\times 4, log⁡24=2\log_2 4 = 2 bits. If Y=0Y = 0, the winner is horse 2, 3 or 4 with conditional probabilities (12,14,14)(\tfrac12, \tfrac14, \tfrac14); betting those gives log⁡24−h(12,14,14)=2−1.5=0.5\log_2 4 - h(\tfrac12, \tfrac14, \tfrac14) = 2 - 1.5 = 0.5 bits. Average: 12(2)+12(0.5)=1.25\tfrac12(2) + \tfrac12(0.5) = 1.25 bits. Wealth now multiplies by 21.25≈2.382^{1.25} \approx 2.38 per race.

With odds (3,3,6,6)(3, 3, 6, 6) (still fair: 13+13+16+16=1\tfrac13 + \tfrac13 + \tfrac16 + \tfrac16 = 1): without the tip, W∗=12log⁡23+14log⁡23+14log⁡26−1.75≈0.085W^* = \tfrac12\log_2 3 + \tfrac14\log_2 3 + \tfrac14\log_2 6 - 1.75 \approx 0.085 bits. With it, Y=1Y = 1 gives log⁡23\log_2 3; Y=0Y = 0 gives 12log⁡2(12⋅3)+14log⁡2(14⋅6)×2=log⁡21.5≈0.585\tfrac12\log_2(\tfrac12 \cdot 3) + \tfrac14\log_2(\tfrac14 \cdot 6) \times 2 = \log_2 1.5 \approx 0.585. Average 12(1.585)+12(0.585)≈1.085\tfrac12(1.585) + \tfrac12(0.585) \approx 1.085. The increase is again exactly 1 bit: the odds change both rates, never the difference.

(b) XX is a fair bit and YY agrees with it with probability 0.750.75, so

I(X;Y)=H(X)−H(X∣Y)=1−h(0.75)≈1−0.811=0.189 bits.I(X; Y) = H(X) - H(X \mid Y) = 1 - h(0.75) \approx 1 - 0.811 = 0.189 \text{ bits}.

Without the tip, odds of 2-for-1 on a fair race give W∗=1−1=0W^* = 1 - 1 = 0. With it, bet p(x∣y)p(x \mid y): 75% of wealth on the tipped horse and 25% on the other. If the tip is right, wealth becomes 0.75×2=1.50.75 \times 2 = 1.5 times; if wrong, 0.25×2=0.50.25 \times 2 = 0.5 times:

W=0.75log⁡21.5+0.25log⁡20.5≈0.75(0.585)−0.25=0.189 bits,W = 0.75\log_2 1.5 + 0.25\log_2 0.5 \approx 0.75(0.585) - 0.25 = 0.189 \text{ bits},

a growth factor of 20.189≈1.142^{0.189} \approx 1.14 per race.

Link to the Kelly fraction. Split the 75% on the tipped horse into 25% + 50%. The 25% on each horse returns 50% of wealth whoever wins, exactly like holding cash. The bet is therefore equivalent to keeping 50% in cash and staking 50% at even money on the tipped horse, and 50% is the familiar Kelly fraction 2p−12p - 1 for an even-money bet with p=0.75p = 0.75. The Kelly formula and "bet your posterior" are the same rule.

Knowledge check

Two equally likely horses each pay 2-for-1. A tipster is right 60% of the time, independently of the winner. If you bet your whole wealth optimally using the tip, what is the doubling rate per race?

Knowledge check

In a race with fair odds, you bet your whole wealth in proportions q while the true win probabilities are p ≠ q. Compared with the optimal doubling rate, your doubling rate is:

Knowledge check

You must stake your whole wealth each race. The bookmaker cuts every horse's payout by 10% (each o_i becomes 0.9 o_i). How does the increase in doubling rate from a given tip change?

Key takeaways

  • Doubling rate W(b,p)=∑ipilog⁡2(bioi)W(b, p) = \sum_i p_i\log_2(b_i o_i); with full investment the optimum is b∗=pb^* = p and W∗=∑ipilog⁡2oi−H(p)W^* = \sum_i p_i\log_2 o_i - H(p).
  • Betting beliefs qq instead of the truth pp costs exactly D(p ∥ q)D(p \,\|\, q) bits per race.
  • Side information YY raises the optimal doubling rate by exactly I(X;Y)I(X; Y), independently of the odds.
  • "Bet your posterior" with a cash-equivalent hedge reproduces the Kelly fraction 2p−12p - 1 at even money.
  • Real signals are estimated: upward-biased MI and estimation error mean realised growth is below the in-sample information.

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).