Markets: A Rigorous Course

Part VI · Prediction and synthesis · M13 · week 7 · 16 h

Forecasting and market prediction

What prediction can mean in near-efficient markets, ARMA, out-of-sample R², GARCH by maximum likelihood, regime switching, machine-learning pitfalls, proper scoring rules and the forecast journal.

Builds on M02 Statistics of returnsM04 Systematic research

Prerequisites M02 (returns, autocorrelation, volatility clustering), M04 (backtesting, Sharpe-ratio statistics, multiple testing). M03 and M09 help for the economic value of forecasts. Maths: conditional expectation and the tower property, maximum likelihood, finite Markov chains, convexity and Jensen's inequality. Time: ~16 hours (notes 9 h, problems 4 h, code 3 h). Primary texts: J. D. Hamilton, Time Series Analysis (Princeton, 1994), ch. 3–5, 21, 22; R. Tsay, Analysis of Financial Time Series (3rd ed., Wiley, 2010), ch. 2–4; M. López de Prado, Advances in Financial Machine Learning (Wiley, 2018), ch. 3, 4, 7; P. Tetlock and D. Gardner, Superforecasting (Crown, 2015); T. Gneiting and A. Raftery, "Strictly proper scoring rules, prediction, and estimation", JASA (2007).

Learning outcomes

  1. State the three forms of market efficiency and the Grossman–Stiglitz argument precisely, and say which kind of forecast (mean, variance, event probability) each one leaves room for.
  2. Derive the stationarity conditions, autocorrelations, Yule–Walker equations and hh-step forecasts of AR(pp) models, and compute the population R2R^2 of an AR forecast.
  3. Define the out-of-sample R2R^2 of Campbell and Thompson, derive the Sharpe ratio a mean-variance investor gains from a predictor with a given R2R^2, and derive the Stambaugh bias of predictive regressions.
  4. Derive the unconditional variance, ARMA representation, kurtosis, half-life, multi-step forecasts, log-likelihood and score of GARCH(1,1), and estimate it by maximum likelihood from scratch.
  5. Derive the Hamilton filter and the Kim smoother for a two-state Markov-switching model, and explain why smoothed probabilities are look-ahead in a backtest.
  6. Build purged k-fold cross-validation with an embargo, triple-barrier labels and meta-labels, and quantify the leakage that ordinary k-fold creates with overlapping labels.
  7. Prove that the Brier and logarithmic scores are strictly proper, prove the Murphy decomposition of the Brier score, and score your own probabilistic forecasts in a journal.

Sections ≈ 2 h 45 min of study

  • Foundation 3 sections · ≈ 35 min
  • Core 7 sections · ≈ 1 h 30 min
  • Advanced 3 sections · ≈ 40 min
  1. Learning outcomes Foundation 5′
  2. 13.1 What "prediction" can mean in a near-efficient market Core 15′
  3. 13.2 Linear time-series models: ARMA Advanced 15′
  4. 13.3 Return predictability and out-of-sample R2R^2 Core 20′
  5. Figure Out-of-sample R² when predictability is real but small
  6. 13.4 GARCH(1,1): forecasting volatility Core 20′
  7. Figure GARCH(1,1) forecast term structure and cone
  8. Lab GARCH(1,1) on the Nifty: fit, conditional volatility and forecast cone
  9. 13.5 Regime switching: the Hamilton filter Advanced 10′
  10. Figure Hamilton filter on simulated regimes: filtered versus smoothed
  11. 13.6 Machine-learning pitfalls: leakage, purged cross-validation, labels Advanced 15′
  12. 13.7 Proper scoring rules and calibration Core 15′
  13. Figure Reliability diagram and the Murphy decomposition
  14. 13.8 Judgmental forecasting and the forecast journal Foundation 15′
  15. 13.9 Case studies Core 10′
  16. Summary of key results Foundation 15′
  17. Readings and resources Core 5′
  18. Facts that change Core 5′

Create a free account

Reading is open to everyone. An account keeps your progress, answers, notes and code drafts, and gives you the study plan, the journals and the simulator. Running code needs an account approved for it.