IDEAS home Printed from https://ideas.repec.org/p/cer/papers/wp669.html
   My bibliography  Save this paper

Avoiding Root-Finding in the Krusell-Smith Algorithm Simulation

Author

Listed:
  • Ivo Bakota

Abstract

This paper proposes a novel method to compute the simulation part of the Krusell-Smith (1997, 1998) algorithm when the agents can trade in more than one asset (for example, capital and bonds). The Krusell-Smith algorithm is used to solve general equilibrium models with both aggregate and uninsurable idiosyncratic risk and can be used to solve bounded rationality equilibria and to approximate rational expectations equilibria. When applied to solve a model with more than one financial asset, in the simulation, the standard algorithm has to impose equilibria for each additional asset (find the market-clearing price), for each period simulated. This procedure entails root-finding for each period, which is computationally very expensive. I show that it is possible to avoid this rootfinding by not imposing the equilibria each period, but instead by simulating the model without market clearing. The method updates the law of motion for asset prices by using Newton-like methods (Broyden’s method) on the simulated excess demand, instead of imposing equilibrium for each period and running regressions on the clearing prices. Since the method avoids the root-finding for each time period simulated, it leads to a significant reduction in computation time. In the example model, the proposed version of the algorithm leads to a 32% decrease in computational time, even when measured conservatively. This method could be especially useful in computing asset pricing models (for example, models with risky and safe assets) with both aggregate and uninsurable idiosyncratic risk since methods which use linearization in the neighborhood of the aggregate steady state are considered to be less accurate than global solution methods for these particular types of models.

