- Introduced by
- Harvey, A. C.; Durbin, J. & Koopman, S. J. (state-space framework)
- Year
- 1990s
- Type
- Time-varying state-space model
- Family
- Econometrics / time series
What does it do?
The Time-Varying Parameter SARIMA model extends the classical SARIMA framework by letting its autoregressive and moving-average coefficients evolve over time.
Written in state-space form and estimated with the Kalman filter, it can represent seasonal structure and gradual parameter change in a single model. Setting the state-noise variance to zero recovers a fixed-parameter SARIMA.
The intuition behind the method
A standard SARIMA model fixes its coefficients for the entire sample. In reality, the relationship between past values and future observations often drifts — economic regimes change, seasonal patterns shift, and shocks alter behavior permanently. The TVP-SARIMA treats these coefficients as latent states that follow a random walk, so the model continuously updates its estimates as new data arrive. Think of it as a SARIMA model that learns and adapts its own structure through time, rather than assuming the world was the same in 1980 as it is today.
History
Time-varying parameter models build on Kalman's (1960) state-space filtering framework. Harvey's 1990 book set out structural time series models, including seasonal components with evolving coefficients, and Durbin and Koopman's 2012 second edition gives the modern state-space treatment. The TVP-SARIMA variant combines seasonal ARIMA identification with this state-space parameterization.
When to use it
Use TVP-SARIMA when you have a seasonal univariate series whose dynamics plausibly shift over time, for example macroeconomic aggregates spanning several business cycles, energy or commodity demand affected by structural change, or retail sales where consumer behaviour evolves gradually. It is most useful when standard SARIMA diagnostics show parameter instability, such as Chow or CUSUM test results, or when the forecast horizon is long enough for coefficient drift to matter. Avoid it when the series is short, since estimating the state-noise variances alongside the SARIMA parameters needs a substantial number of observations. Also avoid it when a fixed-parameter SARIMA with break dummies fits adequately, because the added complexity is then unjustified. If the change is an abrupt break rather than gradual drift, a model built for regime shifts is usually the better choice.
Limitations and considerations
- Requires substantially longer series than standard SARIMA to identify the state-noise variances reliably.
- Computationally more demanding: each evaluation of the likelihood runs a full Kalman filter pass.
- Risk of over-parameterization if multiple coefficients are allowed to vary simultaneously without regularization.
- Interpretation of smoothed coefficient paths can be misleading if the underlying state equation (random walk) is misspecified.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Captures gradual structural change without requiring a known break date — coefficients evolve continuously.
- Retains the interpretable SARIMA seasonal structure while adding flexibility.
- Kalman filter delivers real-time one-step-ahead forecasts that naturally incorporate the latest information.
- Nests fixed-parameter SARIMA as a special case (Q = 0), enabling formal likelihood-ratio testing of parameter constancy. Because Q = 0 lies on the boundary of the parameter space, the standard chi-squared reference distribution may not apply, so use boundary-corrected or simulation-based critical values.
- Bayesian implementations provide full posterior uncertainty over the time-varying paths.
Applications
- Seasonal macroeconomic aggregates observed over long samples that span several cycles, where coefficients may drift.
- Seasonal demand or consumption series whose response to past values may change gradually over time.
- Seasonal series for which a fixed-parameter SARIMA shows parameter instability in standard stability tests.
How it works
How it works
The starting point is a standard SARIMA(p,d,q)(P,D,Q)s specification that accounts for non-seasonal and seasonal autoregressive and moving-average terms, and for both regular and seasonal differencing to achieve stationarity.
Formula
\Phi_p(B)\Phi_P(B^s)\Delta^d\Delta_s^D y_t = \Theta_q(B)\Theta_Q(B^s)\varepsilon_t
Each coefficient β is promoted to a latent state that evolves according to a random walk: β_t = β_{t-1} + η_t. The variance Q of the state noise η_t governs how rapidly coefficients are permitted to change; Q = 0 recovers the fixed-parameter SARIMA.
Formula
\beta_t = \beta_{t-1} + \eta_t, \quad \eta_t \sim N(0, Q)The observed series y_t, taken after the differencing specified in the SARIMA structure above, is linked to the time-varying states through the measurement equation y_t = Z_t β_t + ε_t, where ε_t is measurement error with variance H. In this equation ε_t denotes the measurement term and is not the SARIMA innovation written with the same symbol above. Z_t collects the regressors that multiply the current coefficients; for autoregressive terms these are lagged values of the series. Moving-average terms require lagged shocks, which is handled by augmenting the state vector, as is standard in the state-space literature cited below.
Formula
y_t = Z_t \beta_t + \varepsilon_t, \quad \varepsilon_t \sim N(0, H)
Given initial conditions, the Kalman filter recursively computes the optimal linear prediction and update of the state vector at each period. The filtered states give period-by-period coefficient estimates, and the Kalman smoother retrieves the full posterior trajectory retrospectively.
The prediction-error decomposition produced by the Kalman filter yields the Gaussian log-likelihood as a function of the hyperparameters (Q, H, initial state covariance). These are estimated by maximum likelihood or, in a Bayesian variant, by MCMC, and model selection proceeds via AIC, BIC, or posterior predictive criteria.
Common pitfalls
- Making all SARIMA coefficients time-varying at once in a short series typically gives a poorly identified likelihood and an unstable estimate of Q. Start with only one or two time-varying parameters.
- Confusing filtered states (real-time estimate using data up to t) with smoothed states (full-sample retrospective estimate); forecasting should use filtered states, not smoothed ones.
- Ignoring the initialization problem: diffuse or poor priors on the initial state covariance distort early-sample coefficient estimates.
- Treating a regime switch (abrupt break) as a gradual drift. If the break is sharp, a Markov-switching or intervention-SARIMA model is more appropriate.
- Forgetting to difference the series to the correct order d, D before fitting; the TVP extension does not remove the need for proper integration testing.
Frequently asked questions
How does TVP-SARIMA differ from a Markov-switching SARIMA?
TVP-SARIMA allows coefficients to drift continuously and smoothly via a random walk, suitable for gradual structural change. Markov-switching SARIMA models abrupt regime shifts between a discrete set of fixed-coefficient regimes. Choose TVP when change is slow and regime membership is unclear; choose Markov-switching when breaks are sharp and regimes are economically distinct.
How do I choose which coefficients to make time-varying?
Start with economic reasoning about which coefficient is most likely to drift. Parameter-stability tests such as CUSUM or the Nyblom test assess whether coefficients are constant. The Nyblom test is a joint test across parameters, so on its own it does not identify which coefficient moves. Allowing only one or two parameters to vary keeps the model identified and interpretable, especially with moderate sample sizes.
Can I use TVP-SARIMA for multi-step forecasting?
Yes. The Kalman filter naturally propagates uncertainty through the state equation, so multi-step forecast intervals account for both observation noise and coefficient uncertainty. However, when coefficients drift, long-horizon forecasts carry substantial parameter uncertainty and intervals widen considerably.
What software implements TVP-SARIMA?
Estimation is usually done with general-purpose state-space or unobserved-components software that supports Kalman filtering and maximum likelihood, or with Bayesian samplers for the Bayesian variant. Whether a given package handles a TVP-SARIMA specification directly should be checked against its current documentation.
How is the state-noise variance Q estimated?
Q is estimated as a hyperparameter by maximum likelihood, using the prediction-error decomposition of the Kalman filter. In Bayesian settings a prior is placed on Q and it is estimated by MCMC. A likelihood-ratio comparison of Q = 0 (fixed SARIMA) against Q > 0 tests whether time variation is warranted. Because Q = 0 lies on the boundary of the parameter space, the usual chi-squared reference distribution may not apply to that test.
Related methods
Sources
Harvey, A. C. (1990). Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press.
ISBN: 9780521321969Durbin, J., & Koopman, S. J. (2012). Time Series Analysis by State Space Methods (2nd ed.). Oxford University Press.
ISBN: 9780199641178