Forecasting
"In this world, there's two kinds of people, my friend: those with loaded guns and those who dig. You dig." — The Good, the Bad and the Ugly (1966)
A forecast is the loaded gun. The decision layer of the next chapter is what gets to use it. The forecaster who confuses the two — who ships a model into production with no policy on how its outputs will be acted on — has dug a hole, not built a system.
A forecast is an answer to "what is the conditional distribution of the next observation given everything we know now?" Everything downstream — position sizing, hedging, scenario testing — is some functional of that distribution. This chapter walks the spectrum from disciplined univariate baselines through tree ensembles, deep sequence models, and transformer-based forecasters, with the same evaluation discipline applied throughout.
What this chapter does
Three things repeat across every section, regardless of model class:
- Define the target. Match the target horizon, transformation, and loss to the decision the forecast feeds. A forecaster trained on point-RMSE will produce different positions than one trained on pinball or CRPS, even for the same architecture.
- Respect temporal splits. Walk-forward training, rolling-origin evaluation, and a strict separation between future-known and future-unknown features. Most forecasting bugs in finance trace back to a leak here.
- Evaluate distributionally. RMSE on a median forecast is rarely enough. CRPS, reliability diagrams, and per-regime breakdowns are the metrics that actually correlate with downstream PnL.
This Chapter Covers
- Crafting disciplined univariate baselines (ARIMA, ETS, simple ML) that any later model has to beat to justify itself.
- Leveraging cross-series structure via VARs, BVARs, VECMs, and feature-enriched panels — including the cross-sectional volatility models that risk overlays consume.
- Tree ensembles for nonlinear tabular signals; the strongest baseline on most engineered-feature problems and the one to beat before reaching for a deep model.
- Deep sequence models (RNN, TCN, DeepAR, N-BEATS / N-HiTS) for panels where shared parameters across series and long-range temporal structure pay off.
- Transformer-based forecasters — PatchTST, iTransformer, TimeMixer, TimeXer — and the foundation-forecaster baselines (Chronos, Lag-Llama, MOIRAI) that show up in Chapter 7.
Contents
- Univariate Forecasting — ARIMA / ETS / state-space baselines and the rolling-evaluation protocol used everywhere else.
- Multivariate Forecasting — VAR, BVAR, VECM, DCC-GARCH, and the panel pre-processing that feeds deep models.
- Tree-Based Forecasting — LightGBM-class models, panel structure, and quantile / probabilistic outputs.
- Deep-Learning-Integrated Forecasting — RNN / TCN / DeepAR / N-BEATS / N-HiTS and the practical training recipes that make them stable on financial panels.
- Transformer-Based Forecasting — attention, patching, and the modern transformer family for time series, with the architecture choices that matter at production scale.
- Probabilistic Forecasting — proper scoring rules, conformal prediction, distributional model choices, and how to keep the forecast distribution intact all the way to the decision layer.
- Hierarchical and Cross-Sectional Forecasting — reconciliation (MinT), cross-sectional factor structure, and probabilistic coherence on portfolio panels.
- Foundation Forecasters in Practice — Chronos, Lag-Llama, MOIRAI, TimesFM as zero-shot baselines and the patterns for combining them with task-specific models.