Suggested Citation

  • Ivo Bakota, 2020. "Avoiding Root-Finding in the Krusell-Smith Algorithm Simulation," CERGE-EI Working Papers wp669, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
  • Handle: RePEc:cer:papers:wp669
    as

    Download full text from publisher

    File URL: http://www.cerge-ei.cz/pdf/wp/Wp669.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Krusell, Per & Smith, Anthony A., 1997. "Income And Wealth Heterogeneity, Portfolio Choice, And Equilibrium Asset Returns," Macroeconomic Dynamics, Cambridge University Press, vol. 1(2), pages 387-422, June.
    2. Krueger, D. & Mitman, K. & Perri, F., 2016. "Macroeconomics and Household Heterogeneity," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 843-921, Elsevier.
    3. Larry G. Epstein & Stanley E. Zin, 2013. "Substitution, risk aversion and the temporal behavior of consumption and asset returns: A theoretical framework," World Scientific Book Chapters, in: Leonard C MacLean & William T Ziemba (ed.), HANDBOOK OF THE FUNDAMENTALS OF FINANCIAL DECISION MAKING Part I, chapter 12, pages 207-239, World Scientific Publishing Co. Pte. Ltd..
    4. Reiter, Michael, 2009. "Solving heterogeneous-agent models by projection and perturbation," Journal of Economic Dynamics and Control, Elsevier, vol. 33(3), pages 649-665, March.
    5. Carroll, Christopher D., 2006. "The method of endogenous gridpoints for solving dynamic stochastic optimization problems," Economics Letters, Elsevier, vol. 91(3), pages 312-320, June.
    6. Yann Algan & Olivier Allais & Eva Carceles-Poveda, 2009. "Macroeconomic Effects of Financial Policy," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 12(4), pages 678-696, October.
    7. Den Haan, Wouter J., 1997. "Solving Dynamic Models With Aggregate Shocks And Heterogeneous Agents," Macroeconomic Dynamics, Cambridge University Press, vol. 1(2), pages 355-386, June.
    8. Per Krusell & Anthony A. Smith & Jr., 1998. "Income and Wealth Heterogeneity in the Macroeconomy," Journal of Political Economy, University of Chicago Press, vol. 106(5), pages 867-896, October.
    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. Boppart, Timo & Krusell, Per & Mitman, Kurt, 2018. "Exploiting MIT shocks in heterogeneous-agent economies: the impulse response as a numerical derivative," Journal of Economic Dynamics and Control, Elsevier, vol. 89(C), pages 68-92.
    2. Ivo Bakota, 2023. "Market Clearing and Krusell-Smith Algorithm in an Economy with Multiple Assets," Computational Economics, Springer;Society for Computational Economics, vol. 62(3), pages 1007-1045, October.
    3. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    4. Daniel Harenberg & Alexander Ludwig, 2019. "Idiosyncratic Risk, Aggregate Risk, And The Welfare Effects Of Social Security," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 60(2), pages 661-692, May.
    5. Pierre Mabille, 2019. "Aggregate Precautionary Savings Motives," 2019 Meeting Papers 344, Society for Economic Dynamics.
    6. Daniel Harenberg & Alexander Ludwig, "undated". "Social Security and the Interactions Between Aggregate and Idiosyncratic Risk," Working Papers ETH-RC-14-002, ETH Zurich, Chair of Systems Design.
    7. Jesús Fernández‐Villaverde & Samuel Hurtado & Galo Nuño, 2023. "Financial Frictions and the Wealth Distribution," Econometrica, Econometric Society, vol. 91(3), pages 869-901, May.
    8. Francisco Gomes & Alexander Michaelides, 2008. "Asset Pricing with Limited Risk Sharing and Heterogeneous Agents," The Review of Financial Studies, Society for Financial Studies, vol. 21(1), pages 415-448, January.
    9. Takeki Sunakawa, 2020. "Applying the Explicit Aggregation Algorithm to Heterogeneous Macro Models," Computational Economics, Springer;Society for Computational Economics, vol. 55(3), pages 845-874, March.
    10. Ivo Bakota, 2020. "Capital Income Taxation with Portfolio Choice," CERGE-EI Working Papers wp668, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    11. Den Haan, Wouter J., 2010. "Comparison of solutions to the incomplete markets model with aggregate uncertainty," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 4-27, January.
    12. Young, Eric R., 2010. "Solving the incomplete markets model with aggregate uncertainty using the Krusell-Smith algorithm and non-stochastic simulations," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 36-41, January.
    13. Evans, David & Li, Jungang & McGough, Bruce, 2023. "Local rationality," Journal of Economic Behavior & Organization, Elsevier, vol. 205(C), pages 216-236.
    14. Marlon Azinovic & Luca Gaegauf & Simon Scheidegger, 2022. "Deep Equilibrium Nets," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(4), pages 1471-1525, November.
    15. Davide Debortoli & Jordi Galí, 2024. "Idiosyncratic Income Risk and Aggregate Fluctuations," American Economic Journal: Macroeconomics, American Economic Association, vol. 16(4), pages 279-310, October.
    16. Den Haan, Wouter J., 2010. "Assessing the accuracy of the aggregate law of motion in models with heterogeneous agents," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 79-99, January.
    17. Christian Bayer & Ralph Luetticke, 2020. "Solving discrete time heterogeneous agent models with aggregate risk and many idiosyncratic states by perturbation," Quantitative Economics, Econometric Society, vol. 11(4), pages 1253-1288, November.
    18. Zhouzhou Gu & Mathieu Lauri`ere & Sebastian Merkel & Jonathan Payne, 2024. "Global Solutions to Master Equations for Continuous Time Heterogeneous Agent Macroeconomic Models," Papers 2406.13726, arXiv.org.
    19. Stephen J. Terry, 2017. "Alternative Methods for Solving Heterogeneous Firm Models," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 49(6), pages 1081-1111, September.
    20. Ralph Luetticke, 2021. "Transmission of Monetary Policy with Heterogeneity in Household Portfolios," American Economic Journal: Macroeconomics, American Economic Association, vol. 13(2), pages 1-25, April.

    More about this item

    Keywords

    portfolio choice; heterogeneous agents; Krusell-Smith;
    All these keywords.

    JEL classification:

    • E44 - Macroeconomics and Monetary Economics - - Money and Interest Rates - - - Financial Markets and the Macroeconomy
    • G12 - Financial Economics - - General Financial Markets - - - Asset Pricing; Trading Volume; Bond Interest Rates
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques

    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:cer:papers:wp669. 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: Lucie Vasiljevova (email available below). General contact details of provider: https://edirc.repec.org/data/eiacacz.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.