Abstract
This note explains how MPI may be used with the Julia programming language. An example of a simple Monte Carlo study is presented, with code. The code is intended to serve as a general purpose template for more relevant applications. A second example shows how the template code may be adapted to perform a Monte Carlo study of the properties of an approximate Bayesian computing estimator of actual research interest. All of the code is available at https://github.com/mcreel/JuliaMPIMonteCarlo.
Notes
See http://pkg.julialang.org/ for a list—there is even a preliminary Dynare package.
We make the unrealistic assumption that one never misses the target completely!
References
Aruoba, S.B., & Fernández Villaverde, J. (2014). A comparison of programming languages in economics. http://economics.sas.upenn.edu/~jesusfv/comparison_languages.
Creel, M. (2005). User-friendly parallel computations with econometric examples. Computational Economics, 26, 107–128.
Creel, M., & Goffe, W. L. (2008). Multi-core CPUs, clusters, and grid computing: A tutorial. Computational Economics, 32, 353–382.
Creel, M., & Kristensen, D. (2012). Estimation of dynamic latent variable models using simulated nonparametric moments. Econometrics Journal, 15, 490–515.
Creel, M., & Kristensen, D. (2013). Indirect likelihood inference (revised), UFAE and IAE Working Papers. http://pareto.uab.es/wp/2013/93113.
Creel, M., & Kristensen, D. (2015a). On selection of statistics for approximate Bayesian computing (or the method of simulated moments), Computational Statistics & Data Analysis. doi:10.1016/j.csda.2015.05.005.
Creel, M., & Kristensen, D. (2015b). ABC of SV: Limited information likelihood inference in stochastic volatility jump-diffusion models. Journal of Empirical Finance, 31, 85–108. doi:10.1016/j.jempfin.2015.01.002.
Doornik, J. A., Hendry, D. F., & Shephard, N. (2006). Parallel computation in econometrics: A simplified approach. In E. Kontoghiorgies (Ed.), Handbook on parallel computing and statistics (pp. 449–476). London: Chapman & Hall/ CRC.
Gallant, A.R., & Tauchen, G. (2013). EMM: a program for efficient method of moments estimation, v2.6, User’s Guide. http://www.aronaldg.org/webfiles/emm/emm.tar.
Racine, J. (2002). Parallel distributed kernel estimation. Computational Statistics & Data Analysis, 40, 293–302.
Sargent, T., & Stachurski, J. (2014). Quantitative economics. http://quant-econ.net/jl/index.html.
Setzler, B. (2014). Julia/Economics. http://juliaeconomics.com.
Swann, C. A. (2002). Maximum likelihood estimation using parallel computing: An introduction to MPI. Computational Economics, 19, 145–178.
Villemot, S. (2014). Julia introduction at CEF 2014. http://econforge.github.io/posts/2014/juil./28/cef2014-julia/ .
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Creel, M. A Note on Julia and MPI, with Code Examples. Comput Econ 48, 535–546 (2016). https://doi.org/10.1007/s10614-015-9516-5
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10614-015-9516-5