20. Transversal Empirical Synthesis Across All 13 Real Datasets (Lab 7)
Six High-Stakes Empirical Domains
A methodology that works only on clean synthetic toy examples is an academic exercise, not an engineering discipline. The ultimate test of the Stochology Protocol is what happens when its bridges, lenses, invariants, funnel, and governance gates confront real historical datasets from six different high-stakes empirical domains:
- Labor Economics & Policy Evaluation (
nsw_experimental.csvandcps_observational.csv— $n = 445$ experimental and $n = 15\text{,}992$ observational workers); - Retail Banking & Queueing Operations (
bank_calls.csv$\to$card_02_bank_queue_staffing.yaml— $n = 27\text{,}716$ five-minute arrival windows across $164$ days); - Financial Markets & Non-Ergodic Compounding (
djia_1885_2023.csv— $37\text{,}930$ daily trading sessions of the Dow Jones Industrial Average from 1885 to 2023); - Extreme Value Theory, Reinsurance & Power Grids (
danish_fire.csv, $n = 2\text{,}167$ fire claims; andvic_elec.csv, $n = 52\text{,}608$ half-hourly electricity demand readings in Victoria, Australia); - Atmospheric Physics & Algorithmic Fairness (
atlantic_storms.csv$\to$card_01_atlantic_storms_evacuation.yaml, $n = 20\text{,}778$ NOAA storm track records; andtoronto_arrests.csv, $n = 5\text{,}226$ police arrest records); - Aviation Operations, Temporal Vaults & Multi-Regime Drift (
nyc_flights_2013.csv$\to$card_03_nyc_flights_holding.yaml,nyc_flights_2023.csv, out-of-time reservesnyc_flights_2013_h1.csvandnyc_flights_2023_h1.csv, and out-of-domain reservehouston_flights_2011.csv).
Every single byte of these 13 CSV files is cryptographically locked in data/SHA256SUMS and verified at runtime before any calculation begins. Let us walk through each of the six empirical case studies in detail.
Case Study 1: Labor Economics — The LaLonde Paradox (nsw_experimental.csv vs. cps_observational.csv)
- The Real-World Problem: In the 1970s, the U.S. National Supported Work (NSW) demonstration randomly assigned disadvantaged workers to a job-training program (
nsw_experimental.csv, $n = 445$, with $260$ controls). In a landmark 1986 American Economic Review paper, economist Robert LaLonde asked: What happens if we replace the randomized control group with a massive observational survey of non-experimental U.S. workers from the Current Population Survey (cps_observational.csv, $n = 15\text{,}992$)? - The Naive Mistake: A naive analyst looks at $n = 15\text{,}992$, computes a tiny standard error $\sigma / \sqrt{15\text{,}992}$, and trusts the observational regression.
- The Stochology Audit (Bridge $L_1 \to L_2$ & Invariant $\Phi_3$):
Applying Meng’s Fundamental Identity (Chapter 2) between the observational CPS sample and the experimental benchmark reveals a selection correlation of $\rho_{R,Y} = +0.1334$. That invisible filter on Bridge $L_1 \to L_2$ shrinks $n = 15\text{,}992$ down to an effective sample size of $n_{\mathrm{eff}} = 2\text{,}842.70$—wiping out over $13\text{,}000$ apparent observations! Meanwhile, Manski’s non-parametric
MNARbounds bracket the true population outcome within $[5\text{,}463.2,\ 13\text{,}835.3]$ without parametric assumptions.
Case Study 2: Banking Operations — Call-Center Queueing (bank_calls.csv $\to$ card_02)
- The Real-World Problem:
bank_calls.csvrecords $n = 27\text{,}716$ five-minute arrival intervals across $C = 164$ business days at a North American retail bank call center (Weinberg, Brown & Stroud, 2007). The operations director must decide whether to schedule $18$ overflow agents on high-load days (card_02_bank_queue_staffing.yaml, where protection cost is $C = USD 1\text{,}600$, congestion loss is $L = USD 25\text{,}000$, mitigation efficacy is $\eta = 0.80$, and $p^{\ast} = \frac{1600}{0.80 \times 25000} = 0.08000$). - The Naive Mistake: Staffing for the average day ($f(\mathbb{E}[X])$) and treating the $n = 27\text{,}716$ five-minute windows as $27\text{,}716$ independent observations.
- The Stochology Audit (Bridge $L_2 \to L_3$ & Invariants $\Phi_2, \Phi_5$):
- Prohibition 2 (Jensen’s Gap): Evaluating the nonlinear congestion penalty across the $164$ fluctuating days reveals $f(\mathbb{E}[X]) = 1.0669 \times 10^9$ versus $\mathbb{E}[f(X)] = 1.0760 \times 10^9$, uncovering a positive Jensen’s Gap of $\Delta_J = +9\text{,}033\text{,}837.19$ and out-of-sample $\mathrm{CRPS} = 9.055 \times 10^7$.
- Invariant $\Phi_2$ (Moulton-Campbell Tail Exceedance): At the $90\text{th}$ percentile ($p = 0.90$), five-minute surges cluster heavily within specific days ($\tilde{m} = 169.00$, threshold exceedance ICC $\rho_I(0.90) = 0.1623$), producing a design effect of $\mathrm{DEFF}(0.90) = 28.26$ and shrinking $n = 27\text{,}716$ to $n_{\mathrm{eff}}(0.90) = 980.7$.
- Decision (
card_02): Because the calibrated daily overload probability $p = 0.09911$ exceeds $p^{\ast} = 0.08000$ with $\mathrm{EVPI} = USD 216\text{,}213.60$ and cumulative e-process $E_{30} = 2\text{,}786.4$, the SIGA roadmap approvesprotect.
Case Study 3: Financial Markets — 138 Years of the Dow Jones (djia_1885_2023.csv)
- The Real-World Problem:
djia_1885_2023.csvspans $37\text{,}930$ daily trading closes of the Dow Jones Industrial Average from February 1885 through December 2023—including the Panic of 1907, the 1929 Crash, Black Monday 1987 (a $-22.6%$ single-day drop), the 2008 Crisis, and the 2020 pandemic shock. - The Naive Mistake: Quoting the average annual return ($g_{\text{ensemble}} = 6.12%$) as the compounded return a long-term investor receives, or applying $3\times$ leverage without accounting for volatility drag.
- The Stochology Audit (Lens 2 — Time & Bridge $L_3 \to L_1$):
- Itô’s Variance Drain: Across all $37\text{,}930$ trading days, the ensemble drift is $g_{\text{ensemble}} = 0.0612$ ($6.12%$/yr), but daily volatility drains $\frac{1}{2}\sigma^2 = 0.0145$ ($1.45%$/yr), leaving a true time-average compounded growth rate of $g_{\text{time}} = 0.0468$ ($4.68%$/yr).
- Kelly Criterion & Performativity: The asymmetric Kelly fraction is $f^{\ast} = 0.8600$ (proving that $2\times$ or $3\times$ unhedged leverage over-bets the Kelly peak and degrades long-run compounding), with Log-Sobolev mixing time of $13$ steps and performative Stackelberg optimum $\theta_{\mathrm{PO}} = 2.0312 > \theta_{\mathrm{PS}} = 1.8750$ ($r_{\mathrm{RRM}} = 0.24 < 1$).
Case Study 4: Extreme Tails — Copenhagen Re Fire Claims & Victoria Electricity (danish_fire.csv, vic_elec.csv)
- The Real-World Problem:
danish_fire.csvcontains $n = 2\text{,}167$ industrial fire insurance losses in millions of Danish Kroner (1980–1990, McNeil 1997; Embrechts, Klüppelberg & Mikosch 1997).vic_elec.csvcontains $n = 52\text{,}608$ half-hourly electricity demand readings (in MW) from Victoria, Australia. - The Naive Mistake: Computing sample standard deviation $s_n$ on fire losses and pricing reinsurance layers using Gaussian normal tables.
- The Stochology Audit (Lens 3 — Scale and Tail & Ch. 6 — Wave-Analog Computing):
- On
danish_fire.csv, Hill’s tail-index estimator yields $\hat{\alpha}_{\mathrm{Hill}} = 1.6009 \pm 0.1601$. Because $1 < \hat{\alpha} \le 2$, the data inhabit theFiniteMeanInfiniteVarianceregime: the population variance is mathematically infinite, the $99\text{th}$ percentile reaches $q_{99} = 26.04\text{M DKK}$ (against a median of only $1.778\text{M DKK}$!), and the effective tail sample size is onlytail_n_eff$= 13.9$. - On
vic_elec.csv($n = 52\text{,}608$), Hill’s estimator confirms a steep upper tail ($\hat{\alpha} = 14.8090$,FiniteMeanAndVariance) with extreme summer heatwave peak demand reaching $q_{99} = 6\text{,}981.5\text{ MW}$. Furthermore, coupling a $336$-point weekly slice ofvic_elec.csvto the Empirical Wave-Analog Audit (Chapter 11) compresses the half-hourly demand wave by $14.0\times$ into $24$ harmonic coefficients ($R^2 = 0.88$) and solves the $6 \times 6$ Gram normal equation via Peking University’s 24-bitHP-INVloop (LP-INV3-bit RRAM + bit-slicedHP-MVM) to relative error $4.39 \times 10^{-16}$.
- On
Case Study 5: Atmospheric Physics & Fairness — NOAA Cyclones & Toronto Arrests (atlantic_storms.csv $\to$ card_01, toronto_arrests.csv)
- The Real-World Problem:
atlantic_storms.csvcontains $n = 20\text{,}778$ six-hour synoptic track observations of Atlantic tropical cyclones from NOAA HURDAT2. Incard_01_atlantic_storms_evacuation.yaml, a coastal emergency director decides whether to trigger precautionary evacuation ahead of an $85\text{-knot}$ rapid-intensification threat ($C = USD 12\text{,}000, L = USD 125\text{,}000, \eta = 0.80 \implies p^{\ast} = 0.12000$).toronto_arrests.csvcontains $n = 5\text{,}226$ police arrest records used to audit algorithmic risk-assessment fairness across demographic groups.
- The Stochology Audit (Lenses 4 & 5, Gate
G8, and Invariant $\Phi_4$):- Nonlinear NILE/IRM Invariance & Authentic Form: On
atlantic_storms.csv, Hermite-basis NILE/IRM invariance testing across multi-decadal climate regimes identifies the physical wind/pressure intensity core $\hat{S}^{\ast} = [0]$ (penalty = 0.0011) while explicitly discarding the regime-shifted latitude proxy (atom_1_regime_shifted_lat_proxy,penalty = 0.1072, ratio $= 0.0103$, $A(\text{model}) = \text{true}$). - Isotonic CORP-Murphy PAV Decomposition: Across all $n = 20\text{,}778$ storm tracks at the 64-kt hurricane threshold, PAV decomposes $\mathrm{BS} = 0.26906$ into $\mathrm{REL}_{\mathrm{CORP}} = 0.21135 - \mathrm{RES}_{\mathrm{CORP}}(0.13102) + \mathrm{UNC}_0(0.18873)$ with identity closure error $1.53 \times 10^{-14}$. On
card_01(85-kt threat), the calibrated probability is $p = 0.09800 \le p^{\ast} = 0.12000$ ($\mathrm{BS} = 0.03210 = 0.00578 - 0.06183 + 0.08815$), socard_01rightly recommendsdo_not_protect! - Chouldechova’s Trilemma ($\Phi_4$): On
toronto_arrests.csv, unequal base rates ($p_A = 0.3926$ vs. $p_B = 0.1119$) prove that equalizing $\mathrm{PPV} = 0.65$ and $\mathrm{FNR} = 0.25$ forces a $5.13\times$ false-positive disparity ($\mathrm{FPR}_A = 0.2610$ vs. $\mathrm{FPR}_B = 0.0509$).
- Nonlinear NILE/IRM Invariance & Authentic Form: On
Case Study 6: Aviation Drift & Vaults — Five Flight Datasets (nyc_flights_2013/2023, H1 Reserves, houston_flights_2011.csv $\to$ card_03)
- The Real-World Problem: An airline operations control center in New York (
nyc_flights_2013.csv, $n = 138\text{,}375$ flights, $n_{\mathrm{eff}} = 1\text{,}364$ after clustering by daily airport-weather waves) usescard_03_nyc_flights_holding.yamlto decide whether to hold connecting aircraft ($p^{\ast} = 0.06000, p = 0.09800 \implies \text{protect}$). The model must survive a ten-year temporal jump tonyc_flights_2023.csv, sealed out-of-time H1 vaults (nyc_flights_2013_h1.csv,nyc_flights_2023_h1.csv), and an out-of-domain geographic transfer to Texas (houston_flights_2011.csv). - The Stochology Audit (Chapter 19 Governance, Vault & Drift):
- Covariate Drift (
ExTRA-WCP-T) & Lei-Candès Bounds: Exponential-tilt conformal adaptation maintains guaranteed coverage floors across all three shifts:- NYC $2013 \to 2023$: $\text{Lei-Candès bound} \ge 0.802$;
- Sealed H1 Out-of-Time Reserve $2013 \to 2023$: $\text{Lei-Candès bound} \ge 0.828$;
- NYC $\to$ Houston Out-of-Domain Transfer: $\text{Lei-Candès bound} \ge 0.693$.
- Single-Opening Temporal Vault: The sealed H1 reserve opens exactly once (
0 -> 1) and achievesOpenedApprovedwith out-of-time Brier score $\mathrm{BS} = 0.1783$.
- Covariate Drift (
Synoptic Ledger and Computational Audit in Rust
Real Dataset (data/*.csv) | Empirical Domain & Sample ($n$) | Audited Bridge / Lens / Invariant | Audited Empirical Benchmark (labs --real-data) |
|---|---|---|---|
nsw_experimental.csv vs. cps_observational.csv | LaLonde training: Experimental ($n=445$) vs. Observational ($n=15\text{,}992$) | Bridge $L_1 \to L_2$ & $\Phi_3$ (Meng, Manski) | $\rho_{R,Y} = +0.1334$ shrinks $n=15\text{,}992$ to $n_{\mathrm{eff}} = 2\text{,}842.70$; Manski $[5\text{,}463.2,\ 13\text{,}835.3]$ |
bank_calls.csv ($\to$ card_02) | Retail bank call-center 5-min windows ($n=27\text{,}716$, $164$ days) | Bridge $L_2 \to L_3$ & $\Phi_2, \Phi_5$ | $\Delta_J = +9.03 \times 10^6$; $\mathrm{OOS_CRPS} = 9.06 \times 10^7$; $\mathrm{DEFF}(0.90) = 28.26 \implies n_{\mathrm{eff}}(0.90) = 980.7$; act protect |
djia_1885_2023.csv | DJIA daily closes ($37\text{,}930$ sessions, 1885–2023) | Lens 2 (Time) & Bridge $L_3 \to L_1$ | $g_{\text{time}} = 0.0468 < g_{\text{ensemble}} = 0.0612$ (drain $= 0.0145$); Kelly $f^{\ast} = 0.8600$; $\theta_{\mathrm{PS}} = 1.8750$ vs. $\theta_{\mathrm{PO}} = 2.0312$ |
danish_fire.csv & vic_elec.csv | Copenhagen Re fire claims ($n=2\text{,}167$) & Victoria electricity ($n=52\text{,}608$) | Lens 3 (Scale and Tail — Hill) | danish_fire: $\hat{\alpha}_{\mathrm{Hill}} = 1.6009 \pm 0.1601$ (FiniteMeanInfiniteVariance), $q_{99} = 26.04\text{M DKK}$; vic_elec: $q_{99} = 6\text{,}981.5\text{ MW}$ |
atlantic_storms.csv ($\to$ card_01) & toronto_arrests.csv | NOAA storms ($n=20\text{,}778$) & Toronto arrests ($n=5\text{,}226$) | Lenses 4 & 5, Gate G8 & $\Phi_4$ | $\hat{S}^{\ast} = [0]$ ($A = \text{true}$); card_01 85-kt $\mathrm{BS} = 0.03210$, act do_not_protect; Toronto $\mathrm{FPR}_A / \mathrm{FPR}_B = 5.13\times$ |
nyc_flights_2013.csv ($\to$ card_03), nyc_flights_2023.csv, H1 reserves & houston_flights_2011.csv | NYC flights 2013 vs. 2023 + OOT H1 reserves + Houston OOD | Governance, Vault & Drift | card_03 ($n=138\text{,}375, n_{\mathrm{eff}}=1\text{,}364$, act protect); Lei & Candès $\ge 0.802$ ($13\to 23$), $\ge 0.828$ (H1), $\ge 0.693$ (OOD); H1 Vault OpenedApproved ($\mathrm{BS} = 0.1783$) |
Run Laboratory 7 directly in your terminal to reproduce every number in the table above:
cargo run --release --bin labs -- --real-data
=== LAB 7: TRANSVERSAL REAL-DATA SYNTHESIS (13 EMPIRICAL DATASETS & 3 CANONICAL CARDS) ===
[1/6 Policy: nsw_experimental.csv + cps_observational.csv] Bridge L1->L2 & Phi3: rho_R_Y=+0.1334, n=15992 -> n_eff=2842.70, Manski=[5463.2, 13835.3]
[2/6 Banking: bank_calls.csv -> card_02] Bridge L2->L3 & Phi2/Phi5: n=27716 (days=164), Delta_J=+9.03e6, OOS_CRPS=9.06e7, DEFF(0.90)=28.26 -> n_eff=980.7
[3/6 Finance: djia_1885_2023.csv] Lens 2 & Bridge L3->L1: days=37930, g_ens=0.0612 -> g_time=0.0468 (drain=0.0145), Kelly f*=0.8600, theta_PS=1.8750 vs theta_PO=2.0312 (r=0.24)
[4/6 Tails: danish_fire.csv + vic_elec.csv] Lens 3: DanishFire(n=2167, alpha=1.6009, FiniteMeanInfiniteVariance, q99=26.04M, tail_n_eff=13.9) | VicElec(n=52608, alpha=14.8090, q99=6981.5 MW)
[4b/6 Wave-Analog Empirical: vic_elec.csv] Wave compression=14.0x (336 -> 24), R^2=0.88, PKU HP-INV Gram err=4.39e-16 (3-bit LP-INV=1.41e-2)
[5/6 Calibration & Fairness: atlantic_storms.csv + toronto_arrests.csv -> card_01] Lens 5 & Phi4: Storms BS=0.26906 (REL=0.21135, RES=0.13102, err=1.53e-14) | Toronto FPR_A/FPR_B=5.13x
[5b/6 Critical Rationality Empirical: danish_fire + toronto_arrests + atlantic_storms + vic_elec] Fire Non-Identical ES99 erased=69.3% | Toronto preemptive FPR=5.13x | Storms spurious/invariant NILE ratio=96.8x | VicElec wave R2=0.88 | verified=true
[5c/6 Stochary-Conjectural & Cybernetic Empirical (5 CSVs): djia + bank_calls + danish_fire + vic_elec + atlantic_storms] DJIA drain=0.0145 | BankCalls LP_var=0.18, Scarf(s*=196, S*=233) | DanishFire VaR95=8.42M, CVaR95=23.95M, WDRO_disapp=-2.43 vs naive=+17.92 | VicElec TTS/TTR=1.44 | Storms PATE(Telos_net=-0.1302, Skopos_UNC0=0.1887) | verified=true
[6/6 Aviation Drift (5 CSVs): nyc_flights_2013/2023 + H1 reserves + houston_flights_2011.csv -> card_03] Lei-Candes(NYC 13->23 >= 0.802, H1 13->23 >= 0.828, NYC->Houston OOD >= 0.693) | H1 Vault=OpenedApproved (Brier=0.1783)
[Synthesis Ledger] 13/13 real CSV datasets audited | 3/3 canonical YAML cards approved (G1-G8 & SIGA)
Exercises
- (Cross-Domain Comparison — $n$ vs. $n_{\mathrm{eff}}$) Compare the nominal sample size $n$ and the effective sample size $n_{\mathrm{eff}}$ across three datasets in Lab 7:
cps_observational.csv($n = 15\text{,}992 \to n_{\mathrm{eff}} = 2\text{,}842.7$),bank_calls.csv($n = 27\text{,}716 \to n_{\mathrm{eff}} = 980.7$), andnyc_flights_2013.csv($n = 138\text{,}375 \to n_{\mathrm{eff}} = 1\text{,}364$). Explain which mechanism reduced $n$ incps_observational.csv(Bridge $L_1 \to L_2$) versus which mechanism reduced $n$ inbank_calls.csvandnyc_flights_2013.csv($\Phi_2$). - (Comparison of Actions Across Cards) Why does
card_01(Atlantic hurricanes, $p = 0.09800$) concludedo_not_protect, whereascard_03(NYC flight holding, with the exact same event probability $p = 0.09800$!) concludesprotect? What does this prove about separating probability estimation ($L_2$) from cost-loss valuation ($L_3$)?
Analytical & Computational Solutions (Click to Expand)
- Cross-Domain Comparison ($n$ vs. $n_{\mathrm{eff}}$):
- In
cps_observational.csv, $n = 15\text{,}992$ shrinks to $n_{\mathrm{eff}} = 2\text{,}842.7$ due to unadjusted selection bias ($\rho_{R,Y} = +0.1334$) on Bridge $L_1 \to L_2$ (Xiao-Li Meng’s Fundamental Identity). - In
bank_calls.csv($n = 27\text{,}716 \to n_{\mathrm{eff}}(0.90) = 980.7$, $\mathrm{DEFF} = 28.26$) andnyc_flights_2013.csv($n = 138\text{,}375 \to n_{\mathrm{eff}} = 1\text{,}364$), the reduction is caused by within-cluster tail dependence ($\rho_I(p) > 0$, Invariant $\Phi_2$) across calendar days and synoptic weather waves (Moulton-Campbell design effect).
- In
- Comparison of Actions Across Cards (
card_01vs.card_03): Both cards have the exact same calibrated event probability $p = 0.09800$ ($9.8%$) in Layer $L_2$. However, in Layer $L_3$:- For
card_01(coastal evacuation), $C = USD 12\text{,}000, L = USD 125\text{,}000, \eta = 0.80 \implies p^{\ast} = \frac{12\text{,}000}{100\text{,}000} = 0.12000$ ($12.0%$). Since $p = 0.09800 \le p^{\ast} = 0.12000$, the optimal action isdo_not_protect. - For
card_03(holding connecting aircraft), $C = USD 720, L = USD 15\text{,}000, \eta = 0.80 \implies p^{\ast} = \frac{720}{12\text{,}000} = 0.06000$ ($6.0%$). Since $p = 0.09800 > p^{\ast} = 0.06000$, the optimal action isprotect. This proves that the exact same probability forecast in $L_2$ rationally triggers opposite actions in $L_3$ depending on the asymmetric cost-loss ratio $p^{\ast} = \frac{C}{\eta L}$.
- For