IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v65y2025i4d10.1007_s10614-024-10632-2.html
   My bibliography  Save this article

Perturbating and Estimating DSGE Models in Julia

Author

Listed:
  • Alvaro Salazar-Perez

    (Universidad Carlos III de Madrid)

  • Hernán D. Seoane

    (Universidad Carlos III de Madrid)

Abstract

This paper illustrates the power of Julia language for the solution and estimation of Dynamic Stochastic General Equilibrium models. We document large gains of the Julia implementation of Perturbation solution (first and higher orders) and Bayesian estimation using two workhorse models in the literature: the Real Business Cycle Model and a medium scale New-Keynesian Model. We release a companion package that implements 1st, 2nd a 3rd order approximation of Dynamic Stochastic General Equilibrium models and allows for estimation of (log-)linearized models using Sequential Monte-Carlo Methods. Our examples highlight that Julia has low entry costs and it is a language where it is easy to deal with parallelization.

Suggested Citation

  • Alvaro Salazar-Perez & Hernán D. Seoane, 2025. "Perturbating and Estimating DSGE Models in Julia," Computational Economics, Springer;Society for Computational Economics, vol. 65(4), pages 2379-2396, April.
  • Handle: RePEc:kap:compec:v:65:y:2025:i:4:d:10.1007_s10614-024-10632-2
    DOI: 10.1007/s10614-024-10632-2
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-024-10632-2
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-024-10632-2?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, December.
    2. Martin M Andreasen & Jesús Fernández-Villaverde & Juan F Rubio-Ramírez, 2018. "The Pruned State-Space System for Non-Linear DSGE Models: Theory and Empirical Applications," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 85(1), pages 1-49.
    3. Aruoba, S. Borağan & Fernández-Villaverde, Jesús, 2015. "A comparison of programming languages in macroeconomics," Journal of Economic Dynamics and Control, Elsevier, vol. 58(C), pages 265-273.
    4. Aldrich, Eric M. & Fernández-Villaverde, Jesús & Ronald Gallant, A. & Rubio-Ramírez, Juan F., 2011. "Tapping the supercomputer under your desk: Solving dynamic equilibrium models with graphics processors," Journal of Economic Dynamics and Control, Elsevier, vol. 35(3), pages 386-393, March.
    5. Schmitt-Grohe, Stephanie & Uribe, Martin, 2004. "Solving dynamic general equilibrium models using a second-order approximation to the policy function," Journal of Economic Dynamics and Control, Elsevier, vol. 28(4), pages 755-775, January.
    6. Aruoba, S. Boragan & Fernandez-Villaverde, Jesus & Rubio-Ramirez, Juan F., 2006. "Comparing solution methods for dynamic equilibrium economies," Journal of Economic Dynamics and Control, Elsevier, vol. 30(12), pages 2477-2508, December.
    7. Klein, Paul, 2000. "Using the generalized Schur form to solve a multivariate linear rational expectations model," Journal of Economic Dynamics and Control, Elsevier, vol. 24(10), pages 1405-1423, September.
    8. Frank Smets & Rafael Wouters, 2007. "Shocks and Frictions in US Business Cycles: A Bayesian DSGE Approach," American Economic Review, American Economic Association, vol. 97(3), pages 586-606, June.
    9. Peri, Alessandro, 2020. "A hardware approach to value function iteration," Journal of Economic Dynamics and Control, Elsevier, vol. 114(C).
    10. Edward Herbst & Frank Schorfheide, 2014. "Sequential Monte Carlo Sampling For Dsge Models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 29(7), pages 1073-1098, November.
    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. Fernández-Villaverde, J. & Rubio-Ramírez, J.F. & Schorfheide, F., 2016. "Solution and Estimation Methods for DSGE Models," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 527-724, Elsevier.
    2. Andrew Foerster & Juan F. Rubio‐Ramírez & Daniel F. Waggoner & Tao Zha, 2016. "Perturbation methods for Markov‐switching dynamic stochastic general equilibrium models," Quantitative Economics, Econometric Society, vol. 7(2), pages 637-669, July.
    3. Viktors Ajevskis, 2019. "Generalised Impulse Response Function as a Perturbation of a Global Solution to DSGE Models," Working Papers 2019/04, Latvijas Banka.
    4. Dlugoszek, Grzegorz R., 2016. "Solving DSGE portfolio choice models with asymmetric countries," SFB 649 Discussion Papers 2016-009, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    5. Ajevskis, Viktors, 2019. "Nonlocal Solutions To Dynamic Equilibrium Models: The Approximate Stable Manifolds Approach," Macroeconomic Dynamics, Cambridge University Press, vol. 23(6), pages 2544-2571, September.
    6. Yasuo Hirose & Takeki Sunakawa, 2019. "Review of Solution and Estimation Methods for Nonlinear Dynamic Stochastic General Equilibrium Models with the Zero Lower Bound," The Japanese Economic Review, Springer, vol. 70(1), pages 51-104, March.
    7. Francesco Bianchi & Giovanni Nicolò, 2021. "A generalized approach to indeterminacy in linear rational expectations models," Quantitative Economics, Econometric Society, vol. 12(3), pages 843-868, July.
    8. Posch, Olaf & Trimborn, Timo, 2013. "Numerical solution of dynamic equilibrium models under Poisson uncertainty," Journal of Economic Dynamics and Control, Elsevier, vol. 37(12), pages 2602-2622.
    9. Aruoba, S. Boragan & Fernandez-Villaverde, Jesus & Rubio-Ramirez, Juan F., 2006. "Comparing solution methods for dynamic equilibrium economies," Journal of Economic Dynamics and Control, Elsevier, vol. 30(12), pages 2477-2508, December.
    10. Hall, Jamie & Pitt, Michael K. & Kohn, Robert, 2014. "Bayesian inference for nonlinear structural time series models," Journal of Econometrics, Elsevier, vol. 179(2), pages 99-111.
    11. Jesús Fernández-Villaverde, 2010. "The econometrics of DSGE models," SERIEs: Journal of the Spanish Economic Association, Springer;Spanish Economic Association, vol. 1(1), pages 3-49, March.
    12. Dario Caldara & Jesus Fernandez-Villaverde & Juan Rubio-Ramirez & Wen Yao, 2012. "Computing DSGE Models with Recursive Preferences and Stochastic Volatility," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 15(2), pages 188-206, April.
    13. Nathan S. Balke & Enrique Martínez García & Zheng Zeng, 2017. "Understanding the Aggregate Effects of Credit Frictions and Uncertainty," Globalization Institute Working Papers 317, Federal Reserve Bank of Dallas.
    14. Ayşe Kabukçuoğlu & Enrique Martínez-García, 2021. "A Generalized Time Iteration Method for Solving Dynamic Optimization Problems with Occasionally Binding Constraints," Computational Economics, Springer;Society for Computational Economics, vol. 58(2), pages 435-460, August.
    15. Sungbae An & Frank Schorfheide, 2007. "Bayesian Analysis of DSGE Models," Econometric Reviews, Taylor & Francis Journals, vol. 26(2-4), pages 113-172.
    16. Levintal, Oren, 2017. "Fifth-order perturbation solution to DSGE models," Journal of Economic Dynamics and Control, Elsevier, vol. 80(C), pages 1-16.
    17. Fernandez-Villaverde, Jesus & Rubio-Ramirez, Juan F., 2006. "Solving DSGE models with perturbation methods and a change of variables," Journal of Economic Dynamics and Control, Elsevier, vol. 30(12), pages 2509-2531, December.
    18. Viktor Winschel & Markus Kr‰tzig, 2010. "Solving, Estimating, and Selecting Nonlinear Dynamic Models Without the Curse of Dimensionality," Econometrica, Econometric Society, vol. 78(2), pages 803-821, March.
    19. Born, Benjamin & Pfeifer, Johannes, 2014. "Policy risk and the business cycle," Journal of Monetary Economics, Elsevier, vol. 68(C), pages 68-85.
    20. Lan, Hong & Meyer-Gohde, Alexander, 2013. "Solving DSGE models with a nonlinear moving average," Journal of Economic Dynamics and Control, Elsevier, vol. 37(12), pages 2643-2667.

    More about this item

    Keywords

    Perturbation solution; Sequential Montecarlo; Julia programming;
    All these keywords.

    JEL classification:

    • E0 - Macroeconomics and Monetary Economics - - General
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques

    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:kap:compec:v:65:y:2025:i:4:d:10.1007_s10614-024-10632-2. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.