We found a match
Your institution may have access to this item. Find your institution then sign in to continue.
- Title
Matlab, Python, Julia: What to Choose in Economics?
- Authors
Coleman, Chase; Lyon, Spencer; Maliar, Lilia; Maliar, Serguei
- Abstract
We perform a comparison of Matlab, Python and Julia as programming languages to be used for implementing global nonlinear solution techniques. We consider two popular applications: a neoclassical growth model and a new Keynesian model. The goal of our analysis is twofold: First, it is aimed at helping researchers in economics choose the programming language that is best suited to their applications and, if needed, help them transit from one programming language to another. Second, our collections of routines can be viewed as a toolbox with a special emphasis on techniques for dealing with high dimensional economic problems. We provide the routines in the three languages for constructing random and quasi-random grids, low-cost monomial integration, various global solution methods, routines for checking the accuracy of the solutions as well as examples of parallelization. Our global solution methods are not only accurate but also fast. Solving a new Keynesian model with eight state variables only takes a few seconds, even in the presence of an active zero lower bound on nominal interest rates. This speed is important because it allows the model to be solved repeatedly as would be required for estimation.
- Subjects
PYTHON programming language; PROGRAMMING languages; INTEREST rates
- Publication
Computational Economics, 2021, Vol 58, Issue 4, p1263
- ISSN
0927-7099
- Publication type
Article
- DOI
10.1007/s10614-020-09983-3