关于「分仓棘轮、凯利准则与模型外风险」,《隐含波动率、偏度与垂直价差》给出的定量结论是什么?
结论:在每笔亏损有上限、按固定比例下注的假设下,交易资本在几何意义上不会归零,但这不等于没有风险。凯利比例使长期增长率最大,同时伴随很深的回撤;超过约两倍凯利比例,增长率变为负。本书按作者的确认,只对高水位以上的增量利润执行三阶棘轮:提取只来自新高部分,每次提取后交易资本仍高于此前的最高水位,提取本身不会侵蚀本金,也不会改变增长率的符号;但交易资本的回撤与全额复利相同,亏损照样会使它跌破初始本金。按笔提取则是一个陷阱:只要 \(0.4pb \le q\),交易资本的长期增长率就为负。亏损扎堆、跳空、流动性与保证金等模型外风险会显著增加回撤,甚至使增长率变为负。
数据口径:一个熊市看跌垂直价差最多亏多少、最多赚多少,交易者在开仓时就知道;可「持仓 7—10 个交易日没有起色就平仓」这条经验规则,能被证明吗?本书是教学与研究用的数学模型,不是投资建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;书中所有价格与交易都是虚构或示意的。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库
| win prob 0.45, win/loss 1.5: edge 0.125 per unit risked, Kelly fraction f* | 0.0833 |
| f / f* | 0.25 0.5 1.0 1.5 2.0 2.5 |
| g x 1000 | 2.27 3.87 5.15 3.89 0.14 -6.12 |
| after 10 straight losses at f*: capital x 0.419 (never zero, since each loss <= f* < 1) | |
| 250 trades, 20,000 paths median: trading all P(drawdown > | 50%) |
| capital wealth trading trading+buffer | |
| full compounding, f*/2 | 2.501 2.50 36.5% 36.5% |
| full compounding, f* | 3.268 3.27 97.2% 97.2% |
| full compounding, 2 f* | 0.845 0.85 100.0% 100.0% |
| ADOPTED: above high-water, f*/2 | 1.301 2.28 36.5% 18.4% |
| ADOPTED: above high-water, f* | 1.240 3.04 97.2% 70.8% |
| ADOPTED: above high-water, 2f* | 0.318 2.71 100.0% 98.6% |
| WARNING: per winning trade, f* | 0.001 1.41 100.0% 38.1% |
| high-water ratchet, every path: after each skim capital is still above the | |
| old peak, and total skimmed | 1.5 x (HWM - start): f*/2 ok, f* ok, 2f* ok |
| but losses still bite: trading capital ends below its start in | |
| 27.2% of paths (f*/2), 41.0% of paths (f*), 69.4% of paths (2f*) | |
| per-trade ratchet: log growth of trading capital -25.9 per 1000 per trade -> x 0.0015 | |
| long-run log growth of trading capital per 1000 trades f*/2 f* | |
| full compounding (exact g) | 3.87 5.15 |
| ratchet above high-water (one path, 2,000,000 trades) | 1.57 2.12 |
核心公式
\[C_{n+1} \ge (1 - f)\,C_n \quad\Longrightarrow\quad C_n \ge (1-f)^n C_0 > 0.\]
查看完整验算程序
# Fixed-fraction sizing with a capped loss, the Kelly growth rate, and the author's
# three-tier ratchet: 30 % withdrawn, 30 % to a Treasury buffer at 3 %/yr, 40 % left to
# compound. ADOPTED RULE: the ratchet applies only to the part of trading capital above
# its high-water mark (HWM); a recovery back up to the old peak is never skimmed. Shown
# for contrast and as a WARNING: skimming 60 % of every winning trade. ILLUSTRATIVE
# trades: each risks a fraction f of trading capital; it loses the whole risk with
# prob. 0.55, or gains 1.5 x the risk.
import math, random
P, B, N_TRADES, PER_YEAR = 0.45, 1.5, 250, 50
def growth(f): # expected log growth of trading capital per trade
return P * math.log(1 + f * B) + (1 - P) * math.log(1 - f)
def run(f, ratchet, rng, n=N_TRADES):
cap, buf, out, hwm = 1.0, 0.0, 0.0, 1.0
peak, dd, peak2, dd2, ok = 1.0, 0.0, 1.0, 0.0, True
for _ in range(n):
buf *= math.exp(0.03 / PER_YEAR)
gain = cap * f * (B if rng.random() < P else -1.0)
skim = 0.0
if ratchet == "trade" and gain > 0:
skim = 0.6 * gain
elif ratchet == "hwm" and cap + gain > hwm:
skim = 0.6 * (cap + gain - hwm)
out += skim / 2; buf += skim / 2; cap += gain - skim
if ratchet == "hwm" and skim > 0:
ok = ok and cap > hwm # still above the old peak after a skim
hwm = max(hwm, cap)
peak = max(peak, cap); dd = max(dd, 1 - cap / peak)
peak2 = max(peak2, cap + buf); dd2 = max(dd2, 1 - (cap + buf) / peak2)
if ratchet == "hwm": # all skims = 1.5 x (HWM - start)
skimmed = out * 2 # (buffer interest excluded)
ok = ok and abs(skimmed - 1.5 * (hwm - 1.0)) < 1e-9 * max(1.0, hwm)
return cap, buf, out, dd, dd2, ok
def long_run(f, ratchet, n=2000000, seed=7):
# long-run log growth of trading capital per trade, from one long path; the state is
# x = capital / HWM, since sizing is proportional the scale does not matter
rng, x, lg = random.Random(seed), 1.0, 0.0
for _ in range(n):
y = x * (1 + f * (B if rng.random() < P else -1.0))
if ratchet and y > 1: # new high: keep 40 % of the excess
lg += math.log((1 + 0.4 * (y - 1)) / x); x = 1.0
else:
lg += math.log(y / x); x = min(y, 1.0) if ratchet else 1.0
return lg / n
if __name__ == "__main__":
k = P - (1 - P) / B
print(f"win prob {P}, win/loss {B}: edge {P * B - (1 - P):.3f} per unit risked,"
f" Kelly fraction f* = {k:.4f}")
print(" f / f* 0.25 0.5 1.0 1.5 2.0 2.5")
print(" g x 1000" + "".join(f"{1000 * growth(x * k):7.2f}" for x in
(0.25, 0.5, 1.0, 1.5, 2.0, 2.5)))
print(f"after 10 straight losses at f*: capital x {(1 - k) ** 10:.3f}"
" (never zero, since each loss <= f* < 1)")
print(f"{N_TRADES} trades, 20,000 paths median: trading all P(drawdown >= 50%)")
print(" capital wealth trading trading+buffer")
checks = []
for lab, f, rat in (("full compounding, f*/2", k / 2, None),
("full compounding, f*", k, None),
("full compounding, 2 f*", 2 * k, None),
("ADOPTED: above high-water, f*/2", k / 2, "hwm"),
("ADOPTED: above high-water, f*", k, "hwm"),
("ADOPTED: above high-water, 2f*", 2 * k, "hwm"),
("WARNING: per winning trade, f*", k, "trade")):
rng = random.Random(19); res = [run(f, rat, rng) for _ in range(20000)]
med = lambda x: sorted(x)[len(x) // 2]
cap = med([r[0] for r in res]); tot = med([r[0] + r[1] + r[2] for r in res])
p50 = sum(r[3] >= 0.5 for r in res) / len(res)
p2 = sum(r[4] >= 0.5 for r in res) / len(res)
print(f" {lab:31s} {cap:7.3f} {tot:6.2f} {p50:6.1%} {p2:6.1%}")
if rat == "hwm":
checks.append((lab.split(", ")[1], all(r[5] for r in res),
sum(r[0] < 1 for r in res) / len(res)))
print("high-water ratchet, every path: after each skim capital is still above the")
print(" old peak, and total skimmed = 1.5 x (HWM - start): "
+ ", ".join(f"{f} {'ok' if c else 'FAILED'}" for f, c, _ in checks))
print(" but losses still bite: trading capital ends below its start in")
print(" " + ", ".join(f"{b:.1%} of paths ({f})" for f, _, b in checks))
g = P * math.log(1 + 0.4 * k * B) + (1 - P) * math.log(1 - k)
print(f"per-trade ratchet: log growth of trading capital {1000 * g:+.1f} per 1000"
f" per trade -> x {math.exp(N_TRADES * g):.4f}")
print("long-run log growth of trading capital per 1000 trades f*/2 f*")
print(f" full compounding (exact g) "
f"{1000 * growth(k / 2):5.2f} {1000 * growth(k):5.2f}")
print(f" ratchet above high-water (one path, 2,000,000 trades) "
f"{1000 * long_run(k / 2, True):5.2f} {1000 * long_run(k, True):5.2f}")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《期权隐含波动率曲面、偏度溢价与垂直价差结构的定量风控》第 6 章「分仓棘轮、凯利准则与模型外风险」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796765
DOI: 10.5281/zenodo.23796765 · 阅读本章所在专著 · 5DL-B-038 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026038,
author = {Fan, Yafu},
title = {Implied Volatility Surfaces, Skew Premia and Quantitative Risk Control of Vertical Spreads},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23796765},
url = {https://doi.org/10.5281/zenodo.23796765}
}