State-Space Model, Inference & Crisis Early Warning
Mathematical foundations of latent_liquidity_quant — SVL-augmented state dynamics,
DRD covariance, Sinkhorn OT particle filtering, online parameter learning, and the
three-feature logistic warning pipeline.
Three latent factors drive all observables. The system is estimated daily via Sequential Monte Carlo, producing full posterior distributions rather than point estimates.
The $\beta_L e^{h_t/2}$ coupling implements the liquidity-volatility spiral. Using $e^{h_t/2}$ (vol scale) rather than $e^{h_t}$ (variance) prevents explosive feedback during extreme events — a critical numerical stability choice.
Section 02
Stochastic Volatility with Leverage (SVL)
Equity markets exhibit a well-documented leverage effect: negative returns systematically precede volatility increases. The baseline SV model misses this, causing underestimation of vol during market dislocations.
When SPY returns are large and negative, $\rho_\text{lev}\varepsilon_t^\text{ret}$ is positive (since $\rho_\text{lev}<0$), pushing $h_{t+1}$ upward. Default: $\rho_\text{lev}=-0.731$. Constrained via $-\sigma(\tilde\rho)$. Validation: after SVL, DPF gives $h_\text{calm}\approx-0.6$, $h_\text{GFC}\approx+1.1$ — VIX 18 calm, VIX 30 at peak.
Section 03
DRD Return Covariance
The simple $\Sigma_t = e^{h_t}R(\rho_t)$ assigns identical variance to all assets. The Diagonal-Rotation-Diagonal (DRD) structure gives each asset its own baseline volatility.
ICE BofA OAS. Regressed on $L_t$: $\mathcal{N}(3.5+L_t, 0.023)$. Daily noise $\sigma=0.15\%$ reflects realistic HY market.
SPY/TLT Corr
30-day rolling Pearson correlation. $\mathcal{N}(-0.15+0.4\rho_t, 0.01)$. Rises toward 1 during systemic stress.
Section 05
Filter Architectures
Both filters maintain $N$ weighted particles: $p(\mathbf{x}_t\mid\mathbf{y}_{1:t})\approx\sum_i w_t^{(i)}\delta(\mathbf{x}_t-\mathbf{x}_t^{(i)})$.
Bootstrap Particle Filter (BPF)
$N=1000$, fixed hand-calibrated parameters, multinomial resampling when $\text{ESS}_t < N/2$. Stable and stationary — easier to calibrate, but cannot adapt to structural shifts.
Differentiable Particle Filter (DPF)
$N=500$, Sinkhorn OT resampling, online gradient-based parameter learning. Makes the filter differentiable with respect to $\bm\theta$.
Sinkhorn regularised OT ($\varepsilon=0.5$, 20 iterations)
The filtering posterior is extended into a 60-day Monte Carlo simulation. DPF uses a separate fixed-parameter SSM — preventing parameter drift from inflating calm-period crisis probabilities.
Step 01
Resample
Draw particles from $p(\mathbf{x}_t\mid\mathbf{y}_{1:t})$ weighted by $\{w_t^{(i)}\}$.
Step 02
Propagate
Run each particle forward $H=60$ steps via fixed-param SSM. Track simulated drawdown per particle.
Step 03
Score
Apply calibrated logistic model $f_{\bm\beta}(\hat{L},\Delta\hat{L},D)$ each step.
Step 04
Rescale
Average over particles + horizon, subtract neutral baseline $p_0\approx0.42$, clip to $[0,1]$.