This Python-based code repository supplements the work of Galo Nuno, Philipp Renner and Simon Scheidegger, titled Monetary Policy with Persistent Supply Shocks (Nuno, Renner and Scheidegger; 2025), which introduces a highly scalable computational technique to solve macro prudential policy models.
However, the scope of the method is much broader: as it is a generic framework to compute global solutions to dynamic (stochastic) models with many state variables, it is applicable to almost any dynamic model. The available solution algorithms are based on "policy function iteration".
- The computational framework located here is extensively documented, leverages Tensorflow, and combines Artifical Neural Network regression with performance-boosting options such as GPU parallelism.
- Replication codes for the macro prudential models from the paper are provided.
- Galo Nuno (Bank of Spain)
- Philipp Renner (University of Lancaster, Department of Economics)
- Simon Scheidegger (University of Lausanne, Department of Economics)
Please cite Nuño, Galo and Renner, Philipp Johannes and Scheidegger, Simon, Monetary Policy with Persistent Supply Shocks (October 30, 2024). in your publications if it helps your research:
We provide implementations which use python 3.