What does Regime Kelly, Drawdown Limits and Lifecycle Leverage conclude, in numbers, about “Full Kelly and the Optimistic Drift: Why a Good Year Breeds Overbetting”?
Answer: Chapter 1 shows that the standard error of a drift estimated from ten years of data is 0.0506, as large as the drift itself, and that a Kelly estimated after a three-year bull run has a median of 5.69 against a whole-history 1.46.
Scope of the numbers: Its model parameters are illustrative or synthetic; the only historical figure is a one-day fall in 1987; all calculations are generated by its programs; the book is not investment, legal or tax advice. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.0506, 1.46, 5.69
| (a) years std error P(estimate > | 2 x true) |
| 5 | 0.0716 0.242 |
| 10 | 0.0506 0.162 |
| 30 | 0.0292 0.043 |
| 100 | 0.0160 0.001 |
| (b) whole history: excess 0.0452, vol 0.1759, Kelly 1.46 | |
| random dates n 85706 median f | 2.42 10%-90% -2.27 to 9.24 |
| share with f > | 2 x whole-history Kelly: 0.460 |
| bull run > | 36 months n 34037 median f 5.69 10%-90% 0.41 to 11.32 |
| share with f > | 2 x whole-history Kelly: 0.740 |
Show the full program
# Chapter 1. p02: How well can the drift be estimated, and what does a
# "tailwind" sample do? (a) i.i.d. world of p01: the standard error of
# a mean excess return estimated from T years is 0.16 / sqrt(T).
# (b) A two-regime market, monthly: bull excess 0.12 a year (vol 0.13),
# bear -0.25 (vol 0.28); a bull month stays bull with chance 0.98, a
# bear month stays bear with 0.92. An investor estimates mean and
# variance from the last 60 months, either at random dates or only
# when a bull run has lasted 36 months or more. Seed 98.
import random
from math import sqrt
from statistics import NormalDist
BULL, BEAR = (0.12 / 12, 0.13 / sqrt(12)), (-0.25 / 12, 0.28 / sqrt(12))
STAY = (0.98, 0.92)
def chain(rng, n):
s, run, out = 0, 0, []
for _ in range(n):
if rng.random() > STAY[s]:
s, run = 1 - s, 0
run += 1
m, sd = BULL if s == 0 else BEAR
out.append((s, run, rng.gauss(m, sd)))
return out
def kelly(xs):
m = sum(xs) / len(xs)
v = sum((x - m) ** 2 for x in xs) / (len(xs) - 1)
return m * 12, v * 12, m / v
if __name__ == "__main__":
z = NormalDist()
print(" (a) years std error P(estimate >= 2 x true)")
for t in (5, 10, 30, 100):
se = 0.16 / sqrt(t)
print(" {:9d} {:9.4f} {:23.3f}".format(
t, se, 1 - z.cdf(0.05 / se)))
rng = random.Random(98)
xs = chain(rng, 600000)
allx = [x for _, _, x in xs]
m_all, v_all, f_all = kelly(allx)
print(" (b) whole history: excess {:.4f}, vol {:.4f}, Kelly {:.2f}"
.format(m_all, sqrt(v_all), f_all))
for name, cond in (("random dates", lambda s, r: True),
("bull run >= 36 months", lambda s, r: s == 0
and r >= 36)):
fs = []
for i in range(60, len(xs), 7):
s, r, _ = xs[i - 1]
if cond(s, r):
fs.append(kelly(allx[i - 60:i])[2])
fs.sort()
q = lambda a: fs[int(a * (len(fs) - 1))]
print(" {:<22} n {:5d} median f {:5.2f} 10%-90% {:5.2f} to "
"{:5.2f}".format(name, len(fs), q(0.5), q(0.1), q(0.9)))
print(" {:<22} share with f >= 2 x whole-history Kelly: {:.3f}"
.format("", sum(f >= 2 * f_all for f in fs) / len(fs)))Single source and citation
Fan, Y. (2026). Regime-Switching Fractional Kelly, Maximum-Drawdown Constraints and Lifecycle Leverage Allocation (Version 1.0.0), Chapter 1: Full Kelly and the Optimistic Drift: Why a Good Year Breeds Overbetting. 5D Library. https://doi.org/10.5281/zenodo.24090256
DOI: 10.5281/zenodo.24090256 · Read the monograph · 5DL-B-098 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026098,
author = {Fan, Yafu},
title = {Regime-Switching Fractional Kelly, Maximum-Drawdown Constraints and Lifecycle Leverage Allocation},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090256},
url = {https://doi.org/10.5281/zenodo.24090256}
}Other chapter answers in this book
- Chapter 2 · Halving and Worse: First Passage of a Kelly Bettor
- Chapter 3 · Hidden Regimes: How Fast a Bear Can Be Recognized and What a Regime-Aware Kelly Buys
- Chapter 4 · Betting Under a Drawdown Limit: The Fraction of Kelly That Keeps a Promise
- Chapter 5 · Ralph Vince's Optimal f: Kelly in Trader's Units, and Its Drawdowns
- Chapter 6 · The Lifecycle Balance Sheet: Human Capital, Early Leverage and the Glide Path
- Chapter 7 · "When Things Flourish They Decline", Feng Xuan's Three Burrows, and Vince Reconsidered
- Chapter 8 · Practice: A Ten-Year Leverage Table, Gap Risk and a Drawdown Warning Rule