What does Regimes, Tail Dependence and Barbells conclude, in numbers, about “Practice and a Pre-Registered Test”?

Answer: Chapter 8 gives a four-step checklist (regime, tail, dependence, buffer) and a pre-registered backtest of conditional EVT against conditional normal 99 % VaR (single primary outcome the difference in violation rates, smallest effect of interest 0.25 percentage points, 20 series and about 9.2 years of locked data, decision rule written as code). Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; all data in the book are fictional or simulated.

Scope of the numbers: When a crisis comes, do assets fall together? How large must reserves and safety cushions be? This book presents mathematical models for teaching and research and is not investment advice. Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; all data in the book are fictional or simulated.

中文版

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.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
Show the full program
# 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")

Single source and citation

Fan, Y. (2026). Macro-Liquidity Regime Switching, Extreme Tail Dependence and Barbell Asset Allocation (Version 1.0.0), Chapter 8: Practice and a Pre-Registered Test. 5D Library. https://doi.org/10.5281/zenodo.23828049

DOI: 10.5281/zenodo.23828049 · Read the monograph · 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}
}

Other chapter answers in this book