Technical reference
Simulator & Validation Reference
The deep companion to the methodology: how the simulator is built, the one gate every scenario must pass, the historical values we compare with, the character of each regime, and how assets move together in a crisis.
1 · What the simulator is
A regime-switching stochastic-volatility model — not a replay of history and not random noise. A market moves through four regimes — BULL · SIDEWAYS · BEAR · CRISIS — and each imposes a characteristic drift and volatility level. The path is not locked to one regime: it transitions between them along a matrix estimated from real index history (1999–2025), which reproduces the historical regime distribution (roughly 40 / 39 / 11 / 10 %), so the alternation of calm and stressed stretches matches how real markets behave.
Volatility clustering is produced by a persistent volatility process layered on that regime oscillation: a turbulent day raises the volatility state for the days that follow (an AR(1)-like memory, roughly a four-day half-life), so large moves arrive in clusters rather than spread evenly. This is the single most universal property of real returns, and it is the model’s load-bearing feature — the admissibility gate in §3 enforces it.
In this engine, which generates Tier-2 paths and the market path of the portfolio model, an asset’s character comes from calibrating it to its own price history — its volatility level, tail thickness, drawdown profile and regime mix. The frozen library of synthetic probes is a different matter: see §2.
2 · Per-asset calibration & coverage
What is calibrated per asset, and what is not
This is a real limit. Three things on this site are built differently. Real prices: the historical windows. Fitted to each asset’s own history: the portfolio substrate (SPY, TLT, gold, Bitcoin) and the paths tier2_stress_test builds for a ticker. Rescaled, not fitted: the library of 32 synthetic probes behind every /s/ report, the Strategy Lab, run_stress_test and challenge_strategy. It generates every asset’s stress window on S&P 500 regime parameters, then rescales its volatility to the asset’s own range, which changes the scale and nothing else. Ethereum’s whipsaw probe failed that check and is not rescaled, and gold’s hyperinflation probe has no S&P 500 sibling to scale from. For example, the low-volatility probe now runs at SPY 0.10, QQQ 0.13, gold 0.10 and oil 0.20, against oil’s typical 0.32. So a synthetic result carries the asset’s scale and not its own character, and it can understate losses. The eighteen stylized facts on /verifiability measure the portfolio substrate, not this library. For this library, the published checks are the clustering gate and the per-probe claims, of which 4 of 50 are off-spec.
What decides whether a path is published. Only the clustering gate in §3 does, and it asks for a value above zero. The other measured properties are compared with the asset’s reference values in §4 and reported, not enforced, as the methodology says. Clustering, volatility and tail thickness differ markedly across assets, so a "low" clustering figure on gold or crypto can be asset-appropriate rather than a defect.
Coverage. The 13 pre-computed strategy reports run on 3 assets (BTC, GOLD, SPY). The Strategy Lab runs a strategy on the cases of one asset: SPY 15, QQQ 13, BTC 10, GOLD 10, WTI 7, ETH 5. 3 further cases on VIX exist but are held back (§9). The live portfolio-stress substrate covers four assets — SPY, TLT, GOLD, BTC — the set for which the cross-asset coupling (§6) is calibrated.
3 · The one gate: volatility clustering
A synthetic regime is only a valid market test if it reproduces the most fundamental stylized fact: positive volatility clustering (the lag-5 autocorrelation of absolute returns, "acf5", per Cont, 2001). A scenario with zero or negative clustering is an anti-market — a strategy "optimised" against it is optimising against a simulation artifact. So acf5 is a hard gate: every regime in the catalog must have acf5 above zero.
Clearing it separates a market-like path from noise, and that is all it does. Every regime in the catalog below passes it. It says nothing about whether a regime’s depth, volatility or tails are right. 17 of the 31 regimes with a reference value sit below their asset’s historical clustering level in §4, and that is reported, not enforced.
4 · Per-asset reference values
The historical values we compare with — medians over rolling 252-day windows. Clustering is structurally lower on GOLD / BTC than on the equity indices, so a "low" acf5 there can be asset-appropriate, not a bug.
| asset | acf5 | vol (ann.) | kurtosis | skew |
|---|---|---|---|---|
| SPY | +0.106 | 0.164 | 1.51 | −0.27 |
| QQQ | +0.111 | 0.200 | 1.51 | −0.24 |
| GOLD | +0.057 | 0.159 | 1.77 | −0.23 |
| WTI | +0.093 | 0.320 | 1.12 | −0.16 |
| BTC | +0.062 | 0.548 | 2.91 | −0.04 |
5 · The gate-cleared synthetic regime catalog
32 gate-cleared regimes, measured at n = 50 replicas. The figures are the character of the regime itself — the market the strategy is tested in — not a strategy outcome or a forecast. ret is the median return over the stress window, acf5 the median clustering, vol annualised. All clear the gate (acf5 > 0).
Gate-cleared does not mean realistic. It means only acf5 > 0. Two families had the largest errors against real episodes and were recalibrated toward them, and both still miss: demand_destruction falls 14 to 18 points less than real episodes of that type, and slow_crash_no_recovery falls 3 to 12 points further than real slow declines. Their targets draw partly on those same episodes, so this is a better-scaled probe, not a validated one.
s = sustained (the regime evolves over the full window) · f = sharp-event (the crash window is held, which is why acf5 is high by design). Harsh magnitudes (slow-crash, liquidity-stress) are intentionally adversarial / event-appropriate.
| regime | asset | ret | acf5 | vol | kind |
|---|---|---|---|---|---|
| slow_crash_no_recovery | SPY | −27% | +0.104 | 0.21 | s |
| slow_crash_no_recovery | QQQ | −27% | +0.090 | 0.25 | s |
| slow_crash_no_recovery | GOLD | −27% | +0.066 | 0.20 | s |
| slow_stagflation | SPY | −27% | +0.043 | 0.26 | s |
| slow_stagflation | QQQ | −20% | +0.055 | 0.32 | s |
| slow_decline | SPY | −15% | +0.076 | 0.18 | s |
| slow_decline | QQQ | −15% | +0.065 | 0.22 | s |
| slow_decline | GOLD | −24% | +0.092 | 0.17 | s |
| demand_destruction | WTI | −56% | +0.094 | 0.55 | s |
| liquidity_stress | SPY | −26% | +0.051 | 0.35 | s |
| liquidity_stress | WTI | −27% | +0.042 | 0.69 | s |
| liquidity_stress | BTC | −15% | +0.056 | 1.09 | s |
| vol_expansion | SPY | +10% | +0.163 | 0.24 | s |
| vol_expansion | QQQ | +6% | +0.162 | 0.29 | s |
| vol_expansion | GOLD | −1% | +0.158 | 0.23 | s |
| vol_expansion | BTC | +25% | +0.110 | 0.80 | s |
| whipsaw | SPY | +2% | +0.050 | 0.17 | s |
| whipsaw | QQQ | +5% | +0.034 | 0.21 | s |
| whipsaw | BTC | +2% | +0.034 | 0.56 | s |
| whipsaw | ETH | +11% | +0.049 | 0.17 | s |
| low_vol_grind | SPY | +11% | +0.077 | 0.10 | s |
| low_vol_grind | QQQ | +14% | +0.071 | 0.13 | s |
| low_vol_grind | GOLD | +5% | +0.015 | 0.10 | s |
| low_vol_grind | WTI | −0% | +0.073 | 0.20 | s |
| hyperinflation_boost | GOLD | +29% | +0.042 | 0.17 | s |
| sharp_crash | SPY | −4% | +0.333 | 0.29 | f |
| sharp_crash | QQQ | −12% | +0.326 | 0.36 | f |
| sharp_crash | BTC | −5% | +0.306 | 0.97 | f |
| v_recovery | SPY | +7% | +0.233 | 0.23 | f |
| v_recovery | QQQ | +11% | +0.256 | 0.28 | f |
| v_recovery | GOLD | +11% | +0.210 | 0.22 | f |
| v_recovery | BTC | −3% | +0.217 | 0.77 | f |
6 · Cross-asset coupling & the stock-bond hedge
For portfolio stress, several assets are simulated jointly and coupled by a three-part factor channel: a regime-gated equity-risk factor that strengthens correlations as markets fall, a persistent duration factor shared by Treasuries and gold, and an episodic rate-shock factor. The result reproduces the property a portfolio stress test exists to surface: a stock-bond hedge that holds in calm markets can break when both legs fall together. The table compares each pair’s calm-to-crisis correlation shift, real history versus the coupled model.
| pair | calm (real / model) | crisis (real / model) |
|---|---|---|
| SPY–TLT | −0.15 / −0.04 | −0.42 / −0.44 |
| SPY–BTC | +0.08 / +0.19 | +0.45 / +0.46 |
| TLT–GOLD | +0.18 / +0.33 | +0.14 / +0.11 |
The 2022 hedge break is modelled the way it actually happened: not as a spike in day-to-day correlation, but as a shared drawdown — on a rate shock, equities and long Treasuries both lose ground together (a 60/40 takes a −15% worst-episode drawdown in that scenario on substrate_v2, against −11% with a drawdown stop on the same paths). That is the "60/40 loses both legs" failure a stress tool must show. Honest boundary: the model adds value in the regime-conditional correlation and the joint-crash tail dependence — single-asset daily marginals are at parity with cheap baselines, and the SPY–BTC calm correlation is overstated. The full numeric comparison against a Gauss-copula baseline is on the verifiability page.
7 · Backtest correctness
OHLC bars hide the intra-bar order of events: when price touches both a stop-loss and a take-profit within the same bar, the execution order is ambiguous. Many engines resolve that optimistically. This engine applies the methodology of Löw, Maier-Paape & Platen (2015), defaulting to worst-case execution (the unfavourable order is assumed). Best-case and ignore modes are available as explicit bounds. The conservative default yields lower-bound performance estimates rather than optimistic ones.
8 · How we validate
- Stylized-fact validation (portfolio substrate only). The portfolio substrate’s daily stylized facts are measured over 200 random 252-day windows of its simulated paths and compared, fact by fact, to bands derived identically from real history. SPY and TLT match all eighteen; GOLD and BTC match seventeen of eighteen (kurtosis below band — see §9). This does not measure the library of synthetic probes behind the strategy reports (§2).
- Value vs a cheap baseline. The cross-asset model is compared numerically to a Gauss-copula: it adds regime-conditional correlation that strengthens in a crisis and joint-crash tail dependence the copula cannot — while single-asset marginals are at parity with cheap baselines (no unique edge claimed there). Stated, then checked, on /verifiability.
- Per-probe claims (synthetic library). Each probe’s claimed properties are compared with what it measures: 4 of 50 claims are off-spec, listed on /verifiability.
- Pre-registration. The main hypotheses and falsification thresholds are registered before a run, to prevent reading success into noise. Some decisions were made after seeing results; they are marked post hoc in the study records.
- Statistical power. A single passing KS-test at small n is not "indistinguishable from historical". Magnitude is measured at the deploy sample size, not a cheap screening size — small samples are optimistically biased for high-variance regimes.
- Claim–evidence alignment. "Solved" has to hold across the full shape, not one favourable descriptor.
9 · Documented limits
What the model does not yet do well:
Synthetic library on S&P 500 parameters
The library of synthetic probes behind the strategy reports is not fitted per asset, apart from a rescale of the Bitcoin probes. See §2.
Ranges too narrow
Out of sample, the regime-switching engine’s 90% ranges contained realised volatility only 52% to 69% of the time and realised maximum drawdown 68% to 89%, against a target of 80% to 98%. Per asset, volatility: SPY 63%, QQQ 59%, GLD 66%, TLT 52%, BTC 69%. Treat any spread across simulated paths as a lower bound on real uncertainty. Tested on this engine, not on the frozen library; see /verifiability.
Short-horizon shape
Daily lag-1 autocorrelation runs slightly higher than the historical reference (over-clustered at the shortest lag). A cross-scale refinement closes most of the gap; it is not yet in the shipped engine.
Tail thickness on GOLD / BTC
The synthetic daily tails for gold and crypto are thinner than the historical reference — kurtosis comes out below the asset band. It is the one stylized fact (of eighteen) those two assets miss on the portfolio substrate.
Clustering below the reference value
17 of 31 regimes in §5 that have a reference value pass the gate positive but sit below their asset’s value in §4 (ETH has none). That is about half, not an exception, and it is disclosed rather than treated as a failure.
Intraday structure
The engine is built for daily bars; intraday volatility is uniform (no open-spike seasonality). Irrelevant at daily resolution; multi-resolution would need a separate time-of-day lever.
Multi-episode crashes
A crash with a genuine relief rally followed by a second decline is not yet generated reliably, and is not part of the published scenario set.
VIX
VIX is not currently offered. The simulator cannot yet generate reliable synthetic volatility-index dynamics — its tail behaviour comes out too thin — so VIX is held back until a future iteration handles it.
10 · References
- Hamilton, J. D. (1989) "A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle" Econometrica 57(2), 357–384 — The Markov regime-switching framework the simulator’s regime layer is built on.
- Cont, R. (2001) "Empirical Properties of Asset Returns: Stylized Facts and Statistical Issues" Quantitative Finance 1(2), 223–236 — The empirical regularities (vol-clustering, fat tails, regime persistence) that the portfolio substrate is measured against.
- Löw, R. W., Maier-Paape, S. & Platen, E. (2015) "Correctness of Backtest Engines" arXiv:1509.08248 — Handling ambiguous intra-bar events; the engine implements their worst-case execution model.
Operated under German jurisdiction (BaFin / WpHG framework). Model-based scenario simulation — descriptive, not advisory; scenario-based, not a forecast. Not investment advice.