Forecasting Models
All 4 models train on the same 9 engineered features (lag_1..10, rolling_mean, rolling_std, ewma, momentum) scaled strictly on the 70% training split.
ŷ(t) = y(t - 1)Naive Persistence Baseline
Strength: Zero training cost; hard to beat on pure random walks.
Blind Spot: Always lags 1 step behind turning points and amplifies noise.
ŷ(t) = wᵀ·x(t) + b (L2 penalty)★ Winner (Periodic Signal)Ridge Linear Regression
Strength: Best at extrapolating continuous upward/downward trends and smooth sine waves.
Blind Spot: Cannot model sharp non-linear regime switches without custom interaction terms.
ŷ(t) = (1/B) ∑ Tree_b(x)Random Forest (25 Trees)
Strength: Averages 25 bootstrapped trees to filter out heavy Gaussian static and variance.
Blind Spot: Tree leaves output bounded historical averages, struggling when a trend climbs to new highs.
F_m(x) = F_{m-1}(x) + η·h_m(x)Gradient Boosting (35 Stages)
Strength: Sequentially corrects prior residual errors; strong on irregular multi-regime signals.
Blind Spot: Can overfit high-frequency white noise if learning rate η is not regularized.
Prediction-Error Heatmap (Mean Absolute Error — MAE)
Evaluated strictly on the chronological 15% Future Test split across all signal structures.
| Signal Regime | Naive Baseline | Linear Regression | Random Forest | Gradient Boosting | Optimal Forecaster |
|---|---|---|---|---|---|
| Periodic Signal | 0.0713 | 0.0196 | 0.0275 | 0.0438 | linear regression |
| Noisy Signal | 0.5271 | 0.4388 | 0.4227 | 0.4687 | random forest |
| Trending Signal | 0.2523 | 0.1993 | 0.2567 | 0.2893 | linear regression |
| Irregular Signal | 0.5895 | 0.4761 | 0.5031 | 0.6197 | linear regression |
3D Error Comparison & 95% Bootstrap CIs (Periodic Signal)
Compares Train MAE, Validation MAE, and Test MAE with 200-iteration bootstrap uncertainty bounds.