IDEAS home Printed from https://ideas.repec.org/p/nbr/nberwo/20263.html
   My bibliography  Save this paper

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.
    2. Unknown, 1986. "Letters," Choices: The Magazine of Food, Farm, and Resource Issues, Agricultural and Applied Economics Association, vol. 1(4), pages 1-9.
    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, December.
    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. Laczó, Sarolta & Rossi, Raffaele, 2020. "Time-consistent consumption taxation," Journal of Monetary Economics, Elsevier, vol. 114(C), pages 194-220.
    2. 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.
    3. D’Erasmo, P. & Mendoza, E.G. & Zhang, J., 2016. "What is a Sustainable Public Debt?," Handbook of Macroeconomics, in: J. B. Taylor & Harald Uhlig (ed.), Handbook of Macroeconomics, edition 1, volume 2, chapter 0, pages 2493-2597, Elsevier.
    4. Matteo Iacoviello, 2008. "Household Debt and Income Inequality, 1963–2003," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 40(5), pages 929-965, August.
    5. 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.
    6. Martin, Fernando M., 2015. "Debt, inflation and central bank independence," European Economic Review, Elsevier, vol. 79(C), pages 129-150.
    7. Alfaro, Laura & Kanczuk, Fabio, 2009. "Optimal reserve management and sovereign debt," Journal of International Economics, Elsevier, vol. 77(1), pages 23-36, February.
    8. Jason Matthew DeBacker, 2015. "Flip‐Flopping: Ideological Adjustment Costs In The United States Senate," Economic Inquiry, Western Economic Association International, vol. 53(1), pages 108-128, January.
    9. 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.
    10. 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, C.E.P.R. Discussion Papers.
    11. 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.
    12. 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.
    13. 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.
    14. Daphne Chen & Shi Qi & Don Schlagenhauf, 2018. "Corporate Income Tax, Legal Form of Organization, and Employment," American Economic Journal: Macroeconomics, American Economic Association, vol. 10(4), pages 270-304, October.
    15. 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.
    16. Andrés Erosa & Luisa Fuster & Gueorgui Kambourov, 2016. "Towards a Micro-Founded Theory of Aggregate Labour Supply," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 83(3), pages 1001-1039.
    17. Stéphane Dupraz & Emi Nakamura & Jón Steinsson, 2019. "A Plucking Model of Business Cycles," NBER Working Papers 26351, National Bureau of Economic Research, Inc.
    18. Andrew Foerster & Juan F. Rubio‐Ramírez & Daniel F. Waggoner & Tao Zha, 2016. "Perturbation methods for Markov‐switching dynamic stochastic general equilibrium models," Quantitative Economics, Econometric Society, vol. 7(2), pages 637-669, July.
    19. Michael Haliassos & Alexander Michaelides, 2003. "Portfolio Choice and Liquidity Constraints," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 44(1), pages 143-177, February.
    20. 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.

    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.