5D Library › Slow-Crash Liquidity Reserves, Real-Asset Option Valuation and Intergenerational Wealth Preservation · 中文
Chapter 5. Ergodicity: Averages That Mislead
Peters’ coin
Peters uses a simple game to show the difference between the “ensemble average” and the “time average” (Peters 2019): each round, wealth is multiplied by 1.5 or by 0.6 with equal chance.
Calculation
# Chapter 5. p09: Peters' coin. Each round wealth is multiplied by 1.5 or
# by 0.6 with equal chance. The ensemble average grows 5% a round; the
# growth that a single player experiences over time is
# sqrt(1.5 x 0.6) - 1 per round. 10,000 players, 100 rounds, seed 88.
import random
from math import sqrt
if __name__ == "__main__":
rng = random.Random(88)
print(" expected gain per round (ensemble): {:+.3f}".format(
0.5 * 1.5 + 0.5 * 0.6 - 1))
print(" time-average growth per round: {:+.4f}".format(
sqrt(1.5 * 0.6) - 1))
w = [1.0] * 10000
print(" round mean wealth median wealth share below start")
for r in range(1, 101):
w = [x * (1.5 if rng.random() < 0.5 else 0.6) for x in w]
if r in (10, 25, 50, 100):
s = sorted(w)
print(" {:5d} {:11.3f} {:13.4f} {:17.3f}".format(
r, sum(w) / 10000, s[5000],
sum(1 for x in w if x < 1) / 10000))
print(" theory at round 100: mean {:.1f}, median {:.4f}".format(
1.05 ** 100, 0.9 ** 50))
# expected gain per round (ensemble): +0.050
# time-average growth per round: -0.0513
# round mean wealth median wealth share below start
# 10 1.613 0.5905 0.625
# 25 3.621 0.1695 0.654
# 50 11.763 0.0718 0.757
# 100 19.255 0.0052 0.867
# theory at round 100: mean 131.5, median 0.0052By the ensemble average, the expected gain each round is +0.050, which looks like a good game; but a single person playing round after round actually experiences growth of -0.0513 a round. When ten thousand players reach round 100, median wealth is only 0.0052, and 0.867 of them are below where they began; the sample mean is 19.255, far below the theoretical ensemble average of 131.5, because the theoretical average rests on a tiny number of lucky players who hardly ever turn up even among ten thousand. A family has only one path through time; what matters to it is the time average, not the ensemble average.
Leverage, Kelly and crash years
The same reasoning decides how much leverage to use. The Kelly criterion maximises the expected logarithm of wealth (Kelly 1956). p10 compares yearly market returns drawn from a normal law with returns from a mixture that has the same mean and standard deviation but a 0.03 chance each year of a crash year.
Calculation
# Chapter 5. p10: Leverage and time-average growth. Yearly market return
# R has mean 6% and sd 18%; cash pays 2%. A fund holds L times its
# wealth in the market, so wealth grows by 1 + 0.02 + L (R - 0.02).
# Time-average growth is E[log] of that factor; a factor of zero or
# less is ruin, counted here as a loss of 99% (factor 0.01). R comes
# from a normal law, or from a crash mixture with the same mean and sd:
# with chance 0.03 a crash year (mean -40%, sd 10%), otherwise a normal
# year (mean 7.42%, sd 16.23%). 200,000 years per law, seed 88. Kelly
# under the normal law: L = 0.04 / 0.18^2.
import random
from math import log
def draws(rng, crash, n=200000):
out = []
for _ in range(n):
if crash and rng.random() < 0.03:
out.append(rng.gauss(-0.40, 0.10))
elif crash:
out.append(rng.gauss(0.0742, 0.1623))
else:
out.append(rng.gauss(0.06, 0.18))
return out
def growth(rs, lev):
g, ruin = 0.0, 0
for r in rs:
f = 1.02 + lev * (r - 0.02)
if f <= 0:
ruin += 1
f = 0.01
g += log(f)
return g / len(rs), ruin / len(rs)
if __name__ == "__main__":
rng = random.Random(88)
normal, crash = draws(rng, False), draws(rng, True)
m = sum(crash) / len(crash)
sd = (sum((x - m) ** 2 for x in crash) / len(crash)) ** 0.5
print(" crash mixture check: mean {:.3f}, sd {:.3f}".format(m, sd))
print(" Kelly leverage under the normal law: {:.2f}".format(
0.04 / 0.18 ** 2))
print(" leverage growth, normal growth, crashes"
" ruin in 30 years")
for lev in (0.5, 1.0, 1.5, 2.0, 2.5, 3.0):
gn, _ = growth(normal, lev)
gc, rc = growth(crash, lev)
print(" {:8.1f} {:14.4f} {:15.4f} {:16.3f}".format(
lev, gn, gc, 1 - (1 - rc) ** 30))
# crash mixture check: mean 0.060, sd 0.180
# Kelly leverage under the normal law: 1.23
# leverage growth, normal growth, crashes ruin in 30 years
# 0.5 0.0355 0.0354 0.000
# 1.0 0.0433 0.0422 0.000
# 1.5 0.0419 0.0364 0.004
# 2.0 0.0253 0.0019 0.161
# 2.5 -0.0126 -0.0466 0.428
# 3.0 -0.0693 -0.0921 0.612Under the normal law the Kelly leverage is 1.23, and leverage of 1.0 and 1.5 give similar time-average growth (0.0433 and 0.0419). Once crash years are added, growth at leverage 1.5 falls to 0.0364; at leverage 2.0 it is almost zero (0.0019), with a 0.161 chance of ruin within thirty years; at leverage 2.5 the chance of ruin rises to 0.428. Neither the mean nor the standard deviation has changed, only the tail; the “optimal leverage” computed under the normal law is already too high in a world with crash years.
Hypothesis · not established
The author’s interpretation (not yet tested): for family wealth held over decades, the Kelly leverage computed under a normal law should be at least halved. What would show it wrong: in simulations based on long historical returns that include at least two large crashes, a portfolio held at the normal-law Kelly leverage has time-average growth and ruin probability no worse than at half-Kelly.
Summary
The ensemble average can make a game that is bad for each person look good; a family lives on a single path through time and should decide by time-average growth. Crash years in the tail turn the optimal leverage computed under a normal law into a dangerous one.
References
Fan, Y. (2026). Slow-Crash Liquidity Reserves, Real-Asset Option Valuation and Intergenerational Wealth Preservation: Thirty-Month Drawdown Kinetics, Distressed Resource Acquisition and Ergodic Dynasty Trusts [慢崩盘流动性储备、实物资产期权估值与跨代财富保全动力学] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090231 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).