Time Series Validation

Routing Summary

This topic covers how to validate models fitted to time-ordered data without fooling yourself. It has two failure modes. The first is inference: regressions between trending (integrated) series give spurious significance. The second is evaluation: shuffled cross-validation can understate future error. It contains 2 sub-topics (one per source) and 16 notes: 7 from Granger (2003) and 9 from Bergmeir, Hyndman & Koo (2018), counting one cross-source synthesis note.

Sub-topics

  • Granger 2003 - Spurious Regression and Cointegration. COVERS: Granger’s 2003 Nobel Lecture (pp. 360-366), mapped page by page. Integrated series and the pearls/magnets pictures. Cointegration , the Granger representation theorem (5 consequences), ECMs with half-lives, and the Engle-Granger two-step test (critical value −3.34 asymptotic, −3.37 finite-T). Spurious regression from Yule (1926) through Granger-Newbold (1974, Tables 1-2 in full) to Phillips (1986): , DW , the rule, and a 6-step screening algorithm. Granger causality: definition, Toda-Yamamoto, and cointegration ⇒ causality. Forecasting stages, the decision-maker criterion, and aggregation. A seeded Python Monte Carlo with 5 experiments and 3 figures (67-90% false rejections in levels, about 5% in differences). (7 notes, 3 figures.)
  • Bergmeir Hyndman Koo 2018 - CV for Time Series. COVERS: Bergmeir, Hyndman & Koo (2018, CSDA 120:70-83), mapped section by section. Lag-embedded K-fold CV vs h-block / non-dependent CV (Figure 1). Assumptions A1-A3 and Theorem 1 (CV is consistent for pure AR() models with martingale-difference errors), with the full Appendix A proof and flagged source slips. The Monte Carlo design (MAPAE/MPAE, 3 DGPs × 2 model families × 4 procedures) and Tables 1-2 transcribed in full. CV is about twice as precise as OOS on AR(3) data (MAPAE 0.09 vs 0.16) but optimistically biased when every candidate underfits. The sunspot example with a Ljung-Box filter (763/1,560 configs; RMSE 2.247 vs 2.281). A 5-step decision rule and the scope limits for exogenous regressors. A cross-source synthesis note on rolling-origin, blocked and nested schemes, null baselines, a random-ranking permutation test, and CRPS backtests. (9 notes.)

Concept Map

ConceptNoteSourceTypeKey Result
Integrated series Granger 2003 - Econometrics, Integrated Series and the String-of-Pearls PictureGrangerdefinition stationary; changes are closer to stationary than levels
Spurious regressionGranger 2003 - Spurious Regression from Yule to Granger-NewboldGrangerdefinition / theoremIndependent random walks “find” relationships; grows like
flagGranger 2003 - Spurious Regression from Yule to Granger-NewboldGrangerheuristicSymptom check for levels regressions of trending series
Spurious-regression Monte CarloGranger 2003 - Spurious Regression Monte Carlo in PythonGrangerexample / code67-90% false rejections in levels; 4-6% in differences
Cointegration and ECMGranger 2003 - Cointegration and the Error-Correction RepresentationGrangertheorem / algorithmCointegration ⇔ ECM; Engle-Granger residual ADF test
Granger causalityGranger 2003 - Granger Causality and Its Link to CointegrationGrangerdefinition / theoremCointegration implies causality in at least one direction
Decision-maker criterion and forecast stagesGranger 2003 - Forecasting, Decision Science and AggregationGrangerconcept / algorithmJudge models by decision usefulness and by their past forecasts
Lag-embedded K-fold CVBergmeir 2018 - Lag-Embedded K-Fold CV vs h-Block CVBergmeiralgorithmLeave out whole embedded rows, not raw values
h-block (non-dependent) CVBergmeir 2018 - Lag-Embedded K-Fold CV vs h-Block CVBergmeirdefinitionDrops so much training data it overestimates error badly
Theorem 1 (A1-A3)Bergmeir 2018 - Theorem 1 Validity of K-Fold CV for Autoregressive ModelsBergmeirtheorem for stationary pure AR with MDS errors
Lemma 1Bergmeir 2018 - Proof of Theorem 1 and Lemma 1BergmeirproofOff-diagonal error cross-products vanish
MAPAE / MPAEBergmeir 2018 - Monte Carlo Design and MAPAE-MPAE MetricsBergmeirdefinitionPrecision and bias of an error estimate vs realised future error
CV vs OOS precision; underfitting failureBergmeir 2018 - Monte Carlo Results for AR and MLP ForecastersBergmeirempirical resultCV ≈ 2× more precise; seasonal DGP makes CV more optimistic than OOS
Ljung-Box admissibility filterBergmeir 2018 - Sunspot Example with Ljung-Box Residual FilterBergmeiralgorithmKeep only configs whose out-of-fold residuals are white
CV decision ruleBergmeir 2018 - Conclusions, Decision Rule and Scope LimitsBergmeiralgorithmLag-only and white residuals → K-fold; otherwise time-ordered
Rolling origin, blocked and nested CV; null baselinesOut-of-Sample Validation for Time-Series Modelssynthesisalgorithm / exampleRandom K-fold understates a flexible model’s error; naive beats a spurious driver model in 99.8% of runs

