Skip to content

Bayesian VARs

In the app: Help → Help contents, Bayesian VARs.

A VAR has many coefficients for the data available: with 4 variables and 4 lags, each equation estimates 17. Least squares then fits noise, and forecasts suffer. A Bayesian VAR shrinks the coefficients towards a simple benchmark, by an amount the data can override.

The Minnesota prior (Litterman) centres each equation on a random walk (each variable's own first lag 1, everything else 0; use 0 for growth rates), shrinks longer lags more, and scales each coefficient by the relative volatility of the two variables. (Litterman's original also shrinks other variables' lags more than a variable's own; the conjugate form cannot, the independent form can, see below.) Its tightness sets the strength: smaller values shrink more. The sum-of-coefficients prior and the single-unit-root (initial observation) prior, added as dummy observations, pull towards unit roots and cointegration, which helps forecasts of trending data.

In its conjugate normal-inverse-Wishart form the posterior is known exactly, so draws are cheap and exact, and the marginal likelihood (how well the prior and model predicted the data) can be computed. Choosing the hyperparameters to maximise it lets the data decide how much to shrink (Giannone, Lenza and Primiceri). Impulse responses and forecasts from the posterior draws include parameter uncertainty; their bands are credible intervals. The conjugate form ties cross-variable shrinkage to own-variable shrinkage. The independent normal-Wishart form (NormalWishart) frees it: other variables' lags get their own tightness (cross_tightness), and each equation's prior no longer depends on the others' error variances. Its posterior is sampled by Gibbs, alternating the coefficients given the error covariance and the covariance given the coefficients; it has no closed-form marginal likelihood, but Chib's method estimates it from the draws, and its hyperparameters can be chosen by that estimate (more slowly).

The hierarchical prior of Giannone, Lenza and Primiceri (GLP) treats the hyperparameters as unknowns with priors of their own: rather than one best tightness, it weighs each by how well it predicted the data and by how plausible it is beforehand. Its hyperparameters can be fixed at their most probable values or integrated over (MCMC), so that the bands also reflect doubt about how much to shrink. With decay_hyperprior=True how fast longer lags shrink (the lag decay) is estimated with them, under a gamma hyperprior centred on GLP's value of 1.

See also

References

  • Litterman, R. B. (1986). Forecasting with Bayesian vector autoregressions: five years of experience. Journal of Business and Economic Statistics 4(1), 25-38. doi:10.2307/1391384
  • Doan, T., Litterman, R. and Sims, C. (1984). Forecasting and conditional projection using realistic prior distributions. Econometric Reviews 3(1), 1-100. doi:10.1080/07474938408800053
  • Sims, C. A. and Zha, T. (1998). Bayesian methods for dynamic multivariate models. International Economic Review 39(4), 949-968. doi:10.2307/2527347
  • Bańbura, M., Giannone, D. and Reichlin, L. (2010). Large Bayesian vector auto regressions. Journal of Applied Econometrics 25(1), 71-92. doi:10.1002/jae.1137
  • Giannone, D., Lenza, M. and Primiceri, G. E. (2015). Prior selection for vector autoregressions. Review of Economics and Statistics 97(2), 436-451. doi:10.1162/rest_a_00483
  • Chib, S. (1995). Marginal likelihood from the Gibbs output. Journal of the American Statistical Association 90(432), 1313-1321. doi:10.1080/01621459.1995.10476635
  • Kadiyala, K. R. and Karlsson, S. (1997). Numerical methods for estimation and inference in Bayesian VAR models. Journal of Applied Econometrics 12(2), 99-132. doi:10.1002/(sici)1099-1255(199703)12:2<99::aid-jae429>3.0.co;2-a