Step 7 / Latest signal
Attribution: attention x Integrated Gradients
P(Crisis) on 2025-03-13, calibrated with temperature scaling.
Top-3 drivers
- 1SPREAD_chg_5dvalue -2,199.61attr 0.0006
- 2MA100value 59,086.34attr 0.0003
- 3SPREADvalue 54,493.59attr 0.0003
Step 2 / MRSM regime variances
Train-only fit, frozen params
Stable
σ² 0.333002
Moderate
σ² 1.626206
Crisis
σ² 10.199626
Step 6 / Calibration of Model B
Fitted temperature 4.255
Brier score on P(Crisis) — lower is better. Temperature scaling (0.0193) beats both the uncalibrated model (0.0453) and isotonic regression (0.0216).
Model A
Explain the current regime
Model_A_Current_Regime_Explainer · horizon = 0 days
76.1%
accuracy · n=1299
| Class | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| Stable | 0.818 | 0.879 | 0.847 | 934 |
| Moderate | 0.559 | 0.469 | 0.510 | 343 |
| Crisis | 1.000 | 0.318 | 0.483 | 22 |
macro F1 0.613
weighted F1 0.752
Confusion matrix · rows = true, cols = predicted
Model B
Forecast the regime ahead
Model_B_Future_Regime_Forecaster · horizon = 5 days
72.3%
accuracy · n=1294
| Class | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| Stable | 0.785 | 0.897 | 0.837 | 932 |
| Moderate | 0.503 | 0.285 | 0.364 | 340 |
| Crisis | 0.056 | 0.091 | 0.069 | 22 |
macro F1 0.423
weighted F1 0.700
Confusion matrix · rows = true, cols = predicted
Step 1 / Data pipeline
Non-trading days removed before features
Raw rows
5,016
Non-trading removed
1,206
24% of raw (repeated TASI price)
After completeness
3,790
from 3,810 trading rows
Feature columns
22
20 shared model inputs
Removals by weekday
- Mon35
- Tue34
- Wed34
- Thu260
- Fri843
Concentrated on Thu/Fri, consistent with the Saudi weekend.
NaNs per required column
- TASI_ret1
- REALIZED_VOL_1010
- REALIZED_VOL_2020
- OIL_chg_5d5
- OIL_chg_20d20
- SPREAD_chg_5d5
Skipped feature
VOLUME_ZSCORE
source column 'DWCF Index (USD) - Volume' only 76% populated — skipped rather than silently dropping rows
Step 2b / Stable-regime diagnostic
Flat-price artefact check
Zero-return days
0 / 3790
0.0% of the cleaned series
Longest zero run
0
Days labelled Stable
2,395
Stable ∩ zero return
0
Stable regime is not a flat-price artefact
Step 3 / Shared feature set
MRSM output feeds both models
- TASI
- OIL
- SPREAD
- US_RATE
- MA50
- MA100
- MA200
- MA15
- TASI_ret
- REALIZED_VOL_10
- REALIZED_VOL_20
- OIL_chg_5d
- OIL_chg_20d
- SPREAD_chg_5d
- TASI_vs_MA50
- TASI_vs_MA200
- RSI_14
- P_Stable_f
- P_Moderate_f
- P_Crisis_f
Highlighted inputs are the filtered MRSM state probabilities shared by Model A and Model B.