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. 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. 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. 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. 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.
    6. Coleman, Wilbur John, II, 1991. "Equilibrium in a Production Economy with an Income Tax," Econometrica, Econometric Society, vol. 59(4), pages 1091-1104, July.
    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. 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.
    9. 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.
    10. William A. Brock & Leonard J. Mirman, 2001. "Optimal Economic Growth And Uncertainty: The Discounted Case," Chapters, in: W. Davis Dechert (ed.), Growth Theory, Nonlinear Dynamics and Economic Modelling, chapter 1, pages 3-37, Edward Elgar Publishing.
    11. J. R. Hicks, 1941. "The Rehabilitation of Consumers' Surplus," Review of Economic Studies, Oxford University Press, vol. 8(2), pages 108-116.
    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," Review of Economic Studies, Oxford University Press, vol. 61(1), pages 3-17.
    4. 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.
    5. Rahul Nath, 2018. "Flexible Labour, Income Effects, and Asset Prices," Economics Series Working Papers 851, University of Oxford, Department of Economics.
    6. 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.
    7. Lilia Maliar & Serguei Maliar, 2016. "Ruling Out Multiplicity of Smooth Equilibria in Dynamic Games: A Hyperbolic Discounting Example," Dynamic Games and Applications, Springer, vol. 6(2), pages 243-261, June.
    8. 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).
    9. 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.
    10. Albert Marcet, 1991. "Solving non-linear stochastic models by parameterizing expectations: An application to asset pricing with production," Economics Working Papers 5, Department of Economics and Business, Universitat Pompeu Fabra.
    11. Maliar, Lilia & Maliar, Serguei, 2022. "Deep learning classification: Modeling discrete labor choice," Journal of Economic Dynamics and Control, Elsevier, vol. 135(C).
    12. 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.
    13. 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.
    14. Maliar, Lilia & Maliar, Serguei & Winant, Pablo, 2021. "Deep learning for solving dynamic economic models," Journal of Monetary Economics, Elsevier, vol. 122(C), pages 76-101.
    15. Kevin J. Lansing, 2011. "Asset pricing with concentrated ownership of capital," Working Paper 2011/18, Norges Bank.
    16. Sebastian Dyrda & Marcelo Pedroni, 2015. "Optimal Fiscal Policy in a Model with Uninsurable Idiosyncratic Shocks," Working Papers tecipa-550, University of Toronto, Department of Economics.
    17. Pierre Mabille, 2019. "Aggregate Precautionary Savings Motives," 2019 Meeting Papers 344, Society for Economic Dynamics.
    18. 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.
    19. Pedro S. Amaral & Dean Corbae & Erwan Quintin, 2020. "Cash‐Flow Tranching And The Macroeconomy," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 61(4), pages 1815-1843, November.
    20. Adrien Auclert, 2019. "Monetary Policy and the Redistribution Channel," American Economic Review, American Economic Association, vol. 109(6), pages 2333-2367, June.

    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.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: http://www.jeremygreenwood.net/EAG.htm .

    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 hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.