- Introduced by
- Bayesian framework applied to Box-Jenkins MA models; West & Harrison (1997) canonical treatment
- Year
- 1970s–1997
- Type
- Bayesian time series model
- Family
- Econometrics / time series
What does it do?
The Bayesian MA model estimates a moving average time series model by placing prior distributions on the MA coefficients, the intercept and the error variance, and updating them with the observed series via Bayes' theorem.
The result is a joint posterior distribution over the parameters, from which parameter uncertainty and forecast uncertainty are obtained together. Forecasts are therefore predictive distributions rather than single values.
The intuition behind the method
A classical MA(q) model says that the current observation equals the series mean plus a weighted sum of the current and q past shocks, so any dependence in the series disappears after q lags. The Bayesian version does not fix the coefficients at single estimates; it keeps a probability distribution over all coefficient values that are consistent with the data and the prior. Prior information, such as a view that shocks have only limited carry-over, is combined with the likelihood of the observed series to form the posterior. Forecast uncertainty then reflects both the uncertainty about the coefficients and the variability of future shocks. The approach is most useful when the sample is limited or when a prior view on shock persistence is available.
History
The moving average model is associated with the Box-Jenkins ARIMA framework of the early 1970s. Bayesian estimation of MA and ARMA models has since been developed in the time series literature, and MCMC methods have made full posterior computation practical in applied work. West and Harrison (1997) is a general monograph on Bayesian forecasting and dynamic models, a related framework in which time series models can be cast in state-space form.
When to use it
Choose the Bayesian MA model when the series is univariate and continuous, its sample autocorrelation cuts off after a few lags rather than decaying gradually, and you want posterior uncertainty for the coefficients and forecasts. It is also suited to cases where credible prior information about shock persistence exists, or where candidate MA orders must be compared formally. Do not use it when the series is non-stationary or its autocorrelation decays slowly; differencing, or an ARMA/ARIMA-type model with an autoregressive part, is then needed. Avoid it when computation time is tightly limited, because MCMC is considerably slower than maximum likelihood estimation of the same model.
Limitations and considerations
- The MA likelihood depends on unobserved shocks that must be reconstructed recursively or through a state-space form; the choice of pre-sample initialisation affects the likelihood, particularly for short series.
- For an MA(1) model the Gaussian likelihood is unchanged when the coefficient is replaced by its reciprocal, so without an invertibility restriction the posterior can have more than one mode and the sampler can switch between them.
- MCMC for higher-order MA models with several coefficients can mix slowly, because the coefficients and the reconstructed shocks are strongly dependent in the posterior.
- Inference on the coefficients and the variance depends on the prior specification, most visibly when the sample is short.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Invertibility can be imposed by restricting the prior support to the region where all roots of 1 + θ1 z + … + θq z^q lie outside the unit circle, so posterior mass is confined to parameter values that give a unique MA representation. A normal prior alone does not enforce this; the truncation must be added explicitly.
- The forecast structure of an MA model carries over to the predictive distribution: for known parameters the point forecast returns to the mean after q steps, and the predictive variance stops growing at that horizon. The Bayesian predictive distribution keeps this pattern while adding coefficient uncertainty.
- Bayes factors, DIC or WAIC allow formal comparison of candidate orders q, replacing trial-and-error fitting with a stated selection rule.
- Prior estimates of shock persistence from earlier work can be used directly when the sample alone does not pin the coefficients down well.
Applications
- Forecasting short univariate series, such as inflation or output growth, where shock persistence is limited and prior information is available.
- Modelling return series whose autocorrelation cuts off after a few lags, with posterior uncertainty reported for forecasts.
- Comparing candidate MA orders using Bayes factors or predictive criteria.
- Incorporating prior estimates of shock persistence taken from earlier studies of similar series.
- Analysing short series in which classical maximum likelihood estimates of the MA coefficients are unstable.
How it works
How it works
The MA(q) model expresses each observation as the series mean plus a linear combination of the current and q lagged error terms. The order q must be chosen before estimation, typically by comparing candidate orders with information criteria or posterior model comparison.
Formula
y_t = \mu + \varepsilon_t + \theta_1\varepsilon_{t-1} + \cdots + \theta_q\varepsilon_{t-q}Prior distributions are placed on the MA coefficients, the intercept and the error variance. Common choices are normal priors on the coefficients and an inverse-gamma prior on the variance. Invertibility is not implied by a normal prior; it is imposed by truncating the prior support to the region where all roots of 1 + θ1 z + … + θq z^q = 0 lie outside the unit circle. Informative priors encode domain knowledge; diffuse priors let the data dominate.
Formula
p(\mu, \boldsymbol{\theta}, \sigma^2)Given the parameters, the likelihood evaluates how probable the observed series is. Because the MA errors are unobserved, they are reconstructed recursively as ε_t = y_t − μ − θ1 ε_{t−1} − … − θq ε_{t−q}, with pre-sample errors initialised (for example at zero). With Gaussian errors, the conditional log-likelihood is −(T/2) log(2πσ²) − (1/(2σ²)) Σ ε_t². Alternatively, the exact likelihood is obtained through the Kalman filter representation of the state-space form.
Formula
\varepsilon_t = y_t - \mu - \sum_{i=1}^{q}\theta_i\varepsilon_{t-i},\quad \log p(\mathbf{y}\mid\mu,\boldsymbol{\theta},\sigma^2) = -\tfrac{T}{2}\log(2\pi\sigma^2) - \tfrac{1}{2\sigma^2}\sum_{t=1}^{T}\varepsilon_t^2Bayes' theorem combines the prior and the likelihood to give the joint posterior over all parameters. In closed form this is available only for special conjugate priors; in general, Markov chain Monte Carlo (MCMC) samplers, such as Gibbs or Metropolis-Hastings, draw samples from the posterior numerically.
Formula
p(\mu, \boldsymbol{\theta}, \sigma^2 \mid \mathbf{y}) \propto p(\mathbf{y} \mid \mu, \boldsymbol{\theta}, \sigma^2)\, p(\mu, \boldsymbol{\theta}, \sigma^2)Point summaries (posterior mean or median), credible intervals, and marginal likelihoods for model comparison are computed from the posterior samples. Forecasts integrate over the posterior, producing predictive distributions rather than single-point predictions.
Formula
\hat{\theta}_i = \frac{1}{M}\sum_{m=1}^{M}\theta_i^{(m)},\quad p(y_{T+h}\mid\mathbf{y}) = \int p(y_{T+h}\mid\mu,\boldsymbol{\theta},\sigma^2,\mathbf{y})\,p(\mu,\boldsymbol{\theta},\sigma^2\mid\mathbf{y})\,d(\mu,\boldsymbol{\theta},\sigma^2)Common pitfalls
- Not enforcing the invertibility restriction on the MA coefficients. Samples that leave the invertible region represent the same autocovariance structure as reflected parameter values, which produces duplicated modes and misleading posterior summaries.
- Fitting a pure MA model to a series with a unit root. A finite-order MA process is stationary by construction, so it cannot reproduce the persistence of a unit-root series; the series must be differenced or modelled with an ARIMA-type specification that includes an autoregressive part.
- Choosing the MA order by trial and error instead of a formal criterion. Use information criteria such as DIC or WAIC, Bayes factors, or posterior predictive checks to compare orders.
- Reporting posterior summaries without checking the MCMC chains. Run several chains from dispersed starting values, confirm that they agree and that the effective sample size is adequate for each parameter, and check for mode switching between invertible and reflected solutions.
Frequently asked questions
How is Bayesian MA different from classical (frequentist) MA estimation?
Classical estimation maximises the likelihood to obtain point estimates and asymptotic standard errors. Bayesian estimation treats parameters as random variables and uses Bayes' theorem to produce a full posterior distribution, enabling probabilistic statements about parameters and forecasts and allowing incorporation of prior knowledge.
How do I choose the MA order q in the Bayesian framework?
Compute the Deviance Information Criterion (DIC) or Widely Applicable Information Criterion (WAIC) for candidate orders and select the one with the lowest value, or use Bayes factors to formally compare models. Posterior predictive checks also help detect mis-specified orders.
What prior should I use for the MA coefficients?
Normal priors centred at zero with moderate variance, truncated to the invertible region, are a common default; they pull the coefficients toward a white-noise model. If prior knowledge suggests stronger shock persistence, shift the prior mean accordingly. Check sensitivity to the prior by repeating the analysis with a small range of alternative priors.
Can I use the Bayesian MA model for non-stationary series?
The standard MA model assumes stationarity. For a non-stationary series, difference the data until it is stationary, as in ARIMA, and then apply the Bayesian MA model to the differenced series, which embeds it in a Bayesian ARIMA framework.
How long should I run the MCMC chain?
There is no fixed rule; adequate length depends on the posterior and the sampler. Run several chains from dispersed starting values, discard an initial burn-in period, and check that the chains agree (for example, a potential scale reduction factor R-hat close to 1), that trace plots show no drift or mode switching, and that the effective sample size is adequate for each parameter and for the posterior summaries you intend to report.
Related methods
Sources
West, M., & Harrison, J. (1997). Bayesian Forecasting and Dynamic Models (2nd ed.). Springer.
ISBN: 978-0387947259Geweke, J., & Meese, R. (1981). Estimating regression models of finite but unknown order. International Economic Review, 22(1), 55–70.
Open publication reference