IDEAS home Printed from https://ideas.repec.org/p/eag/rereps/36.html
   My bibliography  Save this paper

Numerical Methods for Macroeconomists

Author

Abstract

This primer will cover some of the numerical methods that are used in modern macroeconomics. You will learn how to: (1) solve nonlinear equations via bisection and Newton's method; (2) compute maximization problems via golden section search, discretization, and the particle swarm algorithm; (3) simulate difference equations using the extended path and multiple shooting algorithms; (4) differentiate and integrate functions numerically; (5) conduct Monte Carlo simulations by drawing random variables; (6) construct Markov chains; (7) interpolate functions and smooth data; (8) compute dynamic programming problems; (9) solve for policy functions using the Coleman, endogenous grid, and parameterized expectation algorithms; (10) study the Aiyagari heterogeneous agent model with and without aggregate uncertainty. This will be done while studying economic problems, such as the determination of labor supply, economic growth, and business cycle analysis. Calculus is an integral part of the primer and some elementary probability theory will be drawn upon. The MATLAB programming language will be used. It is time to move into the modern age and learn these techniques. Besides, using computers to solve economic models is fun. The primer is self contained so little prior knowledge is required. This is work in progress. Comments are welcome.

Suggested Citation

  • Jeremy Greenwood & Ricardo Marto, 2022. "Numerical Methods for Macroeconomists," Economie d'Avant Garde Research Reports 36, Economie d'Avant Garde.
  • Handle: RePEc:eag:rereps:36
    as

    Download full text from publisher

    File URL: http://www.jeremygreenwood.net/Book/NM4M.pdf
    File Function: full text
    Download Restriction: None
    ---><---

    References listed on IDEAS

    as
    1. 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.
    2. William A. Brock & Leonard J. Mirman, 2001. "Optimal Economic Growth And Uncertainty: The Discounted Case," Chapters, in: W. D. Dechert (ed.), Growth Theory, Nonlinear Dynamics and Economic Modelling, chapter 1, pages 3-37, Edward Elgar Publishing.
    3. Jeremy Greenwood & Karen A. Kopecky, 2013. "Measuring The Welfare Gain From Personal Computers," Economic Inquiry, Western Economic Association International, vol. 51(1), pages 336-347, January.
    4. Kenneth L. Judd & Lilia Maliar & Serguei Maliar, 2011. "Numerically stable and accurate stochastic simulation approaches for solving dynamic economic models," Quantitative Economics, Econometric Society, vol. 2(2), pages 173-210, July.
    5. 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.
    6. J. R. Hicks, 1941. "The Rehabilitation of Consumers' Surplus," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 8(2), pages 108-116.
    7. Gary D. Hansen & Edward C. Prescott, 2002. "Malthus to Solow," American Economic Review, American Economic Association, vol. 92(4), pages 1205-1217, September.
    8. 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.
    9. Coleman, Wilbur John, II, 1991. "Equilibrium in a Production Economy with an Income Tax," Econometrica, Econometric Society, vol. 59(4), pages 1091-1104, July.
    10. Greenwood, Jeremy & Hercowitz, Zvi & Huffman, Gregory W, 1988. "Investment, Capacity Utilization, and the Real Business Cycle," American Economic Review, American Economic Association, vol. 78(3), pages 402-417, June.
    11. den Haan, Wouter J & Marcet, Albert, 1990. "Solving the Stochastic Growth Model by Parameterizing Expectations," Journal of Business & Economic Statistics, American Statistical Association, vol. 8(1), pages 31-34, January.
    12. Kydland, Finn E & Prescott, Edward C, 1982. "Time to Build and Aggregate Fluctuations," Econometrica, Econometric Society, vol. 50(6), pages 1345-1370, 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. 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.
    2. Serguei Maliar & John Taylor & Lilia Maliar, 2016. "The Impact of Alternative Transitions to Normalized Monetary Policy," 2016 Meeting Papers 794, Society for Economic Dynamics.
    3. Wouter J. Den Haan & Albert Marcet, 1994. "Accuracy in Simulations," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 61(1), pages 3-17.
    4. 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.
    5. 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.
    6. Nicholas Bloom & Max Floetotto & Nir Jaimovich & Itay Saporta†Eksten & Stephen J. Terry, 2018. "Really Uncertain Business Cycles," Econometrica, Econometric Society, vol. 86(3), pages 1031-1065, May.
    7. 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.
    8. Hull, Isaiah, 2015. "Approximate dynamic programming with post-decision states as a solution method for dynamic economic models," Journal of Economic Dynamics and Control, Elsevier, vol. 55(C), pages 57-70.
    9. 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.
    10. 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.
    11. Böhl, Gregor & Hommes, Cars H., 2021. "Rational vs. irrational beliefs in a complex world," IMFS Working Paper Series 156, Goethe University Frankfurt, Institute for Monetary and Financial Stability (IMFS).
    12. Arellano, Cristina & Maliar, Lilia & Maliar, Serguei & Tsyrennikov, Viktor, 2016. "Envelope condition method with an application to default risk models," Journal of Economic Dynamics and Control, Elsevier, vol. 69(C), pages 436-459.
    13. Ayse Kabukcuoglu & Enrique Martínez-García, 2016. "The Market Resources Method for Solving Dynamic Optimization Problems," Koç University-TUSIAD Economic Research Forum Working Papers 1607, Koc University-TUSIAD Economic Research Forum.
    14. Willi Semmler, 2011. "Asset Prices, Booms and Recessions," Springer Books, Springer, number 978-3-642-20680-1, June.
    15. Einarsson, Tor & Marquis, Milton H., 1998. "An RBC model with growth: the role of human capital," Journal of Economics and Business, Elsevier, vol. 50(5), pages 431-444, September.
    16. Liu, Xiying, 2015. "Optimal population and policy implications," ISU General Staff Papers 201501010800005546, Iowa State University, Department of Economics.
    17. King, Robert G. & Rebelo, Sergio T., 1999. "Resuscitating real business cycles," Handbook of Macroeconomics, in: J. B. Taylor & M. Woodford (ed.), Handbook of Macroeconomics, edition 1, volume 1, chapter 14, pages 927-1007, Elsevier.
    18. Christophe Gouel, 2013. "Comparing Numerical Methods for Solving the Competitive Storage Model," Computational Economics, Springer;Society for Computational Economics, vol. 41(2), pages 267-295, February.
    19. Valderrama, Diego, 2007. "Statistical nonlinearities in the business cycle: A challenge for the canonical RBC model," Journal of Economic Dynamics and Control, Elsevier, vol. 31(9), pages 2957-2983, September.
    20. Rahul Nath, 2018. "Flexible Labour, Income Effects, and Asset Prices," Economics Series Working Papers 851, University of Oxford, Department of Economics.

    More about this item

    Keywords

    Aiyagari model; calibration; Coleman algorithm; difference equations; dynamic programming; endogenous grid method; interpolating functions; linearization; Markov chains; maximization problems; Monte Carlo simulation; nonlinear equations; numerical differentiation and integration; parameterized expectations; random number generation;
    All these keywords.

    JEL classification:

    • E10 - Macroeconomics and Monetary Economics - - General Aggregative Models - - - General
    • 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:eag:rereps:36. 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: Jeremy Greenwood (email available below). General contact details of provider: http://www.jeremygreenwood.net/EAG.htm .

    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.