arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1309.4402stat.CO
收藏

在R中进行并行和其他模拟变得容易:端到端研究

Parallel and other simulations in R made easy: An end-to-end study

Marius Hofert, Martin Mächler

摘要:

它展示了如何使用新的R软件包simsalapar = simulations simplified and launched parallel来设置、执行和分析大型仿真研究。模拟研究通常从确定研究所依赖的输入变量及其值的集合开始,例如样本量、维度、依赖类型和程度、估计方法等。计算需要这些变量的所有组合。如果按顺序进行这些计算太耗时,则可以对选择变量的所有组合应用并行计算。模拟研究的最终结果对象通常是一个数组。从这个数组中,可以导出汇总统计数据,并以(平面列联表或LATEX)表的形式呈现,或以(矩阵状)图的形式可视化。R包simsalapar提供了几个工具来实现上述任务。正确地处理错误和错误,各种播种方法可用,并测量运行时间。此外,还提供了通过表格或图形分析结果的工具。与R包或小插曲中通常存在的相当小的示例相反,给出了定量风险管理领域的端到端,不那么小的模拟问题。Simsalapar提出的概念和提供的解决方案可能会引起学生,研究人员和从业者的兴趣,作为在R中进行真实的大规模仿真研究的方法。此外,该包的开发揭示了对R本身的有用改进,这些改进在R 3.0.0中可用。

英文摘要:

It is shown how to set up, conduct, and analyze large simulation studies with the new R package simsalapar = simulations simplified and launched parallel. A simulation study typically starts with determining a collection of input variables and their values on which the study depends, such as sample sizes, dimensions, types and degrees of dependence, estimation methods, etc. Computations are desired for all com- binations of these variables. If conducting these computations sequentially is too time- consuming, parallel computing can be applied over all combinations of select variables. The final result object of a simulation study is typically an array. From this array, sum- mary statistics can be derived and presented in terms of (flat contingency or LATEX) tables or visualized in terms of (matrix-like) figures. The R package simsalapar provides several tools to achieve the above tasks. Warnings and errors are dealt with correctly, various seeding methods are available, and run time is measured. Furthermore, tools for analyzing the results via tables or graphics are pro- vided. In contrast to rather minimal examples typically found in R packages or vignettes, an end-to-end, not-so-minimal simulation problem from the realm of quantitative risk management is given. The concepts presented and solutions provided by simsalapar may be of interest to students, researchers, and practitioners as a how-to for conducting real- istic, large-scale simulation studies in R. Also, the development of the package revealed useful improvements to R itself, which are available in R 3.0.0.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