IDEAS home Printed from https://ideas.repec.org/p/zbw/imfswp/279899.html
   My bibliography  Save this paper

Numerical stability analysis of linear DSGE models: Backward errors, forward errors and condition numbers

Author

Listed:
  • Meyer-Gohde, Alexander

Abstract

This paper develops and implements a backward and forward error analysis of and condition numbers for the numerical stability of the solutions of linear dynamic stochastic general equilibrium (DSGE) models. Comparing seven different solution methods from the literature, I demonstrate an economically significant loss of accuracy specifically in standard, generalized Schur (or QZ) decomposition based solutions methods resulting from large backward errors in solving the associated matrix quadratic problem. This is illustrated in the monetary macro model of Smets and Wouters (2007) and two productionbased asset pricing models, a simple model of external habits with a readily available symbolic solution and the model of Jermann (1998) that lacks such a symbolic solution - QZ-based numerical solutions miss the equity premium by up to several annualized percentage points for parameterizations that either match the chosen calibration targets or are nearby to the parameterization in the literature. While the numerical solution methods from the literature failed to give any indication of these potential errors, easily implementable backward-error metrics and condition numbers are shown to successfully warn of such potential inaccuracies. The analysis is then performed for a database of roughly 100 DSGE models from the literature and a large set of draws from the model of Smets and Wouters (2007). While economically relevant errors do not appear pervasive from these latter applications, accuracies that differ by several orders of magnitude persist.

