IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2512.19589.html

srvar-toolkit: A Python Implementation of Shadow-Rate Vector Autoregressions with Stochastic Volatility

Author

Listed:
  • Charles Shaw

Abstract

We introduce srvar-toolkit, an open-source Python package for Bayesian vector autoregression with shadow-rate constraints and stochastic volatility. The toolkit implements the methodology of Grammatikopoulos (2025, Journal of Forecasting) for forecasting macroeconomic variables when interest rates hit the effective lower bound. We provide conjugate Normal-Inverse-Wishart priors with Minnesota-style shrinkage, latent shadow-rate data augmentation via Gibbs sampling, diagonal stochastic volatility using the Kim-Shephard-Chib mixture approximation, and stochastic search variable selection. Core dependencies are NumPy, SciPy, and Pandas, with optional extras for plotting and a configuration-driven command-line interface. We release the software under the MIT licence at https://github.com/shawcharles/srvar-toolkit.

Suggested Citation

  • Charles Shaw, 2025. "srvar-toolkit: A Python Implementation of Shadow-Rate Vector Autoregressions with Stochastic Volatility," Papers 2512.19589, arXiv.org.
  • Handle: RePEc:arx:papers:2512.19589
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2512.19589
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    2. Sangjoon Kim & Neil Shephard & Siddhartha Chib, 1998. "Stochastic Volatility: Likelihood Inference and Comparison with ARCH Models," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 65(3), pages 361-393.
    3. Jing Cynthia Wu & Fan Dora Xia, 2016. "Measuring the Macroeconomic Impact of Monetary Policy at the Zero Lower Bound," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 48(2-3), pages 253-291, March.
    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. Gabriel Rodríguez & Renato Vassallo, 2022. "Time Evolution of External Shocks on Macroeconomic Fluctuations in Pacific Alliance Countries: Empirical Application using TVP-VAR-SV Models," Documentos de Trabajo / Working Papers 2022-508, Departamento de Economía - Pontificia Universidad Católica del Perú.
    2. Benjamin K. Johannsen & Elmar Mertens, 2021. "A Time‐Series Model of Interest Rates with the Effective Lower Bound," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 53(5), pages 1005-1046, August.
    3. Aymeric Ortmans, 2020. "Evolving Monetary Policy in the Aftermath of the Great Recession," Documents de recherche 20-01, Centre d'Études des Politiques Économiques (EPEE), Université d'Evry Val d'Essonne.
    4. Punzi, Maria Teresa, 2016. "Financial cycles and co-movements between the real economy, finance and asset price dynamics in large-scale crises," FinMaP-Working Papers 61, Collaborative EU Project FinMaP - Financial Distortions and Macroeconomic Performance: Expectations, Constraints and Interaction of Agents.
    5. Yoosoon Chang & Soyoung Kim & Joon Y. Park, 2025. "How Do Macroaggregates and Income Distribution Interact Dynamically? A Novel Structural Mixed Autoregression with Aggregate and Functional Variables," CAMA Working Papers 2025-07, Centre for Applied Macroeconomic Analysis, Crawford School of Public Policy, The Australian National University.
    6. Karlsson, Sune & Mazur, Stepan & Nguyen, Hoang, 2023. "Vector autoregression models with skewness and heavy tails," Journal of Economic Dynamics and Control, Elsevier, vol. 146(C).
    7. 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.
    8. Marco Brianti, 2021. "Financial Shocks, Uncertainty Shocks, and Monetary Policy Trade-Offs," Working Papers 2021-05, University of Alberta, Department of Economics.
    9. Koop, Gary & Korobilis, Dimitris, 2010. "Bayesian Multivariate Time Series Methods for Empirical Macroeconomics," Foundations and Trends(R) in Econometrics, now publishers, vol. 3(4), pages 267-358, July.
    10. Soyoung Kim, 2019. "Macroprudential Policy in Asian Economies," ADB Economics Working Paper Series 577, Asian Development Bank.
    11. Yoosoon Chang & Soyoung Kim & Joon Y. Park, 2025. "How Do Macroaggregates and Income Distribution Interact Dynamically? A Novel Structural Mixed Autoregression with Aggregate and Functional Variables," Working Papers No 01/2025, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    12. Jouchi Nakajima, 2011. "Time-Varying Parameter VAR Model with Stochastic Volatility: An Overview of Methodology and Empirical Applications," Monetary and Economic Studies, Institute for Monetary and Economic Studies, Bank of Japan, vol. 29, pages 107-142, November.
    13. Rodney Strachan & Herman K. van Dijk, "undated". "Bayesian Model Averaging in Vector Autoregressive Processes with an Investigation of Stability of the US Great Ratios and Risk of a Liquidity Trap in the USA, UK and Japan," MRG Discussion Paper Series 1407, School of Economics, University of Queensland, Australia.
    14. Jesus Fernandez-Villaverde & Tomohide Mineyama & Dongho Song, 2024. "Are We Fragmented Yet? Measuring Geopolitical Fragmentation and Its Causal Effects," PIER Working Paper Archive 24-015, Penn Institute for Economic Research, Department of Economics, University of Pennsylvania.
    15. Prüser, Jan & Schlösser, Alexander, 2017. "The effects of economic policy uncertainty on European economies: Evidence from a TVP-FAVAR," Ruhr Economic Papers 708, RWI - Leibniz-Institut für Wirtschaftsforschung, Ruhr-University Bochum, TU Dortmund University, University of Duisburg-Essen.
    16. Lukmanova, Elizaveta & Rabitsch, Katrin, 2023. "Evidence on monetary transmission and the role of imperfect information: Interest rate versus inflation target shocks," European Economic Review, Elsevier, vol. 158(C).
    17. Herwartz, Helmut & Wang, Shu, 2023. "Point estimation in sign-restricted SVARs based on independence criteria with an application to rational bubbles," Journal of Economic Dynamics and Control, Elsevier, vol. 151(C).
    18. Karlsson, Sune, 2013. "Forecasting with Bayesian Vector Autoregression," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 791-897, Elsevier.
    19. Haque, Qazi & Magnusson, Leandro M., 2021. "Uncertainty shocks and inflation dynamics in the U.S," Economics Letters, Elsevier, vol. 202(C).
    20. Rodríguez, Gabriel & Castillo B., Paul & Guevara Ruiz, Brenda & Yamuca Salvatierra, Leonela, 2025. "Time-varying transmission of external shocks in Peru: Reassessing the role of monetary policy," Economic Modelling, Elsevier, vol. 152(C).

    More about this item

    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:arx:papers:2512.19589. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.