IDEAS home Printed from https://ideas.repec.org/p/nbr/nberwo/20263.html

A Comparison of Programming Languages in Economics

Author

Listed:
  • S. Borağan Aruoba
  • Jesús Fernández-Villaverde

Abstract

We solve the stochastic neoclassical growth model, the workhorse of modern macroeconomics, using C++11, Fortran 2008, Java, Julia, Python, Matlab, Mathematica, and R. We implement the same algorithm, value function iteration with grid search, in each of the languages. We report the execution times of the codes in a Mac and in a Windows computer and briefly comment on the strengths and weaknesses of each language.

Suggested Citation

  • S. Borağan Aruoba & Jesús Fernández-Villaverde, 2014. "A Comparison of Programming Languages in Economics," NBER Working Papers 20263, National Bureau of Economic Research, Inc.
  • Handle: RePEc:nbr:nberwo:20263
    Note: EFG
    as

    Download full text from publisher

    File URL: http://www.nber.org/papers/w20263.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tauchen, George, 1986. "Finite state markov-chain approximations to univariate and vector autoregressions," Economics Letters, Elsevier, vol. 20(2), pages 177-181.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Paulo Garrido & Pedro Campos & André Dias, 2015. "Balance Sheet Analysis Of Credit And Debt Networks," Advances in Complex Systems (ACS), World Scientific Publishing Co. Pte. Ltd., vol. 18(05n06), pages 1-18, August.
    2. Gintaras Palubeckis, 2020. "An Approach Integrating Simulated Annealing and Variable Neighborhood Search for the Bidirectional Loop Layout Problem," Mathematics, MDPI, vol. 9(1), pages 1-30, December.
    3. Radu Tunaru, 2015. "Model Risk in Financial Markets:From Financial Engineering to Risk Management," World Scientific Books, World Scientific Publishing Co. Pte. Ltd., number 9524.
    4. Thomas Kirschstein & Christian Bierwirth, 2018. "The selective Traveling Salesman Problem with emission allocation rules," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 40(1), pages 97-124, January.

    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. Pratap, Sangeeta & Urrutia, Carlos, 2004. "Firm dynamics, investment and debt portfolio: balance sheet effects of the Mexican crisis of 1994," Journal of Development Economics, Elsevier, vol. 75(2), pages 535-563, December.
    2. Alisdair McKay, 2011. "Household Saving Behavior and Social Security Privatization," Boston University - Department of Economics - Working Papers Series WP2011-027, Boston University - Department of Economics.
    3. Storesletten, Kjetil & Zhao, Bo & Zilibotti, Fabrizio, 2020. "Business Cycle during Structural Change: Arthur Lewis’ Theory from a Neoclassical Perspective," CEPR Discussion Papers 14964, Centre for Economic Policy Research.
    4. Falko Juessen & Andreas Schabert, 2013. "Fiscal Policy, Sovereign Default, and Bailouts," Working Paper Series in Economics 67, University of Cologne, Department of Economics.
    5. Alfaro, Laura & Kanczuk, Fabio, 2009. "Optimal reserve management and sovereign debt," Journal of International Economics, Elsevier, vol. 77(1), pages 23-36, February.
    6. 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.
    7. Greenwood, Jeremy & Guner, Nezih & Santos, Cezar & Kocharakov, Georgi, 2015. "Technology and the Changing Family: A Unified Model of Marriage, Divorce, Educational Attainment and Married Female Labor-Force," CEPR Discussion Papers 10434, Centre for Economic Policy Research.
    8. Marta González-Torrabadella & Josep Pijoan-Mas, 2006. "Flat tax reforms: a general equilibrium evaluation for Spain," Investigaciones Economicas, Fundación SEPI, vol. 30(2), pages 317-351, May.
    9. Facundo Piguillem & Anderson Schneider, 2013. "Heterogeneous Labor Skills, The Median Voter and Labor Taxes," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 16(2), pages 332-349, April.
    10. Michael E. Waugh, 2017. "Firm Dynamics and Immigration: The Case of High-Skilled Immigration," NBER Chapters, in: High-Skilled Migration to the United States and Its Economic Consequences, pages 205-238, National Bureau of Economic Research, Inc.
    11. Bucciol, Alessandro & Cavalli, Laura & Fedotenkov, Igor & Pertile, Paolo & Polin, Veronica & Sartor, Nicola & Sommacal, Alessandro, 2017. "A large scale OLG model for the analysis of the redistributive effects of policy reforms," European Journal of Political Economy, Elsevier, vol. 48(C), pages 104-127.
    12. Matthijs Lof, 2014. "GMM Estimation with Non-causal Instruments under Rational Expectations," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 76(2), pages 279-286, April.
    13. Tanaka, Ken'ichiro & Toda, Alexis Akira, 2015. "Discretizing Distributions with Exact Moments: Error Estimate and Convergence Analysis," University of California at San Diego, Economics Working Paper Series qt7g23r5kh, Department of Economics, UC San Diego.
    14. Zheng Liu & Daniel F. Waggoner & Tao Zha, 2009. "Sources of the Great Moderation: shocks, frictions, or monetary policy?," FRB Atlanta Working Paper 2009-03, Federal Reserve Bank of Atlanta.
    15. Constantine Angyridis & Brennan Scott Thompson, 2016. "Negative income taxes, inequality and poverty," Canadian Journal of Economics, Canadian Economics Association, vol. 49(3), pages 1016-1034, August.
    16. Stephen J. Terry, 2017. "Alternative Methods for Solving Heterogeneous Firm Models," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 49(6), pages 1081-1111, September.
    17. Adrien Auclert, 2019. "Monetary Policy and the Redistribution Channel," American Economic Review, American Economic Association, vol. 109(6), pages 2333-2367, June.
    18. Mavropoulos, Antonios & Xiong, Qizhou, 2019. "Housing consumption and macroprudential policies in Europe: An ex ante evaluation," IWH Discussion Papers 17/2018, Halle Institute for Economic Research (IWH), revised 2019.
    19. Takefumi Yamazaki, 2018. "Accuracy and speed of the solution methods for sovereign default models: The stable performance of the Tauchen method and cubic spline interpolation," Public Policy Review, Policy Research Institute, Ministry of Finance Japan, vol. 14(4), pages 641-662, July.
    20. Ogawa, Toshiaki, 2022. "Welfare implications of bank capital requirements under dynamic default decisions," Journal of Economic Dynamics and Control, Elsevier, vol. 138(C).

    More about this item

    JEL classification:

    • C0 - Mathematical and Quantitative Methods - - General
    • E0 - Macroeconomics and Monetary Economics - - General

    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:nbr:nberwo:20263. 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: the person in charge (email available below). General contact details of provider: https://edirc.repec.org/data/nberrus.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.