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.

CROSS-REGIME EVALUATION MATRIX

Prediction-Error Heatmap (Mean Absolute Error — MAE)

Evaluated strictly on the chronological 15% Future Test split across all signal structures.

HOW TO READLower MAE = better accuracy. Green-highlighted tiles mark the winning model for each row. Notice how different signal structures favor different ML architectures.
Out-of-Sample Test MAE by Signal Regime & Forecasting Algorithm
Signal RegimeNaive BaselineLinear RegressionRandom ForestGradient BoostingOptimal Forecaster
Periodic Signal0.07130.01960.02750.0438linear regression
Noisy Signal0.52710.43880.42270.4687random forest
Trending Signal0.25230.19930.25670.2893linear regression
Irregular Signal0.58950.47610.50310.6197linear regression
BOOTSTRAPPED CONFIDENCE INTERVALS

3D Error Comparison & 95% Bootstrap CIs (Periodic Signal)

Compares Train MAE, Validation MAE, and Test MAE with 200-iteration bootstrap uncertainty bounds.

OVERFITTING CHECKIf a model has a tiny Train MAE but a huge Test MAE, it memorized historical noise (overfitting). Look for models with low, consistent bars on the Test split.
MAE 0.0713Naive BaselineMAE 0.0196Linear RegressionMAE 0.0275Random ForestMAE 0.0438Gradient Boosting

Naive Baseline

14µs
Train MAE: 0.0603 · Val MAE: 0.0687 · Test MAE: 0.0713
Test RMSE: 0.0828 · 95% CI: [0.0556, 0.0872]

Linear Regression

52µs
Train MAE: 0.017 · Val MAE: 0.0154 · Test MAE: 0.0196
Test RMSE: 0.0222 · 95% CI: [0.0154, 0.0234]

Random Forest

340µs
Train MAE: 0.0325 · Val MAE: 0.0464 · Test MAE: 0.0275
Test RMSE: 0.0353 · 95% CI: [0.0199, 0.0373]

Gradient Boosting

290µs
Train MAE: 0.0091 · Val MAE: 0.0169 · Test MAE: 0.0438
Test RMSE: 0.0527 · 95% CI: [0.0322, 0.0553]