关于「实践与预注册检验」,《流动性体制、尾部相依与杠铃配置》给出的定量结论是什么?

结论:第八章给出体制、尾部、相依与缓冲四步核查表,以及一项「条件 EVT 与条件正态 99% VaR」的预注册回测方案(唯一主要结局为两模型突破率之差,最小关注效应 0.25 个百分点,20 个序列、约 9.2 年锁定数据,判定规则写成代码)。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;书中所有数据都是虚构或模拟的。

数据口径:危机来临时,资产会一起下跌吗?储备与安全垫要留多少才够?本书是教学与研究用的数学模型,不是投资建议。 作者要求证明「90% 短债 + 10% 期权」的杠铃配置随机占优;书中证明它不可能被股票占优,且在期权作废的概率高于股票跌破保底的概率时(本书模型即如此)也不可能一阶占优于股票,并在跳跃扩散模型的四种期权定价下显示它对股票、对 90/10 线性组合都不构成一阶或二阶占优,期权偏贵时反而被 90/10 线性组合二阶占优;CPPI 在乘数 6 时有 6.4% 的年份跌破保底线。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.25, 20, 9.2

violation rates: normal 1.54%, EVT 1.03%; expected D0.51 points
(SD of the paired difference per series-day 0.072)
SESOI 0.25 points, 90 % power, alpha 0.05 (two-sided)8,732 independent series-days
design effect 4.82,096 days per series (20 series) = 8.3 years;
with 10 % lost9.2 years (2,329 trading days)
years of data (20 series, 10 % lost) SESOI 0.150.25 0.40 points
ICC 0.115.5 5.6 2.2
ICC 0.225.7 9.2 3.6
ICC 0.446.0 16.6 6.5
if the true D equals the SESOI: P(lower bound > 0)0.900;
P(lower bound >= SESOI)0.025
why not the tick (quantile) loss? expected skill score of EVT +0.010;
detecting even 0.03 would take 11.4 years of 20 series
查看完整验算程序
# Sample size for the Chapter 8 pre-registered backtest: GARCH-EVT against GARCH-normal
# one-day 99 % VaR. Both models share the same GARCH volatility, so they differ only in
# the quantile of the standardized loss z. Primary outcome: D = violation rate of the
# normal model minus that of the EVT model (percentage points), paired on the same
# series-days.
# ASSUMED, not estimated from data: z is Student t with 5 d.f. (unit variance); the EVT
# quantile is re-estimated every 250 days from 1,000 residuals (GPD on the top 100);
# 20 series; intraclass correlation (ICC) of the paired difference across the 20 series on
# the same day 0.2; 252 trading days a year; 10 % of series-days lost.
import math, random, statistics

ND = statistics.NormalDist(); Z = ND.inv_cdf
DF = 5; SC = math.sqrt(DF / (DF - 2))

def tdraw(rng):
    return rng.gauss(0, 1) / math.sqrt(rng.gammavariate(DF / 2, 2) / DF) / SC

def gpd_q(z, k=100, p=0.99):                   # probability-weighted-moment GPD fit
    s = sorted(z, reverse=True); u = s[k]; y = sorted(v - u for v in s[:k])
    b0 = sum(y) / k; b1 = sum((k - 1 - i) / (k - 1) * v for i, v in enumerate(y)) / k
    xi = 2 - b0 / (b0 - 2 * b1); sig = 2 * b0 * b1 / (b0 - 2 * b1)
    return u + sig / xi * ((len(z) / k * (1 - p)) ** -xi - 1)

def tick(z, q, tau=0.99):
    return (z - q) * (tau - (1.0 if z < q else 0.0))

def years(sesoi, sd, icc=0.2, m=20, power=0.90, lost=0.10):
    n_eff = ((Z(0.975) + Z(power)) * sd / sesoi) ** 2
    deff = 1 + (m - 1) * icc
    return n_eff, deff, n_eff * deff / m / 252 / (1 - lost)

if __name__ == "__main__":
    rng = random.Random(1995); qn = Z(0.99); vn = ve = up = dn = 0; tn, te = [], []
    for _ in range(400):                       # 400 blocks of 250 days = 100,000 days
        qe = gpd_q([tdraw(rng) for _ in range(1000)])
        for _ in range(250):
            z = tdraw(rng); a, b = z > qn, z > qe
            vn += a; ve += b; up += a and not b; dn += b and not a
            tn.append(tick(z, qn)); te.append(tick(z, qe))
    n = 100_000; d = (vn - ve) / n; sd = math.sqrt((up + dn) / n - d * d)
    print(f"violation rates: normal {vn / n:.2%}, EVT {ve / n:.2%};"
          f" expected D = {100 * d:.2f} points")
    print(f"   (SD of the paired difference per series-day {sd:.3f})")
    n_eff, deff, yrs = years(0.0025, sd)
    print(f"SESOI 0.25 points, 90 % power, alpha 0.05 (two-sided): {n_eff:,.0f}"
          f" independent series-days")
    print(f"   design effect {deff:.1f} -> {n_eff * deff / 20:,.0f} days per series"
          f" (20 series) = {n_eff * deff / 20 / 252:.1f} years;")
    print(f"   with 10 % lost: {yrs:.1f} years ({math.ceil(yrs * 252):,} trading days)")
    print("years of data (20 series, 10 % lost)    SESOI 0.15   0.25   0.40 points")
    for icc in (0.1, 0.2, 0.4):
        print(f"   ICC {icc:.1f}{'':31s}" + "".join(f"{years(s, sd, icc)[2]:7.1f}"
                                                  for s in (0.0015, 0.0025, 0.0040)))
    se = 0.0025 / (Z(0.975) + Z(0.90))
    print(f"if the true D equals the SESOI: P(lower bound > 0) ="
          f" {1 - ND.cdf((1.96 * se - 0.0025) / se):.3f};")
    print(f"   P(lower bound >= SESOI) = {1 - ND.cdf(1.96):.3f}")
    ss = 1 - statistics.fmean(te) / statistics.fmean(tn)
    dd = statistics.stdev(a - b for a, b in zip(tn, te)) / statistics.fmean(tn)
    print(f"why not the tick (quantile) loss? expected skill score of EVT {ss:+.3f};")
    print(f"   detecting even 0.03 would take {years(0.03, dd)[2]:.1f} years"
          f" of 20 series")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《宏观流动性体制转换、极值尾部相依与杠铃资产配置》第 8 章「实践与预注册检验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23828049

DOI: 10.5281/zenodo.23828049 · 阅读本章所在专著 · 5DL-B-040 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026040,
  author    = {Fan, Yafu},
  title     = {Macro-Liquidity Regime Switching, Extreme Tail Dependence and Barbell Asset Allocation},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23828049},
  url       = {https://doi.org/10.5281/zenodo.23828049}
}

本书其他章节结论