- Introduced by
- Harvey, A. C.; Durbin, J. & Koopman, S. J.
- Year
- 1990s
- Type
- Time-varying state-space model
- Family
- Econometrics / time series
What does it do?
The time-varying parameter moving average (TVP-MA) model extends the standard MA model by letting the moving-average coefficients change over time.
It is written in state-space form and estimated with the Kalman filter and smoother, which suits series whose shock-transmission dynamics may shift across the sample.
The intuition behind the method
A standard MA model assumes that the weight placed on past shocks is fixed for the whole sample. In many economic and financial series this is a strong assumption, since the influence of unexpected shocks may change with market conditions, policy regimes, or structural change. The TVP-MA model treats the MA coefficients as latent states that drift over time and estimates them jointly with the observed series. The result is a historical path showing how the lag profile of shocks may have changed.
History
The origin of the TVP-MA specification is not verified here. Harvey (1990) and Durbin and Koopman (2012) are general background treatments of state-space and Kalman-filter methods, and they are not cited as definitions of the TVP-MA model.
When to use it
Use the TVP-MA model when residual diagnostics or subject-matter reasoning suggest that the lag structure of shocks changes over time, for example around business cycles, financial episodes, or policy changes. It is a reasonable candidate when constant-parameter MA diagnostics are poor or when MA estimates from rolling windows change noticeably. Avoid it when the series is short, because the state noise covariance Q cannot be estimated reliably from little data. Also avoid it when a constant-parameter MA model passes the relevant misspecification checks, since the time-varying version adds estimation burden without a clear gain.
Limitations and considerations
- Q is hard to identify from short samples, so the model needs a reasonably long series before the drift variances can be estimated with any confidence.
- The state dimension grows with the MA order q, so estimation becomes more computationally demanding for higher orders than for a constant-parameter MA estimated by least squares.
- The random-walk specification lets every coefficient wander without bound, which can produce over-fitting when the underlying signal is weak.
- When the true coefficients are close to constant, the likelihood is nearly flat in Q, so the drift variances are poorly identified and the estimated paths can be unstable.
- Choosing q and the structure of Q are both modelling decisions that add complexity and can change the conclusions.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Lets shock-persistence coefficients evolve gradually, without fixing discrete break dates in advance.
- Estimation uses the Kalman filter's prediction-error likelihood under the Gaussian state assumption, so the likelihood can be evaluated directly for estimation and comparison.
- Constant-parameter MA is the nested case Q = 0. Because zero lies on the boundary of the parameter space, standard chi-square tests of the drift variances do not apply directly. Checks against zero should use adjusted critical values or be treated as informal diagnostics.
- The Kalman smoother gives a full historical path of the MA coefficients, which can support interpretation of when shock dynamics changed.
- The same state-space logic extends to MA components inside larger time-varying models, such as TVP-ARIMA or TVP-VARMA.
Applications
- Examining whether the lag profile of shocks in an inflation series has changed across monetary policy regimes.
- Studying whether the moving-average dynamics of macroeconomic aggregates shift around recessions or policy changes.
- Building adaptive forecasting systems in which MA weights are updated as new data arrive.
- Decomposing economic fluctuations into transitory shock components with evolving lag profiles.
How it works
How it works
The observation equation expresses the outcome y_t as a linear combination of q lagged innovations, with coefficients θ_{1,t}, …, θ_{q,t} that carry a time index, plus the current innovation ε_t.
Formula
y_t = \theta_{1,t}\varepsilon_{t-1} + \cdots + \theta_{q,t}\varepsilon_{t-q} + \varepsilon_tEach MA coefficient follows a random walk, θ_t = θ_{t-1} + η_t, where η_t is Gaussian noise with covariance Q. Setting Q to zero would make the coefficients constant, so Q governs how quickly they can drift.
Formula
\boldsymbol{\theta}_t = \boldsymbol{\theta}_{t-1} + \boldsymbol{\eta}_t, \quad \boldsymbol{\eta}_t \sim N(\mathbf{0}, Q)The lagged innovations ε_{t-1}, …, ε_{t-q} are not observed, so the state vector must include them alongside the MA coefficients. Augmenting the state in this way puts the model into a form the Kalman filter can process. The filter moves forward through the sample, updating the conditional mean and variance of the augmented state and producing one-step-ahead forecasts at each observation.
The Kalman smoother makes a backward pass through the sample and revises each coefficient estimate using information from the full sample. This gives a smoothed path for the time-varying MA coefficients. The backward recursions are set out in standard state-space references, including Durbin and Koopman (2012).
The unknown variances, including the entries of Q, are usually estimated by maximising the prediction-error decomposition of the log-likelihood that the Kalman filter produces. The variances are constrained to be non-negative, so the maximisation is normally carried out numerically.
Common pitfalls
- Setting Q to zero reduces the model to a constant-parameter MA. Estimates of Q that are close to zero can still cause numerical problems in the filter, so the smoothed state variances are worth inspecting.
- Initialisation of the state vector matters most early in the sample. A diffuse prior, or an arbitrary initial variance, can distort the first coefficient estimates.
- Reading the smoothed coefficient path as a precise point estimate, without the posterior uncertainty bands from the smoother, overstates what the data show about changes over time.
- Applying the model to an integrated series without differencing makes the innovations non-stationary and undermines the MA interpretation. The model assumes stationary innovations, so difference integrated series before fitting and check unit-root diagnostics first.
- Giving every coefficient its own drift variance when the sample is small leads to over-parameterisation and unstable estimates of Q.
- Time-varying MA coefficients need not keep the implied MA polynomial invertible at every date. Where drift variances are large, check invertibility across the sample and report any periods where it fails, since non-invertibility makes the innovations unrecoverable and can distort the interpretation of the smoothed paths.
Frequently asked questions
How does a TVP-MA model differ from a regime-switching MA model?
A regime-switching MA model assumes the coefficients move between a fixed number of discrete states. The TVP-MA model lets the coefficients drift continuously as random walks. The TVP-MA suits gradual change, while regime-switching suits abrupt, distinct regimes.
Can I include both AR and MA components with time-varying parameters?
Yes. The natural extension is the TVP-ARMA model, in which both autoregressive and moving-average coefficients are latent states in the Kalman filter framework. Each additional component adds states and increases the computational burden.
How do I choose the MA order q in a TVP-MA model?
Start with the same tools used for a constant-parameter MA, such as the autocorrelation function of the series, and compare candidate orders by information criteria or out-of-sample forecast accuracy. Because the time-varying coefficients add complexity, a parsimonious order is usually preferable.
What software can estimate a TVP-MA model?
General state-space packages can be used, for example KFAS and dlm in R, statsmodels or pykalman in Python, and state-space routines in MATLAB. Check that the package supports the specific state structure you need, since these examples are not verified here for TVP-MA specifications.
Is stationarity of the observed series required?
The model is normally specified for stationary innovations. If the observed series is integrated, first differencing is a common step before fitting, so that the error process is better behaved for the estimation.
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