关于「实践与预注册检验」,《清算瀑布与协整套利》给出的定量结论是什么?
结论:四步中共有六处被标记。第一步:15 倍杠杆的强平距离为 6.20%,在示意的波动率下只有 1.7 个日标准差,一天内触及的概率约 8%,三天内约 31%。第二步:一笔占日成交量 2% 的订单,按平方根律估计冲击在 0.26% 到 0.78% 之间,但它是现价 1% 以内可见深度的 1.3 倍:第一章的衰减订单簿说明,这种情况下平方根律给出的数字可能严重低估真实冲击。第三步最有教益:这个虚构配对在前 500 天确实是协整的(程序就是这样生成的),但第一个窗口的检验统计量 −3.27 没有达到 −3.36,第二个窗口勉强通过;第三个窗口中价差已经变成随机游走,统计量只有 −1.42,对冲比率从约 1.2 漂到 1.50,「半衰期」变成 41 天。第四步:对冲比率自开仓以来变了 9.2%,持仓 35 天已超过 3 个半衰期的时间止损。这份核查表并不告诉你该做什么,它只是把几个容易被忽视的数字摆到桌面上。
数据口径:本书是教学与研究用的数学模型,不是投资、交易、税务或法律建议;杠杆与衍生品可能造成全部本金甚至超出本金的损失,回测与模拟不代表未来收益。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序,全部核对)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.26, 0.78, 1.3, 1.50, 1.7, 35
| 1. leverage and distance to liquidation (long, isolated, m | 0.5 %) |
| distance 6.20% | 1.7 daily sd; P(touch) 1 day 8.1%, 3 days 31.3% |
| -> FLAG (rule: distance > | 3 daily sd) |
| 2. order-book depth and impact cost (square-root rule, Y between 0.5 and 1.5) | |
| order 2.0% of daily volume: impact 0.26% to 0.78% | |
| order / visible depth within 1 % | 1.3x -> FLAG (rule: order <= depth within 1 %) |
| 3. cointegration stability (fictional pair, three 250-day windows) | |
| window 1: EG t | -3.27 (5 % value -3.36), hedge 1.17, half-life 8.0 d -> FLAG |
| window 2: EG t | -3.42 (5 % value -3.36), hedge 1.25, half-life 7.6 d -> ok |
| window 3: EG t | -1.42 (5 % value -3.36), hedge 1.50, half-life 41.3 d -> FLAG |
| 4. hedge-ratio update and exits | |
| hedge ratio moved +9.2% since entry -> FLAG: re-hedge or close | |
| held 35 days vs time stop 3 x half-life | 27 days -> FLAG: close |
| stop at |z| > 4 written down before entry: yes |
查看完整验算程序
# Four-step checklist applied to a FICTIONAL book: one leveraged perpetual long and one
# pairs position. All numbers invented; thresholds are the author's illustrative choices.
import math, random
from statistics import NormalDist
N = NormalDist(); rng = random.Random(39)
print("1. leverage and distance to liquidation (long, isolated, m = 0.5 %)")
L, m, vol = 15, 0.005, 0.70 # leverage, maintenance rate, annual vol
dist = 1 - (1 - 1 / L) / (1 - m); sd1 = vol / math.sqrt(365)
p1 = 2 * N.cdf(math.log(1 - dist) / sd1)
p3 = 2 * N.cdf(math.log(1 - dist) / (sd1 * 3 ** .5))
print(f" distance {dist:.2%} = {dist / sd1:.1f} daily sd; P(touch) 1 day {p1:.1%},"
f" 3 days {p3:.1%}")
print(f" -> {'FLAG' if dist / sd1 < 3 else 'ok'} (rule: distance >= 3 daily sd)")
print("2. order-book depth and impact cost (square-root rule, Y between 0.5 and 1.5)")
Q, V, depth1 = 4e6, 2e8, 3e6 # order, daily volume, visible depth within 1 %
lo, hi = (Y * sd1 * math.sqrt(Q / V) for Y in (0.5, 1.5))
print(f" order {Q / V:.1%} of daily volume: impact {lo:.2%} to {hi:.2%}")
print(f" order / visible depth within 1 % = {Q / depth1:.1f}x"
f" -> {'FLAG' if Q > depth1 else 'ok'} (rule: order <= depth within 1 %)")
print("3. cointegration stability (fictional pair, three 250-day windows)")
def eg_t(y, x): # Engle-Granger, no augmentation lag
n = len(x); mx, my = sum(x) / n, sum(y) / n
b = sum((u - mx) * (v - my) for u, v in zip(x, y)) / sum((u - mx) ** 2 for u in x)
e = [v - (my - b * mx) - b * u for u, v in zip(x, y)]
d = [e[i] - e[i - 1] for i in range(1, n)]
g = sum(a * c for a, c in zip(e[:-1], d)) / sum(a * a for a in e[:-1])
r = [c - g * a for a, c in zip(e[:-1], d)]
se = math.sqrt(sum(v * v for v in r) / (n - 2) / sum(a * a for a in e[:-1]))
hl = math.log(2) / -math.log(1 + g) if -1 < g < 0 else float("inf")
return g / se, b, hl
x, s, xs, ys = 50.0, 0.0, [], []
for t in range(750):
x += rng.gauss(0, 1)
s = (s + rng.gauss(0, 0.3)) if t >= 500 else 0.93 * s + rng.gauss(0, 0.37)
xs.append(x); ys.append(1.2 * x + s)
for k in range(3):
tt, b, hl = eg_t(ys[250 * k:250 * (k + 1)], xs[250 * k:250 * (k + 1)])
print(f" window {k + 1}: EG t = {tt:6.2f} (5 % value -3.36), hedge {b:.2f},"
f" half-life {hl:5.1f} d -> {'ok' if tt < -3.36 else 'FLAG'}")
print("4. hedge-ratio update and exits")
b_entry, b_now, hl_est, held = 1.20, 1.31, 9.0, 35
print(f" hedge ratio moved {b_now / b_entry - 1:+.1%} since entry"
f" -> {'FLAG: re-hedge or close' if abs(b_now / b_entry - 1) > 0.05 else 'ok'}")
print(f" held {held} days vs time stop 3 x half-life = {3 * hl_est:.0f} days"
f" -> {'FLAG: close' if held > 3 * hl_est else 'ok'}")
print(" stop at |z| > 4 written down before entry: yes")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《高杠杆衍生品清算瀑布、订单簿深度衰竭与协整统计套利》第 8 章「实践与预注册检验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796776
DOI: 10.5281/zenodo.23796776 · 阅读本章所在专著 · 5DL-B-039 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026039,
author = {Fan, Yafu},
title = {Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23796776},
url = {https://doi.org/10.5281/zenodo.23796776}
}