IDEAS home Printed from https://ideas.repec.org/p/nzt/nztwps/22-02.html
   My bibliography  Save this paper

An Efficient Application of the Extended Path Algorithm in Matlab with Examples

Author

Listed:

Abstract

Recent experience with interest rates hitting the effective lower bound and agents facing binding borrowing constraints has emphasised the importance of understanding the behaviour of an economy in which some variables may be restricted at times. The extended path algorithm is a commonly used and fairly general method for solving dynamic nonlinear models with rational expectations. This algorithm can be used for a wide range of cases, including for models with occasionally binding constraints, or for forecasting with models in which some variables must satisfy a certain path. In this paper I propose computational improvements to the algorithm that speed up the calculations via vectorisations of the Jacobian matrix and residual equations. I illustrate the advantages of the method with a number of policy relevant applications: conditional forecasting with both exactly identified and underidentified shocks, occasionally binding constraints on interest rates, anticipated shocks, calendar-based forward guidance, optimal monetary policy with a binding constraint and transition paths.

Suggested Citation

  • Andrew Binning, 2022. "An Efficient Application of the Extended Path Algorithm in Matlab with Examples," Treasury Working Paper Series 22/02, New Zealand Treasury.
  • Handle: RePEc:nzt:nztwps:22/02
    as

    Download full text from publisher

    File URL: https://www.treasury.govt.nz/sites/default/files/2022-07/twp22-02.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tom Holden & Michael Paetz, 2012. "Efficient Simulation of DSGE Models with Inequality Constraints," Quantitative Macroeconomics Working Papers 21207b, Hamburg University, Department of Economics.
    2. Fair, Ray C & Taylor, John B, 1983. "Solution and Maximum Likelihood Estimation of Dynamic Nonlinear Rational Expectations Models," Econometrica, Econometric Society, vol. 51(4), pages 1169-1185, July.
    3. Jaromír Beneš & Andrew Binning & Kirdan Lees, 2008. "Incorporating judgement with DSGE models," Reserve Bank of New Zealand Discussion Paper Series DP2008/10, Reserve Bank of New Zealand.
    4. Stefan Laséen & Lars E.O. Svensson, 2011. "Anticipated Alternative policy Rate Paths in Plicy Simulations," International Journal of Central Banking, International Journal of Central Banking, vol. 7(3), pages 1-35, September.
    5. Lars E.O. Svensson & Stefan Laseen, 2009. "Anticipated Alternative Instrument-Rate Paths in Policy Simulations," 2009 Meeting Papers 788, Society for Economic Dynamics.
    6. Lilia Maliar & Serguei Maliar & John B. Taylor & Inna Tsener, 2020. "A tractable framework for analyzing a class of nonstationary Markov models," Quantitative Economics, Econometric Society, vol. 11(4), pages 1289-1323, November.
    7. Thomas Doan & Robert B. Litterman & Christopher A. Sims, 1983. "Forecasting and Conditional Projection Using Realistic Prior Distributions," NBER Working Papers 1202, National Bureau of Economic Research, Inc.
    8. Daniel F. Waggoner & Tao Zha, 1999. "Conditional Forecasts In Dynamic Multivariate Models," The Review of Economics and Statistics, MIT Press, vol. 81(4), pages 639-651, November.
    9. Jeffrey R. Campbell & Charles L. Evans & Jonas D.M. Fisher & Alejandro Justiniano, 2012. "Macroeconomic Effects of Federal Reserve Forward Guidance," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 43(1 (Spring), pages 1-80.
    10. W. Wascher & Palle S. Andersen, 1999. "Sacrifice ratios and the conduct of monetary policy in conditions of low inflation," BIS Working Papers 82, Bank for International Settlements.
    11. Marco Del Negro & Marc P. Giannoni & Christina Patterson, 2023. "The Forward Guidance Puzzle," Journal of Political Economy Macroeconomics, University of Chicago Press, vol. 1(1), pages 43-79.
    12. Goodfriend, Marvin & King, Robert G., 2005. "The incredible Volcker disinflation," Journal of Monetary Economics, Elsevier, vol. 52(5), pages 981-1015, July.
    13. Callum Jones & Mariano Kulish & Daniel M. Rees, 2022. "International spillovers of forward guidance shocks," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(1), pages 131-160, January.
    14. 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.
    15. 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.
    16. 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, August.
    17. Junior Maih, 2010. "Conditional forecasts in DSGE models," Working Paper 2010/07, Norges Bank.
    18. Boucekkine, Raouf, 1995. "An alternative methodology for solving nonlinear forward-looking models," Journal of Economic Dynamics and Control, Elsevier, vol. 19(4), pages 711-734, May.
    19. Guido Ascari & Lorenza Rossi, 2012. "Trend Inflation and Firms Price‐Setting: Rotemberg Versus Calvo," Economic Journal, Royal Economic Society, vol. 122(563), pages 1115-1141, September.
    20. Michal Andrle & Mr. Benjamin L Hunt, 2020. "Model-Based Globally-Consistent Risk Assessment," IMF Working Papers 2020/064, International Monetary Fund.
    21. Julio J. Rotemberg, 1982. "Monopolistic Price Adjustment and Aggregate Output," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 49(4), pages 517-531.
    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. Tom D. Holden, 2023. "Existence and Uniqueness of Solutions to Dynamic Models with Occasionally Binding Constraints," The Review of Economics and Statistics, MIT Press, vol. 105(6), pages 1481-1499, November.
    2. Gauti Eggertsson & Sergey Egiev & Alessandro Lin & Josef Platzer & Luca Riva, 2021. "A Toolkit for Solving Models with a Lower Bound on Interest Rates of Stochastic Duration," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 41, pages 121-173, July.
    3. Dobrew, Michael & Gerke, Rafael & Giesen, Sebastian & Röttger, Joost, 2023. "Make-up strategies with incomplete markets and bounded rationality," Discussion Papers 01/2023, Deutsche Bundesbank.
    4. Andrew Binning & Junior Maih, 2016. "Forecast uncertainty in the neighborhood of the effective lower bound: How much asymmetry should we expect?," Working Paper 2016/13, Norges Bank.
    5. Lindé, Jesper & Smets, Frank & Wouters, Rafael, 2016. "Challenges for Central Banks´ Macro Models," Working Paper Series 323, Sveriges Riksbank (Central Bank of Sweden).
    6. Lilia Maliar & Serguei Maliar & John B. Taylor & Inna Tsener, 2020. "A tractable framework for analyzing a class of nonstationary Markov models," Quantitative Economics, Econometric Society, vol. 11(4), pages 1289-1323, November.
    7. Guerrieri, Luca & Iacoviello, Matteo, 2015. "OccBin: A toolkit for solving dynamic models with occasionally binding constraints easily," Journal of Monetary Economics, Elsevier, vol. 70(C), pages 22-38.
    8. Lepetyuk, Vadym & Maliar, Lilia & Maliar, Serguei, 2020. "When the U.S. catches a cold, Canada sneezes: A lower-bound tale told by deep learning," Journal of Economic Dynamics and Control, Elsevier, vol. 117(C).
    9. Yongyang Cai & Kenneth L. Judd, 2023. "A simple but powerful simulated certainty equivalent approximation method for dynamic stochastic problems," Quantitative Economics, Econometric Society, vol. 14(2), pages 651-687, May.
    10. Filippo Ferroni & Jonas D. M. Fisher & Leonardo Melosi, 2022. "Usual Shocks in our Usual Models," Working Paper Series WP 2022-39, Federal Reserve Bank of Chicago.
    11. Lindé, J. & Smets, F. & Wouters, R., 2016. "Challenges for Central Banks’ Macro Models," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 2185-2262, Elsevier.
    12. Haberis, Alex & Harrison, Richard & Waldron, Matt, 2019. "Uncertain policy promises," European Economic Review, Elsevier, vol. 111(C), pages 459-474.
    13. Martin Kliem & Alexander Meyer‐Gohde, 2022. "(Un)expected monetary policy shocks and term premia," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(3), pages 477-499, April.
    14. Negro, Marco Del & Schorfheide, Frank, 2013. "DSGE Model-Based Forecasting," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 57-140, Elsevier.
    15. Antolín-Díaz, Juan & Petrella, Ivan & Rubio-Ramírez, Juan F., 2021. "Structural scenario analysis with SVARs," Journal of Monetary Economics, Elsevier, vol. 117(C), pages 798-815.
    16. 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.
    17. Naubert, Christopher, 2019. "Monetary Policy and Redistribution: A Look under the Hatch with TANK," CEPR Discussion Papers 14159, C.E.P.R. Discussion Papers.
    18. Marco Del Negro & Michele Lenza & Giorgio E. Primiceri & Andrea Tambalotti, 2020. "What's Up with the Phillips Curve?," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 51(1 (Spring), pages 301-373.
    19. S. Sirakaya & Stephen Turnovsky & M. Alemdar, 2006. "Feedback Approximation of the Stochastic Growth Model by Genetic Neural Networks," Computational Economics, Springer;Society for Computational Economics, vol. 27(2), pages 185-206, May.
    20. Carlo A. Favero, 2007. "Model Evaluation in Macroeconometrics: from early empirical macroeconomic models to DSGE models," Working Papers 327, IGIER (Innocenzo Gasparini Institute for Economic Research), Bocconi University.

    More about this item

    Keywords

    interest rates; monetary policy; shocks; Keynesian; stochastic;
    All these keywords.

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C61 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Optimization Techniques; Programming Models; Dynamic Analysis
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • E37 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Forecasting and Simulation: Models and Applications
    • E47 - Macroeconomics and Monetary Economics - - Money and Interest Rates - - - Forecasting and Simulation: Models and Applications

    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:nzt:nztwps:22/02. 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: CSS Web and Publishing, The Treasury (email available below). General contact details of provider: https://edirc.repec.org/data/tregvnz.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.