IDEAS home Printed from https://ideas.repec.org/p/abn/wpaper/auwp2014-08.html
   My bibliography  Save this paper

Accuracy, Speed and Robustness of Policy Function Iteration

Author

Listed:
  • Todd B. Walker
  • Alexander W. Richter
  • Nathaniel A. Throckmorton

Abstract

Policy function iteration methods for solving and analyzing dynamic stochastic general equilibrium models are powerful from a theoretical and computational perspective. Despite obvious theoretical appeal, significant startup costs and a reliance on grid-based methods have limited the use of policy function iteration as a solution algorithm. We reduce these costs by providing a user-friendly suite of MATLAB functions that introduce multi-core processing and Fortran via MATLAB's executable function. Within the class of policy function iteration methods, we advocate using time iteration with linear interpolation. We examine a canonical real business cycle model and a new Keynesian model that features regime switching in policy parameters, Epstein-Zin preferences, and monetary policy that occasionally hits the zero-lower bound on the nominal interest rate to highlight the attractiveness of our methodology. We compare our advocated approach to other familiar iteration and approximation methods, highlighting the tradeoffs between accuracy, speed and robustness.

Suggested Citation

  • Todd B. Walker & Alexander W. Richter & Nathaniel A. Throckmorton, 2014. "Accuracy, Speed and Robustness of Policy Function Iteration," Auburn Economics Working Paper Series auwp2014-08, Department of Economics, Auburn University.
  • Handle: RePEc:abn:wpaper:auwp2014-08
    as

    Download full text from publisher

    File URL: https://cla.auburn.edu/econwp/Archives/2014/2014-08.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. S Borağan Aruoba & Pablo Cuba-Borda & Frank Schorfheide, 2018. "Macroeconomic Dynamics Near the ZLB: A Tale of Two Countries," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 85(1), pages 87-118.
    2. 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.
    3. 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.
    4. Huixin Bi & Eric M. Leeper & Campbell Leith, 2013. "Uncertain Fiscal Consolidations," Economic Journal, Royal Economic Society, vol. 0, pages 31-63, February.
    5. Bi, Huixin, 2012. "Sovereign default risk premia, fiscal limits, and fiscal policy," European Economic Review, Elsevier, vol. 56(3), pages 389-410.
    6. Fernández-Villaverde, Jesús & Gordon, Grey & Guerrón-Quintana, Pablo & Rubio-Ramírez, Juan F., 2015. "Nonlinear adventures at the zero lower bound," Journal of Economic Dynamics and Control, Elsevier, vol. 57(C), pages 182-204.
    7. Datta, Manjira & Mirman, Leonard J. & Morand, Olivier F. & Reffett, Kevin L., 2005. "Markovian equilibrium in infinite horizon economies with incomplete markets and public policy," Journal of Mathematical Economics, Elsevier, vol. 41(4-5), pages 505-544, August.
    8. Alberto Giovannini & Philippe Weil, 1989. "Risk Aversion and Intertemporal Substitution in the Capital Asset Pricing Model," NBER Working Papers 2824, National Bureau of Economic Research, Inc.
    9. Michael Kumhof & Romain Rancière & Pablo Winant, 2015. "Inequality, Leverage, and Crises," American Economic Review, American Economic Association, vol. 105(3), pages 1217-1245, March.
    10. Datta, Manjira & Mirman, Leonard J. & Reffett, Kevin L., 2002. "Existence and Uniqueness of Equilibrium in Distorted Dynamic Economies with Capital and Labor," Journal of Economic Theory, Elsevier, vol. 103(2), pages 377-410, April.
    11. Epstein, Larry G & Zin, Stanley E, 1991. "Substitution, Risk Aversion, and the Temporal Behavior of Consumption and Asset Returns: An Empirical Analysis," Journal of Political Economy, University of Chicago Press, vol. 99(2), pages 263-286, April.
    12. Greenwood Jeremy & Huffman Gregory W., 1995. "On the Existence of Nonoptimal Equilibria in Dynamic Stochastic Economies," Journal of Economic Theory, Elsevier, vol. 65(2), pages 611-623, April.
    13. Davig, Troy, 2004. "Regime-switching debt and taxation," Journal of Monetary Economics, Elsevier, vol. 51(4), pages 837-859, May.
    14. Leonard Mirman & Olivier Morand & Kevin Reffett, "undated". "A Qualitative Theory of Markovian Equilibrium in Infinite Horizon Economies with Capital," Working Papers 2133376, Department of Economics, W. P. Carey School of Business, Arizona State University.
    15. Susanto Basu & Brent Bundick, 2017. "Uncertainty Shocks in a Model of Effective Demand," Econometrica, Econometric Society, vol. 85, pages 937-958, May.
    16. Ireland, Peter N., 1997. "A small, structural, quarterly model for monetary policy evaluation," Carnegie-Rochester Conference Series on Public Policy, Elsevier, vol. 47(1), pages 83-108, December.
    17. Burkhard Heer & Alfred Maußner, 2024. "Dynamic General Equilibrium Modeling," Springer Texts in Business and Economics, Springer, edition 3, number 978-3-031-51681-8, June.
    18. S. Boragan Aruoba & Frank Schorfheide, 2013. "Macroeconomic dynamics near the ZLB: a tale of two equilibria," Working Papers 13-29, Federal Reserve Bank of Philadelphia.
    19. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, December.
    20. 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..
    21. 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.
    22. Boneva, Lena Mareen & Braun, R. Anton & Waki, Yuichiro, 2016. "Some unpleasant properties of loglinearized solutions when the nominal rate is zero," Journal of Monetary Economics, Elsevier, vol. 84(C), pages 216-232.
    23. Richter, Alexander W., 2015. "Finite lifetimes, long-term debt and the fiscal limit," Journal of Economic Dynamics and Control, Elsevier, vol. 51(C), pages 180-203.
    24. Judd, Kenneth L. & Guu, Sy-Ming, 1997. "Asymptotic methods for aggregate growth models," Journal of Economic Dynamics and Control, Elsevier, vol. 21(6), pages 1025-1042, June.
    25. Davig, Troy & Leeper, Eric M. & Walker, Todd B., 2011. "Inflation and the fiscal limit," European Economic Review, Elsevier, vol. 55(1), pages 31-47, January.
    26. Gavin, William T. & Keen, Benjamin D. & Richter, Alexander W. & Throckmorton, Nathaniel A., 2015. "The zero lower bound, the dual mandate, and unconventional dynamics," Journal of Economic Dynamics and Control, Elsevier, vol. 55(C), pages 14-38.
    27. William T. Gavin & Benjamin D. Keen & Alexander W. Richter & Nathaniel A. Throckmorton, 2013. "Global Dynamics at the Zero Lower Bound," Auburn Economics Working Paper Series auwp2013-17, Department of Economics, Auburn University.
    28. Mirman, Leonard J. & Morand, Olivier F. & Reffett, Kevin L., 2008. "A qualitative approach to Markovian equilibrium in infinite horizon economies with capital," Journal of Economic Theory, Elsevier, vol. 139(1), pages 75-98, March.
    29. Hess Chung & Troy Davig & Eric M. Leeper, 2007. "Monetary and Fiscal Policy Switching," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 39(4), pages 809-842, June.
    30. Leeper, Eric M., 1991. "Equilibria under 'active' and 'passive' monetary and fiscal policies," Journal of Monetary Economics, Elsevier, vol. 27(1), pages 129-147, February.
    31. Richter Alexander W. & Throckmorton Nathaniel A., 2015. "The zero lower bound: frequency, duration, and numerical convergence," The B.E. Journal of Macroeconomics, De Gruyter, vol. 15(1), pages 1-26, January.
    32. repec:fth:harver:1421 is not listed on IDEAS
    33. Dixit, Avinash K & Stiglitz, Joseph E, 1977. "Monopolistic Competition and Optimum Product Diversity," American Economic Review, American Economic Association, vol. 67(3), pages 297-308, June.
    34. Christopher J. Gust & Edward P. Herbst & J. David López-Salido & Matthew E. Smith, 2012. "The Empirical Implications of the Interest-Rate Lower Bound," Finance and Economics Discussion Series 2012-83, Board of Governors of the Federal Reserve System (U.S.).
    35. 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.
    36. Coleman, Wilbur John, II, 1991. "Equilibrium in a Production Economy with an Income Tax," Econometrica, Econometric Society, vol. 59(4), pages 1091-1104, July.
    37. Gaspar, Jess & L. Judd, Kenneth, 1997. "Solving Large-Scale Rational-Expectations Models," Macroeconomic Dynamics, Cambridge University Press, vol. 1(1), pages 45-75, January.
    38. Davig, Troy & Leeper, Eric M. & Walker, Todd B., 2010. ""Unfunded liabilities" and uncertain fiscal financing," Journal of Monetary Economics, Elsevier, vol. 57(5), pages 600-619, July.
    39. Baxter, Marianne & Crucini, Mario J & Rouwenhorst, K Geert, 1990. "Solving the Stochastic Growth Model by a Discrete-State-Space, Euler-Equation Approach," Journal of Business & Economic Statistics, American Statistical Association, vol. 8(1), pages 19-21, January.
    40. Christopher Gust & Edward Herbst & David López-Salido & Matthew E. Smith, 2017. "The Empirical Implications of the Interest-Rate Lower Bound," American Economic Review, American Economic Association, vol. 107(7), pages 1971-2006, July.
    41. Karel R. S. M. Mertens & Morten O. Ravn, 2014. "Fiscal Policy in an Expectations-Driven Liquidity Trap," Review of Economic Studies, Oxford University Press, vol. 81(4), pages 1637-1667.
    42. Baxter, Marianne, 1991. "Approximating suboptimal dynamic equilibria : An Euler equation approach," Journal of Monetary Economics, Elsevier, vol. 28(2), pages 173-200, October.
    43. Rotemberg, Julio J, 1982. "Sticky Prices in the United States," Journal of Political Economy, University of Chicago Press, vol. 90(6), pages 1187-1211, December.
    44. Judd, Kenneth L., 1992. "Projection methods for solving aggregate growth models," Journal of Economic Theory, Elsevier, vol. 58(2), pages 410-452, December.
    45. Sims, Christopher A, 2002. "Solving Linear Rational Expectations Models," Computational Economics, Springer;Society for Computational Economics, vol. 20(1-2), pages 1-20, 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. Richter Alexander W. & Throckmorton Nathaniel A., 2015. "The zero lower bound: frequency, duration, and numerical convergence," The B.E. Journal of Macroeconomics, De Gruyter, vol. 15(1), pages 1-26, January.
    2. Benjamin D. Keen & Alexander W. Richter & Nathaniel A. Throckmorton, 2017. "Forward Guidance And The State Of The Economy," Economic Inquiry, Western Economic Association International, vol. 55(4), pages 1593-1624, October.
    3. 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.
    4. Gavin, William T. & Keen, Benjamin D. & Richter, Alexander W. & Throckmorton, Nathaniel A., 2015. "The zero lower bound, the dual mandate, and unconventional dynamics," Journal of Economic Dynamics and Control, Elsevier, vol. 55(C), pages 14-38.
    5. Michael Plante & Alexander W. Richter & Nathaniel A. Throckmorton, 2018. "The Zero Lower Bound and Endogenous Uncertainty," Economic Journal, Royal Economic Society, vol. 128(611), pages 1730-1757, June.
    6. Richter, Alexander W., 2015. "Finite lifetimes, long-term debt and the fiscal limit," Journal of Economic Dynamics and Control, Elsevier, vol. 51(C), pages 180-203.
    7. 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, Japanese Economic Association, vol. 70(1), pages 51-104, March.
    8. Francesco Bianchi & Leonardo Melosi, 2017. "Escaping the Great Recession," American Economic Review, American Economic Association, vol. 107(4), pages 1030-1058, April.
    9. Ngo, Phuong V., 2021. "Fiscal Multipliers At The Zero Lower Bound: The Role Of Government Spending Persistence," Macroeconomic Dynamics, Cambridge University Press, vol. 25(4), pages 970-997, June.
    10. Jesper Lindé & Mathias Trabandt, 2018. "Should we use linearized models to calculate fiscal multipliers?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 33(7), pages 937-965, November.
    11. Atkinson, Tyler & Richter, Alexander W. & Throckmorton, Nathaniel A., 2020. "The zero lower bound and estimation accuracy," Journal of Monetary Economics, Elsevier, vol. 115(C), pages 249-264.
    12. Leith, Campbell & Liu, Ding, 2016. "The inflation bias under Calvo and Rotemberg pricing," Journal of Economic Dynamics and Control, Elsevier, vol. 73(C), pages 283-297.
    13. Benjamin K. Johannsen, 2014. "When are the Effects of Fiscal Policy Uncertainty Large?," Finance and Economics Discussion Series 2014-40, Board of Governors of the Federal Reserve System (U.S.).
    14. Timothy S. Hills & Taisuke Nakata, 2018. "Fiscal Multipliers at the Zero Lower Bound: The Role of Policy Inertia," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 50(1), pages 155-172, February.
    15. Kenneth L. Judd & Lilia Maliar & Serguei Maliar, 2014. "Lower Bounds on Approximation Errors: Testing the Hypothesis That a Numerical Solution Is Accurate?," BYU Macroeconomics and Computational Laboratory Working Paper Series 2014-06, Brigham Young University, Department of Economics, BYU Macroeconomics and Computational Laboratory.
    16. Yasuo Hirose & Atsushi Inoue, 2016. "The Zero Lower Bound and Parameter Bias in an Estimated DSGE Model," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 31(4), pages 630-651, June.
    17. Dana Galizia, 2021. "Saddle cycles: Solving rational expectations models featuring limit cycles (or chaos) using perturbation methods," Quantitative Economics, Econometric Society, vol. 12(3), pages 869-901, July.
    18. Taisuke Nakata, 2017. "Uncertainty at the Zero Lower Bound," American Economic Journal: Macroeconomics, American Economic Association, vol. 9(3), pages 186-221, July.
    19. John Stachurski, 2009. "Economic Dynamics: Theory and Computation," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262012774, December.
    20. 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.

    More about this item

    Keywords

    Policy function iteration; Zero lower bound; Epstein-Zin preferences; Markov switching; Chebyshev polynomials; Real business cycle model; New Keynesian model;
    All these keywords.

    JEL classification:

    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • C68 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computable General Equilibrium Models
    • E52 - Macroeconomics and Monetary Economics - - Monetary Policy, Central Banking, and the Supply of Money and Credit - - - Monetary Policy
    • E62 - Macroeconomics and Monetary Economics - - Macroeconomic Policy, Macroeconomic Aspects of Public Finance, and General Outlook - - - Fiscal Policy; Modern Monetary Theory

    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:abn:wpaper:auwp2014-08. 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: Hyeongwoo Kim (email available below). General contact details of provider: https://edirc.repec.org/data/deaubus.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.