Skip to content

Track T16

Time Series & Forecasting

Stationarity, dependence, breaks and forecasts you can trust.

Unit 1Reading a series

· 3 lessons
  1. 1Why order mattersShuffling a series keeps its mean and destroys its story. See what autocorrelation does to the amount of information in your data, and what that does to ordinary tests.Introductory · 10 min
  2. 2Trend, season and remainderSplit a series into its parts with classical, STL and MSTL decomposition, measure how strong each part is, and spot when seasonality grows with the level.Applied · 12 min
  3. 3Reading ACF and PACFRecognize AR, MA, seasonal and non-stationary signatures in autocorrelation plots, and understand what the significance band can and can't tell you.Applied · 11 min

Unit 2Stationarity

· 4 lessons
  1. 4Stationarity and unit rootsSee why a wandering series breaks ordinary regression, tell a unit root from a stationary series, and run the Dickey–Fuller test with its unusual critical values.Applied · 13 min
  2. 5ADF, Phillips–Perron and DF-GLSHandle autocorrelated errors with augmenting lags or a long-run variance correction, and use GLS detrending for more power near a unit root.Advanced · 12 min
  3. 6KPSS, the battery and breaksFlip the null with KPSS, read the four outcomes of a battery and its recommended differences, and see how a single break can fool them all until Zivot–Andrews looks for it.Advanced · 14 min
  4. 7Panel unit-root testsPool many short series for more power, with tests that differ on what they assume about units, what they pool and how they read rejection.Advanced · 12 min

Unit 3Relationships

· 3 lessons
  1. 8CointegrationFind a long-run relationship between wandering series, with Engle–Granger, Phillips–Ouliaris and Johansen, and see why ordinary regression can't tell it from a spurious link.Advanced · 14 min
  2. 9Granger causality: predictive, not causalAsk whether one series' past helps predict another, handle unit roots with Toda–Yamamoto, and keep the word "causality" in its place.Applied · 11 min
  3. 10VAR and VECM: several series togetherForecast several series from each other's past, trace how a shock spreads, and add long-run relationships when the series are cointegrated.Advanced · 13 min

Unit 4Dependence

· 2 lessons
  1. 11Is it random? Runs and portmanteau testsTest a series for order with runs, Bartels and Wallis–Moore tests, and for autocorrelation with Box–Pierce and Ljung–Box, including on a model's residuals.Applied · 14 min
  2. 12Volatility, ARCH and GARCHSee dependence that lives in squares, not levels, test for it with ARCH LM, McLeod–Li and BDS, and forecast how large the next moves may be with GARCH.Advanced · 14 min

Unit 5Trends and breaks

· 6 lessons
  1. 13Is it trending? Mann–Kendall and Sen's slopeTest for a monotonic trend without assuming a straight line or normal errors, correct for autocorrelation, and handle seasons and covariates.Applied · 14 min
  2. 14Did the level shift? Change-point testsFind when a level shifted with Pettitt, Buishand, SNHT and Lanzante, date several shifts with PELT, and avoid mistaking autocorrelation or trend for a break.Applied · 13 min
  3. 15Is the relationship stable? Chow, sup-F and CUSUMTest whether a regression's coefficients changed over time, at a known date or an unknown one, and learn why CUSUM and sup-F can give opposite answers on the same data.Advanced · 13 min
  4. 24Hidden regimes: hidden Markov modelsWhen a series switches between a few regimes and back again, a hidden Markov model finds the regimes, how long each lasts, and which one was in force at every step.Advanced · 16 min
  5. 31Tracking a hidden state: particle filtersA noisy series often hides a smoother level or a changing volatility. A particle filter tracks it with thousands of weighted guesses, and PMMH estimates how noisy each part is.Advanced · 16 min
  6. 32Following objects through a video: tracking by detectionLink a detector's boxes into identities that persist across frames with a Kalman filter and the Hungarian method, then judge the tracks with MOTA, IDF1 and identity switches.Advanced · 15 min

Unit 6Forecasting

· 12 lessons
  1. 16Baselines and backtestsStart every forecast from a simple rule, test on data the model hasn't seen with rolling origins, and pick metrics that mean what you need them to.Applied · 13 min
  2. 17Exponential smoothing and ThetaRead the ETS naming scheme, see what the smoothing parameters mean, damp a trend you don't trust, and meet Theta, a simple method that has done well in competitions.Applied · 13 min
  3. 18ARIMA and regressorsRead an ARIMA label, choose differences and orders, add known drivers with regression and ARIMA errors, and check what a backtest assumes about the future.Advanced · 14 min
  4. 19Several seasons, and machine-learning forecastersHandle several seasonal cycles with MSTL, TBATS and Prophet, then use lag features and recurrent networks, always measured against the same baselines.Advanced · 15 min
  5. 20Intermittent demand and hierarchiesForecast spare parts that sell only now and then with Croston-type methods, and make store, region and total forecasts add up with reconciliation.Advanced · 13 min
  6. 21Is one forecast really better?Test forecast accuracy with Diebold–Mariano, Giacomini–White and Pesaran–Timmermann, use a Model Confidence Set, and avoid crowning a winner from a noisy leaderboard.Advanced · 13 min
  7. 22From study to forecast in the Series labBring the track together in the Series lab. Look at a series, test what you need, and carry differences, season and training window into a forecast experiment with your eyes open.Applied · 12 min
  8. 23Neural and pretrained forecasters: N-BEATS, N-HiTS and ChronosForecast the whole horizon at once with N-BEATS and N-HiTS, read their parts, try a pretrained Chronos model without training, and judge all three on the same backtest as the baselines.Advanced · 14 min
  9. 26Convolutions, reservoirs and DeepAR: more neural forecastersThree more ways a network can forecast — dilated causal convolutions, a fixed random reservoir with a trained readout, and one probabilistic network for many series — plus the plain Elman recurrence they improve on.Advanced · 16 min
  10. 27Chronos-2: a pretrained forecaster that reads covariatesGive a pretrained forecaster the drivers you know about, tell past-only covariates from known-future ones, forecast related series together, and judge all of it on the same backtest as the baselines.Advanced · 12 min
  11. 28Transformers for forecasting: PatchTST and the Temporal Fusion TransformerTwo attention-based forecasters, PatchTST (patches, every step at once) and the Temporal Fusion Transformer (covariates, quantiles), plus adaptive conformal intervals for series whose errors change.Advanced · 16 min
  12. 29TimeGrad: diffusion forecasts with joint sample pathsForecast two related series with one diffusion model that draws their futures together, read the joint sample paths' intervals, and score them with the exact CRPS of the sample and the energy score.Advanced · 12 min

Unit 7Curves and signals

· 2 lessons
  1. 25Curves and signals as data: functional PCA and wavelet scatteringWhen each observation is a whole curve or signal, functional PCA finds its main shapes and the scattering transform turns it into stable features for comparing and classifying.Advanced · 18 min
  2. 30TS2Vec: learning what series look like, without labelsTurn each series, or each stretch of one, into a short learned vector with TS2Vec, read the embedding map, and check with a probe whether the embeddings separate known classes.Advanced · 12 min