- Introduced by
- Arnold Zellner; foundational Bayesian time-series work by West & Harrison
- Year
- 1971
- Type
- Bayesian time-series model
- Family
- Econometrics / time series
What does it do?
The Bayesian AR model estimates an autoregressive time-series process by combining a likelihood derived from the AR structure with prior distributions over the lag coefficients and error variance.
Rather than producing single point estimates, it yields full posterior distributions, enabling principled uncertainty quantification and probabilistic forecasting.
The intuition behind the method
A classical AR model says the current value of a series depends linearly on its own past values plus noise. The Bayesian version asks: before seeing the data, what do we believe about how strong those lag dependencies are? A prior distribution encodes this belief. Once the data arrive, Bayes' theorem updates the prior into a posterior — a distribution over every plausible set of coefficients. Forecasts become predictive distributions rather than single numbers, so you get an honest picture of how uncertain the future is.
History
Zellner (1971) set out Bayesian inference for econometric regression models, including conjugate Normal-Inverse-Gamma priors that give closed-form posteriors for regression coefficients. West and Harrison (1997) extended Bayesian methods to dynamic linear models, which cover time-varying autoregressive systems. The Bayesian AR is not tied to a single introducing paper; its building blocks come from these two strands of work. Minnesota-type shrinkage priors are commonly used in macroeconomic AR and VAR forecasting.
When to use it
Use the Bayesian AR model when you have a univariate continuous time series and need forecasts with explicit uncertainty, particularly when the sample is short and classical estimates of the lag coefficients are unstable. It is also suitable when you hold genuine prior information, for example that a seasonally adjusted macroeconomic series is likely to be close to stationary. The standard model assumes Gaussian, independent errors with constant variance, a lag order p fixed in advance (or selected by model comparison), and stationarity. The prior can encourage stationarity but does not guarantee it, so check that the roots of the estimated AR polynomial lie outside the unit circle. The prior family and its hyperparameters are explicit modelling choices and should be reported with the results. If you want to compare candidate lag structures formally, marginal likelihood and Bayes factors are available. Avoid the model when the series is multivariate and cross-variable dynamics matter, since a Bayesian VAR is designed for that case. It is also a poor fit when the lag structure is strongly nonlinear, or when the analysis needs only a quick point forecast and a classical AR is sufficient.
Limitations and considerations
- Posterior inference via MCMC is more computationally demanding than closed-form OLS, particularly for non-conjugate priors, long series or high lag orders.
- With limited data, results depend heavily on the prior specification, and a poorly chosen prior can dominate the posterior.
- Assessing MCMC convergence requires additional diagnostics such as trace plots, R-hat and effective sample size.
- The model does not capture cross-variable dynamics; a multivariate extension such as a Bayesian VAR is needed for systems of series.
- Selecting the lag order p is more involved than applying classical AIC or BIC, because it requires posterior model comparison or model averaging.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives full posterior distributions over the lag coefficients and error variance, so credible intervals do not rely on large-sample asymptotic approximations. They are valid conditional on the AR model and the prior, and remain sensitive to the Gaussian error assumption, the prior choice and MCMC accuracy where sampling is used.
- In short samples, an informative prior stabilises estimates where maximum likelihood can produce unstable lag coefficients.
- Parameter uncertainty is carried into forecasts through the predictive distribution rather than being conditioned away.
- Allows formal model comparison through marginal likelihood and Bayes factors.
- Shrinkage priors can pull coefficients toward zero, which limits explosive AR estimates when the data are weakly informative.
Applications
- Macroeconomic forecasting of series such as GDP growth, inflation and unemployment, with explicit uncertainty bands.
- Short financial time-series prediction, where limited history makes classical AR estimates unstable.
- Energy demand forecasting for daily or hourly load series, where prior knowledge about regular patterns can inform the lag structure.
- Central bank scenario analysis that requires full predictive distributions rather than point forecasts.
- Benchmark in US GDP forecasting: a Bayesian AR(2) serves as the comparison model for forecast combinations, with forecasts shown alongside 50% and 68% probability intervals. The intervals make the considerable forecast uncertainty visible.
How it works
How it works
The AR(p) likelihood specifies that each observation is a linear combination of its p previous values plus a Gaussian error. The lag order p is chosen via information criteria (AIC, BIC) or by placing a prior over p itself.
Formula
y_t = \phi_1 y_{t-1} + \cdots + \phi_p y_{t-p} + \varepsilon_t, \quad \varepsilon_t \sim N(0,\sigma^2)Prior distributions are placed on the lag coefficients and the error variance. Common choices include a Normal or Minnesota-style prior for the coefficients and an Inverse-Gamma prior for the variance. Shrinkage priors pull coefficients toward zero, which can limit explosive estimates in small samples, but they do not by themselves guarantee stationarity.
Formula
p(\boldsymbol{\phi}, \sigma^2) \propto p(\boldsymbol{\phi})\, p(\sigma^2)The posterior distribution of all parameters is proportional to the product of the likelihood and the priors. When the prior has a conjugate Normal-Inverse-Gamma form, in which the coefficient prior is conditional on the error variance, the posterior is available analytically: the coefficient posterior is Normal and the variance posterior is Inverse-Gamma, with parameters updated from the prior and the sample. Non-conjugate priors generally require Markov chain Monte Carlo (MCMC).
Formula
p(\boldsymbol{\phi}, \sigma^2 \mid \mathbf{y}) \propto p(\mathbf{y} \mid \boldsymbol{\phi}, \sigma^2)\, p(\boldsymbol{\phi})\, p(\sigma^2)When the posterior has no closed form, algorithms such as Gibbs sampling or Hamiltonian Monte Carlo draw samples from the joint posterior of the lag coefficients and variance. Convergence is assessed with trace plots and R-hat statistics.
The predictive distribution for future values is obtained by averaging the AR forecast over the posterior, which integrates out parameter uncertainty. For horizons h greater than one, it is evaluated by simulation: for each posterior draw, the AR recursion is iterated forward h steps with simulated Gaussian shocks added at each step, and the resulting draws are pooled. The resulting credible intervals are wider than intervals that treat the estimated coefficients as known.
Formula
p(y_{T+h} \mid \mathbf{y}) = \int p(y_{T+h} \mid \boldsymbol{\phi}, \sigma^2)\, p(\boldsymbol{\phi}, \sigma^2 \mid \mathbf{y})\, d\boldsymbol{\phi}\, d\sigma^2Common pitfalls
- Using flat (non-informative) priors with short samples. The posterior then mirrors the unstable maximum likelihood estimates and can place substantial mass on non-stationary coefficient draws.
- Ignoring MCMC convergence checks. Results drawn from chains that have not converged do not support valid inference.
- Setting the Minnesota prior's tightness hyperparameters by hand without a sensitivity analysis, so results look robust but are in fact driven by the prior.
- Reporting posterior means as point estimates without the full credible intervals, which discards the main advantage of the Bayesian approach.
- Treating in-sample fit (log-likelihood) as evidence of forecasting accuracy. Forecast performance should be checked on a hold-out period.
Frequently asked questions
How is the Bayesian AR model different from classical AR?
Classical AR estimates coefficients by maximising the likelihood (OLS or MLE), yielding point estimates with asymptotic standard errors. The Bayesian AR treats parameters as random variables, combines the likelihood with a prior, and produces a full posterior distribution. This yields credible intervals that do not rely on large-sample approximations and forecasts that account for parameter uncertainty.
What is the Minnesota prior and when should I use it?
The Minnesota prior shrinks lag coefficients toward zero, with the shrinkage increasing for longer lags, so that more distant lags are assumed to matter less. In the common variant the own first lag is centred on a random-walk value instead of zero. It is a shrinkage prior often used in macroeconomic AR and VAR forecasting, especially when the number of parameters is large relative to the sample.
Do I need MCMC for a Bayesian AR model?
Not always. With a conjugate Normal-Inverse-Gamma prior the posterior is available analytically and sampling is unnecessary. MCMC (Gibbs or HMC) is needed when priors are non-conjugate, for example priors that enforce stationarity exactly, or when the model is hierarchical.
How do I choose the lag order p in a Bayesian AR model?
Compare candidate lag orders by marginal likelihood (Bayes factor), by predictive scores such as WAIC or DIC, or by Bayesian model averaging over p. Marginal likelihood comparison is sensitive to prior specification, and diffuse priors can favour simpler models, so run a prior sensitivity check alongside it. AIC and BIC are classical criteria rather than posterior quantities; BIC is a large-sample approximation to the log marginal likelihood.
Can the Bayesian AR model handle non-stationary series?
A standard Bayesian AR assumes stationarity. For non-stationary series, first check for a unit root and difference the data if needed, or use a model with a unit-root prior that allows near-integrated behaviour explicitly. The prior near the unit circle matters considerably in small samples.
Related methods
Sources
Zellner, A. (1971). An Introduction to Bayesian Inference in Econometrics. Wiley.
ISBN: 978-0471169376West, M., & Harrison, J. (1997). Bayesian Forecasting and Dynamic Models (2nd ed.). Springer.
ISBN: 978-0387947259Bayesian Econometrics (Advances in Econometrics), p. 519
Introduction to Spatial Econometrics, p. 261