English

Parallel Statistical Computing with R: An Illustration on Two Architectures

Computation 2017-09-08 v2

Abstract

To harness the full benefit of new computing platforms, it is necessary to develop software with parallel computing capabilities. This is no less true for statisticians than for astrophysicists. The R programming language, which is perhaps the most popular software environment for statisticians today, has many packages available for parallel computing. Their diversity in approach can be difficult to navigate. Some have attempted to alleviate this problem by designing common interfaces. However, these approaches offer limited flexibility to the user; additionally, they often serve as poor abstractions to the reality of modern hardware, leading to poor performance. We give a short introduction to two basic parallel computing approaches that closely align with hardware reality, allow the user to understand its performance, and provide sufficient capability to fully utilize multicore and multinode environments. We illustrate both approaches by working through a simple example fitting a random forest model. Beginning with a serial algorithm, we derive two parallel versions. Our objective is to illustrate the use of multiple cores on a single processor and the use of multiple processors in a cluster computer. We discuss the differences between the two versions and how the underlying hardware is used in each case.

Keywords

Cite

@article{arxiv.1709.01195,
  title  = {Parallel Statistical Computing with R: An Illustration on Two Architectures},
  author = {George Ostrouchov and Wei-Chen Chen and Drew Schmidt},
  journal= {arXiv preprint arXiv:1709.01195},
  year   = {2017}
}

Comments

Presented at: International Statistical Institute 61st World Statistics Congress, Marrakech, Morocco, July 16-21, 2017

R2 v1 2026-06-22T21:33:01.465Z