IDEAS home Printed from https://ideas.repec.org/p/ecb/ecbwps/20242991.html
   My bibliography  Save this paper

Variational inference for Bayesian panel VAR models

Author

Listed:
  • Ter Steege, Lucas

Abstract

We study the application of approximate mean field variational inference algorithms to Bayesian panel VAR models in which an exchangeable prior is placed on the dynamic parameters and the residuals follow either a Gaussian or a Student-t distribution. This reduces the estimation time of possibly several hours using conventional MCMC methods to less than a minute using variational inference algorithms. Next to considerable speed improvements, our results show that the approximations accurately capture the dynamic effects of macroeconomic shocks as well as overall parameter uncertainty. The application with Student-t residuals shows that it is computationally easy to include the COVID-19 observations in Bayesian panel VARs, thus offering a fast way to estimate such models. JEL Classification: C18, C32, C33

Suggested Citation

  • Ter Steege, Lucas, 2024. "Variational inference for Bayesian panel VAR models," Working Paper Series 2991, European Central Bank.
  • Handle: RePEc:ecb:ecbwps:20242991
    as

    Download full text from publisher

    File URL: https://www.ecb.europa.eu//pub/pdf/scpwps/ecb.wp2991~f5f2cf91dc.en.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Chan, Joshua C.C. & Yu, Xuewen, 2022. "Fast and Accurate Variational Inference for Large Bayesian VARs with Stochastic Volatility," Journal of Economic Dynamics and Control, Elsevier, vol. 143(C).
    2. Gefang, Deborah & Koop, Gary & Poon, Aubrey, 2023. "Forecasting using variational Bayesian inference in large vector autoregressions with hierarchical shrinkage," International Journal of Forecasting, Elsevier, vol. 39(1), pages 346-363.
    3. Geweke, J, 1993. "Bayesian Treatment of the Independent Student- t Linear Model," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 8(S), pages 19-40, Suppl. De.
    4. Joshua C. C. Chan, 2020. "Large Bayesian VARs: A Flexible Kronecker Error Covariance Structure," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 38(1), pages 68-79, January.
    5. David M. Blei & Alp Kucukelbir & Jon D. McAuliffe, 2017. "Variational Inference: A Review for Statisticians," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 112(518), pages 859-877, April.
    6. Bobeica, Elena & Hartwig, Benny, 2023. "The COVID-19 shock and challenges for inflation modelling," International Journal of Forecasting, Elsevier, vol. 39(1), pages 519-539.
    7. Reza Hajargasht, 2019. "Approximation Properties of Variational Bayes for Vector Autoregressions," Papers 1903.00617, arXiv.org.
    8. Hartwig, Benny, 2022. "Bayesian VARs and prior calibration in times of COVID-19," Discussion Papers 52/2022, Deutsche Bundesbank.
    9. Faes, C. & Ormerod, J. T. & Wand, M. P., 2011. "Variational Bayesian Inference for Parametric and Nonparametric Regression With Missing Data," Journal of the American Statistical Association, American Statistical Association, vol. 106(495), pages 959-971.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Joshua C. C. Chan, 2024. "BVARs and stochastic volatility," Chapters, in: Michael P. Clements & Ana Beatriz Galvão (ed.), Handbook of Research Methods and Applications in Macroeconomic Forecasting, chapter 3, pages 43-67, Edward Elgar Publishing.
    2. Jan Prüser & Florian Huber, 2024. "Nonlinearities in macroeconomic tail risk through the lens of big data quantile regressions," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(2), pages 269-291, March.
    3. Gefang, Deborah & Koop, Gary & Poon, Aubrey, 2023. "Forecasting using variational Bayesian inference in large vector autoregressions with hierarchical shrinkage," International Journal of Forecasting, Elsevier, vol. 39(1), pages 346-363.
    4. Hartwig, Benny, 2022. "Bayesian VARs and prior calibration in times of COVID-19," Discussion Papers 52/2022, Deutsche Bundesbank.
    5. Kelly Trinh & Bo Zhang & Chenghan Hou, 2025. "Macroeconomic real‐time forecasts of univariate models with flexible error structures," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(1), pages 59-78, January.
    6. Joshua C. C. Chan & Liana Jacobi & Dan Zhu, 2022. "An automated prior robustness analysis in Bayesian model comparison," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(3), pages 583-602, April.
    7. Dimitrios P. Louzis, 2019. "Steady‐state modeling and macroeconomic forecasting quality," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 34(2), pages 285-314, March.
    8. David T. Frazier & Ruben Loaiza-Maya & Gael M. Martin, 2021. "Variational Bayes in State Space Models: Inferential and Predictive Accuracy," Papers 2106.12262, arXiv.org, revised Feb 2022.
    9. Deborah Gefang & Gary Koop & Aubrey Poon, 2019. "Variational Bayesian Inference in Large Vector Autoregressions with Hierarchical Shrinkage," Economic Statistics Centre of Excellence (ESCoE) Discussion Papers ESCoE DP-2019-07, Economic Statistics Centre of Excellence (ESCoE).
    10. Ching-Wai Chiu & Haroon Mumtaz & Gabor Pinter, 2016. "VAR Models with Non-Gaussian Shocks," Discussion Papers 1609, Centre for Macroeconomics (CFM).
    11. Badi H. Baltagi & Georges Bresson & Jean-Michel Etienne, 2020. "Growth Empirics: a Bayesian Semiparametric Model With Random Coefficients for a Panel of OECD Countries," Advances in Econometrics, in: Essays in Honor of Cheng Hsiao, volume 41, pages 217-253, Emerald Group Publishing Limited.
    12. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    13. Mauro Bernardi & Daniele Bianchi & Nicolas Bianco, 2022. "Variational inference for large Bayesian vector autoregressions," Papers 2202.12644, arXiv.org, revised Jun 2023.
    14. Youngseon Lee & Seongil Jo & Jaeyong Lee, 2022. "A variational inference for the Lévy adaptive regression with multiple kernels," Computational Statistics, Springer, vol. 37(5), pages 2493-2515, November.
    15. Chan, Joshua C.C., 2021. "Minnesota-type adaptive hierarchical priors for large Bayesian VARs," International Journal of Forecasting, Elsevier, vol. 37(3), pages 1212-1226.
    16. Gael M. Martin & David T. Frazier & Ruben Loaiza-Maya & Florian Huber & Gary Koop & John Maheu & Didier Nibbering & Anastasios Panagiotelis, 2023. "Bayesian Forecasting in the 21st Century: A Modern Review," Monash Econometrics and Business Statistics Working Papers 1/23, Monash University, Department of Econometrics and Business Statistics.
    17. Bobeica, Elena & Hartwig, Benny, 2023. "The COVID-19 shock and challenges for inflation modelling," International Journal of Forecasting, Elsevier, vol. 39(1), pages 519-539.
    18. Joshua C. C. Chan, 2019. "Large Bayesian vector autoregressions," CAMA Working Papers 2019-19, Centre for Applied Macroeconomic Analysis, Crawford School of Public Policy, The Australian National University.
    19. Gael M. Martin & David T. Frazier & Christian P. Robert, 2021. "Approximating Bayes in the 21st Century," Monash Econometrics and Business Statistics Working Papers 24/21, Monash University, Department of Econometrics and Business Statistics.
    20. Allayioti, Anastasia & Gόrnicka, Lucyna & Holton, Sarah & Martínez Hernández, Catalina, 2024. "Monetary policy pass-through to consumer prices: evidence from granular price data," Working Paper Series 3003, European Central Bank.

    More about this item

    Keywords

    panel-VAR; student-t distribution; variational Bayes;
    All these keywords.

    JEL classification:

    • C18 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Methodolical Issues: General
    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • C33 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Models with Panel Data; Spatio-temporal Models

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ecb:ecbwps:20242991. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Official Publications (email available below). General contact details of provider: https://edirc.repec.org/data/emieude.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.