Cross-Cutting Concepts

  • Stationarity is the hinge assumption. Granger shows that standard regression inference breaks for integrated series (Phillips asymptotics). Bergmeir’s Theorem 1 requires a stationary, ergodic process (A1 in Bergmeir 2018 - Theorem 1 Validity of K-Fold CV for Autoregressive Models). Both sources therefore agree that trending series must be differenced, detrended or modelled as cointegrated before any standard tool is trusted. See Bergmeir 2018 - Conclusions, Decision Rule and Scope Limits (limitations table) and Granger 2003 - Cointegration and the Error-Correction Representation.
  • Residual autocorrelation is the shared diagnostic. Granger uses a low Durbin-Watson statistic () to flag spurious levels fits. Bergmeir uses a Ljung-Box test on pooled out-of-fold residuals to flag underfitting that biases CV (Bergmeir 2018 - Sunspot Example with Ljung-Box Residual Filter). The test differs; the logic is the same: correlated residuals mean the model’s assumptions, and its error estimates, cannot be trusted.
  • Trending exogenous regressors: where the two sources meet. Bergmeir’s theorem covers only purely autoregressive models and is silent on driver or marketing-mix regressions with persistent exogenous inputs. The vault extension in Bergmeir 2018 - Conclusions, Decision Rule and Scope Limits and Out-of-Sample Validation for Time-Series Models uses Granger’s spurious-regression mechanism to explain why shuffled folds look optimistic there: they let the model interpolate a shared trend from neighbouring weeks. The trending-driver simulation in the synthesis note (random K-fold 3.18 vs true 4.10) is the evaluation counterpart of Granger’s inference result (Experiment 1).
  • Where they differ in emphasis. Granger is cautious: his remedy is model form (difference, or fit an ECM) plus time-ordered forecast evaluation. Bergmeir is permissive within limits: ordinary K-fold CV is better than a single holdout for pure AR models, so the blanket rule “never shuffle time series” (as in Forecast Evaluation and Backtesting) is too strict inside the theorem’s conditions and correct outside them.
  • More data does not rescue a wrong assumption. For spurious regression the false-rejection rate rises with (Granger, Phillips). For underfitting forecasters, CV’s bias does not vanish with more folds or LOOCV (Bergmeir, Table 1 seasonal DGP). Both are reasons to check specification before reading precision.
  • Simulation as the validation method. Both sub-topics rely on Monte Carlo evidence: Granger-Newbold’s 1974 design reproduced in Granger 2003 - Spurious Regression Monte Carlo in Python (with an ADEMP table), and Bergmeir’s MAPAE/MPAE study in Bergmeir 2018 - Monte Carlo Design and MAPAE-MPAE Metrics. Both follow the design principles in Morris White Crowther 2019 - Simulation Studies (ADEMP) - Overview.
  • Decision value and forecast evaluation as the final arbiter. Granger’s decision-maker criterion and forecast stages (forecast stages) and Bergmeir’s prediction-error target agree that out-of-sample predictive performance, not in-sample significance, is the yardstick. The synthesis note puts this into practice with rolling-origin CRPS backtests and naive / seasonal-naive baselines.

Sources

  • Granger 2003 - Time Series Analysis Cointegration and Applications (Nobel Lecture): Granger (2003) Nobel Lecture, Les Prix Nobel 2003, pp. 360-366. Citation-only background: Yule (1926), Granger & Newbold (1974), Phillips (1986), Engle & Granger (1987).
  • Bergmeir Hyndman Koo 2018 - A Note on the Validity of Cross-Validation for Evaluating Autoregressive Time Series Prediction: author preprint (July 23, 2017, 18 pp.) of Bergmeir, Hyndman & Koo (2018), Computational Statistics & Data Analysis 120:70-83.

See Also