Suggested Citation

  • Meyer-Gohde, Alexander, 2023. "Numerical stability analysis of linear DSGE models: Backward errors, forward errors and condition numbers," IMFS Working Paper Series 193, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
  • Handle: RePEc:zbw:imfswp:279899
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/279899/1/1870953207.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. 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.
    2. Pesaran, M. Hashem, 2015. "Time Series and Panel Data Econometrics," OUP Catalogue, Oxford University Press, number 9780198759980.
    3. Villemot, Sébastien, 2011. "Solving rational expectations models at first order: what Dynare does," Dynare Working Papers 2, CEPREMAP.
    4. Wieland, Volker & Cwik, Tobias & Müller, Gernot J. & Schmidt, Sebastian & Wolters, Maik, 2012. "A new comparative approach to macroeconomic modeling and policy analysis," Journal of Economic Behavior & Organization, Elsevier, vol. 83(3), pages 523-541.
    5. Martin Lettau, 2003. "Inspecting The Mechanism: Closed-Form Solutions For Asset Prices In Real Business Cycle Models," Economic Journal, Royal Economic Society, vol. 113(489), pages 550-575, July.
    6. Hansen, Lars Peter & Singleton, Kenneth J, 1983. "Stochastic Consumption, Risk Aversion, and the Temporal Behavior of Asset Returns," Journal of Political Economy, University of Chicago Press, vol. 91(2), pages 249-265, April.
    7. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, December.
    8. Gary Anderson, 2008. "Solving Linear Rational Expectations Models: A Horse Race," Computational Economics, Springer;Society for Computational Economics, vol. 31(2), pages 95-113, March.
    9. Meyer-Gohde, Alexander & Saecker, Johanna, 2024. "Solving linear DSGE models with Newton methods," Economic Modelling, Elsevier, vol. 133(C).
    10. Blanchard, Olivier J, 1979. "Backward and Forward Solutions for Economies with Rational Expectations," American Economic Review, American Economic Association, vol. 69(2), pages 114-118, May.
    11. Kydland, Finn E & Prescott, Edward C, 1982. "Time to Build and Aggregate Fluctuations," Econometrica, Econometric Society, vol. 50(6), pages 1345-1370, November.
    12. Binder, Michael & Pesaran, M. Hashem, 1997. "Multivariate Linear Rational Expectations Models," Econometric Theory, Cambridge University Press, vol. 13(6), pages 877-888, December.
    13. John Y. Campbell, Robert J. Shiller, 1988. "The Dividend-Price Ratio and Expectations of Future Dividends and Discount Factors," Review of Financial Studies, Society for Financial Studies, vol. 1(3), pages 195-228.
    14. Constantinides, George M, 1990. "Habit Formation: A Resolution of the Equity Premium Puzzle," Journal of Political Economy, University of Chicago Press, vol. 98(3), pages 519-543, June.
    15. Spanos, Aris & McGuirk, Anya, 2002. "The problem of near-multicollinearity revisited: erratic vs systematic volatility," Journal of Econometrics, Elsevier, vol. 108(2), pages 365-393, June.
    16. Rajnish Mehra, 2003. "The Equity Premium: Why is it a Puzzle?," NBER Working Papers 9512, National Bureau of Economic Research, Inc.
    17. Blanchard, Olivier Jean & Kahn, Charles M, 1980. "The Solution of Linear Difference Models under Rational Expectations," Econometrica, Econometric Society, vol. 48(5), pages 1305-1311, July.
    18. Anderson, Gary & Moore, George, 1985. "A linear algebraic procedure for solving linear perfect foresight models," Economics Letters, Elsevier, vol. 17(3), pages 247-252.
    19. Heiberger, Christopher & Klarl, Torben & Maußner, Alfred, 2015. "On the uniqueness of solutions to rational expectations models," Economics Letters, Elsevier, vol. 128(C), pages 14-16.
    20. Meyer-Gohde, Alexander, 2023. "Solving linear DSGE models with Bernoulli iterations," IMFS Working Paper Series 182, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
    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. Meyer-Gohde, Alexander, 2021. "On the accuracy of linear DSGE solution methods and the consequences for log-normal asset pricing," IMFS Working Paper Series 154, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
    2. Huber, Johannes & Meyer-Gohde, Alexander & Saecker, Johanna, 2023. "Solving linear DSGE models with structure-preserving doubling methods," IMFS Working Paper Series 195, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
    3. Meyer-Gohde, Alexander, 2023. "Solving linear DSGE models with Bernoulli iterations," IMFS Working Paper Series 182, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
    4. Meyer-Gohde, Alexander & Saecker, Johanna, 2024. "Solving linear DSGE models with Newton methods," Economic Modelling, Elsevier, vol. 133(C).
    5. Lan, Hong & Meyer-Gohde, Alexander, 2014. "Solvability of perturbation solutions in DSGE models," Journal of Economic Dynamics and Control, Elsevier, vol. 45(C), pages 366-388.
    6. Alali, Walid Y., 2009. "Solution Strategies of Dynamic Stochastic General Equilibrium (DSGE) models," EconStor Preprints 269876, ZBW - Leibniz Information Centre for Economics.
    7. Tan, Fei & Walker, Todd B., 2015. "Solving generalized multivariate linear rational expectations models," Journal of Economic Dynamics and Control, Elsevier, vol. 60(C), pages 95-111.
    8. Alali, Walid Y., 2009. "Solution Strategies of Dynamic Stochastic General Equilibrium (DSGE) models," MPRA Paper 116480, University Library of Munich, Germany.
    9. Sungbae An & Frank Schorfheide, 2007. "Bayesian Analysis of DSGE Models," Econometric Reviews, Taylor & Francis Journals, vol. 26(2-4), pages 113-172.
    10. Roelof Salomons, 2008. "A Theoretical And Practical Perspective On The Equity Risk Premium," Journal of Economic Surveys, Wiley Blackwell, vol. 22(2), pages 299-329, April.
    11. Schmidt, Sebastian & Wieland, Volker, 2013. "The New Keynesian Approach to Dynamic General Equilibrium Modeling: Models, Methods and Macroeconomic Policy Evaluation," Handbook of Computable General Equilibrium Modeling, in: Peter B. Dixon & Dale Jorgenson (ed.), Handbook of Computable General Equilibrium Modeling, edition 1, volume 1, chapter 0, pages 1439-1512, Elsevier.
    12. Miroljub Labus & Milica Labus, 2019. "Monetary Transmission Channels in DSGE Models: Decomposition of Impulse Response Functions Approach," Computational Economics, Springer;Society for Computational Economics, vol. 53(1), pages 27-50, January.
    13. Lindé, Jesper & Smets, Frank & Wouters, Rafael, 2016. "Challenges for Central Banks´ Macro Models," Working Paper Series 323, Sveriges Riksbank (Central Bank of Sweden).
    14. Andrei Polbin & Sergey Drobyshevsky, 2014. "Developing a Dynamic Stochastic Model of General Equilibrium for the Russian Economy," Research Paper Series, Gaidar Institute for Economic Policy, issue 166P, pages 156-156.
    15. Ajevskis Viktors, 2017. "Semi-global solutions to DSGE models: perturbation around a deterministic path," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 21(2), pages 1-28, April.
    16. Warne, Anders & Coenen, Günter & Christoffel, Kai, 2010. "Forecasting with DSGE models," Working Paper Series 1185, European Central Bank.
    17. Lan, Hong & Meyer-Gohde, Alexander, 2012. "Existence and Uniqueness of Perturbation Solutions in DSGE Models," Dynare Working Papers 14, CEPREMAP.
    18. 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.
    19. 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.
    20. Viktors Ajevskis, 2019. "Generalised Impulse Response Function as a Perturbation of a Global Solution to DSGE Models," Working Papers 2019/04, Latvijas Banka.

    More about this item

    Keywords

    Numerical accuracy; DSGE; Solution methods; Condition number; Backward error; Forward error;
    All these keywords.

    JEL classification:

    • 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
    • E17 - Macroeconomics and Monetary Economics - - General Aggregative Models - - - 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:zbw:imfswp:279899. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/hoffmde.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.