- Introduced by
- Pole, West & Harrison (Bayesian treatment); Box & Jenkins (ARIMA foundation)
- Year
- 1970s (ARIMA); Bayesian extension prominent from 1990s
- Type
- Bayesian time series model
- Family
- Econometrics / time series
What does it do?
The Bayesian ARIMA model combines the classical Box-Jenkins ARIMA framework with Bayesian inference.
Instead of obtaining single point estimates for autoregressive and moving average parameters, it places prior distributions over them and uses observed data to update beliefs into a full posterior distribution, enabling coherent uncertainty quantification and probabilistic forecasting.
The intuition behind the method
Classical ARIMA finds the single best-fitting parameter values and treats them as if known with certainty. Bayesian ARIMA instead asks: given everything we believed before seeing the data (the prior) and what the data tell us (the likelihood), what is the full range of plausible parameter values and how likely is each? The result is a posterior distribution over parameters. Forecasts inherit this uncertainty naturally, producing prediction intervals that honestly reflect both model and parameter uncertainty rather than treating estimated parameters as exact truth.
History
Box and Jenkins formalised the ARIMA framework in 1970 as a systematic approach to univariate time series modelling and forecasting; the 5th edition of their book (Box, Jenkins, Reinsel and Ljung, 2015) is the standard reference. Bayesian treatments of dynamic time series models and forecasting are developed in the monograph by Pole, West and Harrison (1994), which is mainly concerned with dynamic linear models rather than ARIMA specifically. Bayesian estimation of ARIMA-type models became practical in applied work as simulation-based methods such as MCMC became widely available.
When to use it
Use Bayesian ARIMA when you have a univariate stationary or trend-differenced time series and wish to incorporate prior knowledge about the dynamics, obtain full predictive distributions rather than point forecasts, or honestly propagate parameter uncertainty into forecast intervals. It is especially valuable with short series where classical maximum-likelihood estimates are unreliable, or when you want principled model comparison via Bayes factors. Do not use it as a simple drop-in for classical ARIMA if computational resources are limited and the series is long with no informative priors — classical ARIMA or frequentist alternatives are faster and nearly as accurate in large samples. Also avoid it when the assumption of Gaussian innovations is severely violated without a suitable heavy-tailed likelihood extension.
Limitations and considerations
- MCMC estimation is much slower than the closed-form OLS or maximum-likelihood fitting used for classical ARIMA, which becomes a practical constraint for long series or repeated refitting.
- Results depend on the prior specification, particularly in short series where the likelihood carries limited information about phi and theta; a poorly chosen prior can dominate the posterior.
- Order selection for (p, d, q) still requires judgement; a joint Bayesian search over orders adds model complexity and computation.
- Convergence of the MCMC chains must be diagnosed before results are used, which is an extra validation step that classical estimation does not require.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Produces full posterior and predictive distributions, so forecast uncertainty comes from parameter uncertainty as well as innovation noise rather than from plug-in parameter estimates.
- Allows informative prior knowledge about coefficient magnitudes or stationarity constraints to enter the model explicitly, which can matter when the likelihood alone is weakly informative.
- Supports model comparison through Bayes factors or DIC/WAIC, without relying only on the penalised-likelihood criteria used in classical ARIMA order selection.
- Posterior predictive checks give a direct way to examine whether simulated series from the fitted model resemble the observed series.
- The same likelihood-and-prior structure can be extended to hierarchical or time-varying formulations within one probabilistic framework.
Applications
- Macroeconomic forecasting of GDP growth, inflation, or unemployment with explicit uncertainty bands.
- Financial time series modelling where small sample sizes preclude reliable MLE estimates.
- Demand and inventory forecasting where prior business knowledge about seasonality or trend can be encoded.
- Energy consumption and price forecasting with probabilistic prediction intervals for risk management.
- Epidemiological time series modelling where uncertainty propagation is critical for public health decisions.
- Environmental and climate data analysis when short historical records require informative priors.
How it works
How it works
The series y_t is differenced d times to achieve stationarity, yielding w_t = (1-B)^d y_t, where B is the backshift operator. The order d is chosen so that w_t has no stochastic trend.
Formula
w_t = \Delta^d y_t = (1-B)^d y_t
The differenced series w_t follows an ARMA(p,q) process: the autoregressive polynomial phi(B) captures dependence on past values and the moving-average polynomial theta(B) captures the effect of past shocks, with Gaussian innovations.
Formula
\phi(B)\,w_t = \theta(B)\,\varepsilon_t,\quad \varepsilon_t \sim N(0,\sigma^2)
Prior distributions are placed on the AR coefficients phi, the MA coefficients theta, and the error variance sigma^2. Common choices include normal priors on phi and theta, constrained so that the implied process satisfies stationarity and invertibility, and an inverse-Gamma or Jeffreys prior on sigma^2. The prior is a modelling decision and should be stated and checked for sensitivity.
Formula
p(\phi,\theta,\sigma^2) = p(\phi)\,p(\theta)\,p(\sigma^2)\,\mathbf{1}\{\phi\in\mathcal{S},\ \theta\in\mathcal{I}\}The posterior p(phi, theta, sigma^2 | y) is proportional to the likelihood times the prior. Because this posterior generally has no closed form for ARIMA models, Markov Chain Monte Carlo methods (Metropolis-Hastings or Gibbs sampling) are used to draw samples from it.
Formula
p(\phi,\theta,\sigma^2 \mid y) \propto p(y \mid \phi,\theta,\sigma^2)\,p(\phi,\theta,\sigma^2)
The orders (p, d, q) can be compared using Bayesian model comparison tools, such as Bayes factors based on marginal likelihoods, or the Deviance Information Criterion (DIC) and the Widely Applicable Information Criterion (WAIC). DIC and WAIC are predictive criteria computed from posterior samples; they are not members of the BIC family.
Formula
p(y \mid M_{p,d,q}) = \int p(y \mid \phi,\theta,\sigma^2, M_{p,d,q})\,p(\phi,\theta,\sigma^2 \mid M_{p,d,q})\,d(\phi,\theta,\sigma^2),\quad BF_{12} = \frac{p(y \mid M_1)}{p(y \mid M_2)}h-step-ahead forecasts are obtained by integrating out parameter uncertainty over the posterior, producing a full predictive distribution p(y_{T+h} | y_{1:T}) rather than a single-point forecast. The resulting prediction intervals reflect parameter uncertainty as well as innovation noise.
Formula
p(y_{T+h} \mid y_{1:T}) = \int p(y_{T+h} \mid \phi,\theta,\sigma^2)\,p(\phi,\theta,\sigma^2 \mid y_{1:T})\,d(\phi,\theta,\sigma^2)Common pitfalls
- Treating diffuse or flat priors as neutral: on phi, a flat prior can place substantial prior mass on explosive, non-stationary regions, which can pull the posterior toward non-stationarity in short series.
- Skipping MCMC convergence diagnostics (for example Gelman-Rubin R-hat or trace plots) and reporting results from chains that have not mixed.
- Confusing the posterior predictive interval with a classical confidence interval; they answer different questions and should not be read the same way.
- Modelling the undifferenced series: unit roots violate the stationarity assumption behind the ARMA structure, so differencing must be settled before the Bayesian ARMA step.
- Using large p and q without regularising priors, which can give a good in-sample fit but weak out-of-sample forecasts.
Frequently asked questions
How do I choose priors for the AR and MA coefficients?
A common approach is to use normal priors centred at zero with moderate variance, constrained to the stationarity and invertibility regions of the parameter space. If prior studies or domain knowledge indicate plausible coefficient magnitudes, these can be encoded as informative priors. Sensitivity analysis, meaning re-running inference with alternative priors, is recommended to check how much the conclusions depend on the prior.
Is Bayesian ARIMA better than classical ARIMA?
Not universally. In large samples, Bayesian and classical ARIMA often produce similar point forecasts, and the computational cost of MCMC is frequently not justified by the gain. The Bayesian approach adds most value when samples are small, informative prior knowledge is available, or full predictive distributions are needed for decisions under uncertainty.
How is the model order (p, d, q) chosen in the Bayesian framework?
Orders can be compared using Bayes factors, DIC, or WAIC. Some implementations place a prior over the model order and perform Bayesian model averaging across candidate ARIMA specifications, which carries model uncertainty into the forecasts. Whichever route is used, it is good practice to check the chosen order by comparing posterior predictive performance (for example out-of-sample or cross-validated predictive accuracy) across the top candidate orders.
Can Bayesian ARIMA handle seasonal data?
Yes, by extending to a Bayesian SARIMA model, which adds seasonal AR and MA polynomials and a seasonal differencing operator. This is the Bayesian counterpart of the classical SARIMA(p,d,q)(P,D,Q)_s specification.
What software supports Bayesian ARIMA estimation?
Stan (via RStan or CmdStan), JAGS, PyMC, and BUGS can all be used to write custom Bayesian ARIMA models. The R package 'bsts' (Bayesian structural time series) provides related Bayesian time series functionality, though it is a structural rather than ARIMA model class.
Related methods
Sources
Pole, A., West, M., & Harrison, J. (1994). Applied Bayesian Forecasting and Time Series Analysis. Chapman & Hall.
ISBN: 978-0412416903Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.
ISBN: 978-1118675021