关于「拉尔夫·文斯的最优 f:交易者单位下的凯利及其回撤」,《体制凯利、回撤约束与生命周期杠杆》给出的定量结论是什么?
结论:第五章核对拉尔夫·文斯的最优 f:f 超过 0.594 后增长转负,恰为最优值 0.300 的两倍;用 30 笔交易估计时,用估计值的一半反而更好。
数据口径:书中的模型参数均为示意或合成模型;唯一的历史数字是 1987 年的单日跌幅;全部计算由书中程序生成;本书不是投资、法律或税务建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.300, 0.594
| mean trade 38.5, largest loss 300 | ||||
| optimal f 0.300: one contract per 999 dollars | ||||
| growth turns negative above f = 0.594 | ||||
| f | f/opt | TWR(20) | median MDD | P(MDD>=50%) |
| 0.075 | 0.25 | 1.18 | 0.259 | 0.019 |
| 0.150 | 0.50 | 1.33 | 0.468 | 0.407 |
| 0.300 | 1.00 | 1.45 | 0.760 | 0.976 |
| 0.450 | 1.50 | 1.32 | 0.918 | 1.000 |
| 0.601 | 2.00 | 0.98 | 0.983 | 1.000 |
查看完整验算程序
# Chapter 5. p09: Ralph Vince's optimal f on an illustrative list of 20
# trade results (dollars per contract). Holding period return of a
# trade t at fraction f is 1 + f * t / B, B the largest loss (300): one
# contract is traded for every B / f dollars of equity. Optimal f
# maximizes the geometric mean; TWR is the product over the list.
# Drawdowns at each f are measured on 2,000 sequences of 100 trades
# drawn from the list with replacement, seed 98.
import random
from math import exp, log
TRADES = (250, -100, 80, -150, 400, -120, -90, 60, 300, -200,
150, -80, -110, 500, -60, 90, -140, 70, -300, 220)
B = -min(TRADES)
def g(f):
return sum(log(1 + f * t / B) for t in TRADES) / len(TRADES)
def argmax(fun, lo, hi):
for _ in range(100):
a, b = lo + (hi - lo) / 3, hi - (hi - lo) / 3
lo, hi = (a, hi) if fun(a) < fun(b) else (lo, b)
return (lo + hi) / 2
def max_dd(seq, f):
w = peak = 1.0
dd = 0.0
for t in seq:
w *= 1 + f * t / B
peak = max(peak, w)
dd = max(dd, 1 - w / peak)
return dd
if __name__ == "__main__":
fo = argmax(g, 0.0, 0.999)
lo, hi = fo, 0.999
for _ in range(100):
mid = (lo + hi) / 2
lo, hi = (mid, hi) if g(mid) > 0 else (lo, mid)
print(" mean trade {:.1f}, largest loss {}".format(
sum(TRADES) / 20, B))
print(" optimal f {:.3f}: one contract per {:.0f} dollars".format(
fo, B / fo))
print(" growth turns negative above f = {:.3f}".format(lo))
rng = random.Random(98)
seqs = [[rng.choice(TRADES) for _ in range(100)] for _ in range(2000)]
print(" f f/opt TWR(20) median MDD P(MDD>=50%)")
for k in (0.25, 0.5, 1.0, 1.5, 2.0):
f = k * fo
dd = sorted(max_dd(s, f) for s in seqs)
print(" {:.3f} {:5.2f} {:7.2f} {:10.3f} {:11.3f}".format(
f, k, exp(20 * g(f)), dd[1000],
sum(d >= 0.5 for d in dd) / 2000))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《体制转换分数凯利、最大回撤约束与生命周期杠杆配置》第 5 章「拉尔夫·文斯的最优 f:交易者单位下的凯利及其回撤」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090256
DOI: 10.5281/zenodo.24090256 · 阅读本章所在专著 · 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}
}