docs: mark M3a V1 implemented

This commit is contained in:
2026-10-19 18:16:25 -07:00
parent c4d5104421
commit 6f8778756d
+30 -23
View File
@@ -8,19 +8,18 @@ stochastic volatility, regime detection, and cross-asset correlation**. The math
**stochastic sample paths**, not behavioral agents. **stochastic sample paths**, not behavioral agents.
## 2. Status / certainty ## 2. Status / certainty
SUBSTANTIAL ENGINE IMPLEMENTED · R. `core/src/economy/sims/statistical/engine.R` IMPLEMENTED · M3a V1 · R. `core/src/economy/sims/statistical/engine.R` now
now implements GBM, Merton jump-diffusion, full-truncation Heston simulation, GARCH(1,1) QMLE, implements the complete V1 statistical stack: GBM, Merton jump-diffusion, full-truncation Heston
three-state Gaussian HMM training + Viterbi decoding, Davies–Harte fractional Gaussian noise, simulation, GARCH(1,1) QMLE, three-state Gaussian HMM training + Viterbi decoding,
rough-volatility paths with estimated Hurst exponent, fitted DCC dynamic correlation, t-copula Davies–Harte fractional Gaussian noise and fitted rough volatility, fitted DCC dynamic
tail-dependence with degrees-of-freedom estimation, conjugate Bayesian return calibration, correlation, t-copula tail dependence with degrees-of-freedom estimation, conjugate Bayesian
base-R ARIMA forecasting, historical VaR/Expected Shortfall, jump-intensity estimation, fitted return calibration, base-R ARIMA forecasting, historical VaR/Expected Shortfall, jump-intensity
Heston proxy parameters including rho, cross-asset calibration, and six concurrent bounded estimation, Heston characteristic-function option pricing + surface calibration, empirical
forecast horizons. A Tcl runner provides tested `M2 price_tick → R M3a → M3 hub → Marketplace` walk-forward confidence/correctness/certainty scoring, and six concurrent bounded forecast
integration. Native R CI and the boundary integration suite are green. Remaining research-depth horizons. All seven declared prediction types are implemented. A Tcl runner provides tested
work is Heston characteristic-function/option-surface calibration, richer rough-vol parameter `M2 price_tick + dex_pool_state → R M3a → M3 hub → Marketplace` integration. Native R CI and
estimation, historical backtest calibration of the three quality scores, and live multi-source the boundary integration suite are green. Core methods C4/C5; implementation C3; live-market
M2 adapters beyond normalized price history. Core methods C4/C5; implementation C3; parameterization remains data-dependent rather than hardcoded.
live-market parameterization remains C1/C2.
## 3. Language & location ## 3. Language & location
**R 4.x** (apt `r-base-core`) · `src/economy/sims/statistical/`. Vital CRAN packages only: **R 4.x** (apt `r-base-core`) · `src/economy/sims/statistical/`. Vital CRAN packages only:
@@ -73,10 +72,13 @@ the Hub stdin/stdout protocol is hand-rolled.
- Calibration: ingests `price_tick` and `dex_pool_state` from M2 Data Feeds. - Calibration: ingests `price_tick` and `dex_pool_state` from M2 Data Feeds.
## 6. Dependencies & stubs ## 6. Dependencies & stubs
- M2 Data Feeds — normalized `price_tick` history is now consumed by the Tcl→R - M2 Data Feeds — normalized `price_tick` and `dex_pool_state` histories are consumed by
integration path; RSS and DEX-pool cross-source calibration remain open. the Tcl→R calibration path. Pool observations contribute liquidity-weighted reference price,
- M3 Sims hub — M3a predictions are now published into the live hub and subsequently queried by dispersion, basis, and certainty calibration.
Traders through Marketplace. - M3 Sims hub — typed M3a predictions are published as bounded scalar predictions. Categorical
regime state is carried as a label plus a bounded posterior probability; correlation matrices
retain the matrix as detail while the bounded scalar value is the mean off-diagonal
correlation, preserving the hub's scalar-bound invariant.
## 7. Invariants / laws ## 7. Invariants / laws
- **L1 (C5):** bounds are **statistical confidence intervals** — derived from the model's - **L1 (C5):** bounds are **statistical confidence intervals** — derived from the model's
@@ -114,9 +116,14 @@ synthetic regime-switching data. Copula: tail dependence captured (BTC crash →
correlation spike). Jump-diffusion: fat tails reproduced. Calibration: new data shifts parameter correlation spike). Jump-diffusion: fat tails reproduced. Calibration: new data shifts parameter
estimates. Multi-horizon: all six horizons produce concurrent outputs. estimates. Multi-horizon: all six horizons produce concurrent outputs.
## 10. Open items ## 10. V1 decisions and future extensions
- Heston calibration method (characteristic function inversion? particle filter?). - **Heston calibration:** resolved with characteristic-function inversion and numerical
- Rough vol computational cost (fBM generation is O(N²) naively; FFT methods needed). option-surface calibration; realized-price proxy calibration remains available when no option
- HMM state count (3 sufficient? 4+ for crypto with "mania" regime?). surface exists.
- Which copula family for tail dependence ($t$-copula? Clayton? Joe?). - **Rough-vol cost:** resolved with Davies–Harte circulant embedding / FFT rather than the
- Computational budget per horizon (GPU for Monte Carlo paths?). O(N²) naive generator.
- **HMM states:** three states (bear / neutral / bull) are canonical for V1. A fourth "mania"
state is an optional future experiment, not a V1 dependency.
- **Tail copula:** Student-t copula is canonical for V1, with fitted degrees of freedom.
- **Compute budget:** Monte Carlo path count is explicit per query and CPU-native in V1.
GPU acceleration is an optional optimization; it is not required for correctness.