4.5 Article

Programming With Models: Writing Statistical Algorithms for General Model Structures With NIMBLE

期刊

出版社

TAYLOR & FRANCIS INC
DOI: 10.1080/10618600.2016.1172487

关键词

Domain-specific language; Hierarchical models; MCEM; MCMC; Probabilistic programming; R

资金

  1. U.S. National Science Foundation [DBI-1147230]
  2. Berkeley Institute for Data Science
  3. Div Of Biological Infrastructure
  4. Direct For Biological Sciences [1147230] Funding Source: National Science Foundation
  5. Office of Advanced Cyberinfrastructure (OAC)
  6. Direct For Computer & Info Scie & Enginr [1535191] Funding Source: National Science Foundation

向作者/读者索取更多资源

We describe NIMBLE, a system for programming statistical algorithms for general model structures within R. NIMBLE is designed to meet three challenges: flexible model specification, a language for programming algorithms that can use different models, and a balance between high-level programmability and execution efficiency. For model specification, NIMBLE extends the BUGS language and creates model objects, which can manipulate variables, calculate log probability values, generate simulations, and query the relationships among variables. For algorithm programming, NIMBLE provides functions that operate with model objects using two stages of evaluation. The first stage allows specialization of a function to a particular model and/or nodes, such as creating a Metropolis-Hastings sampler for a particular block of nodes. The second stage allows repeated execution of computations using the results of the first stage. To achieve efficient second-stage computation, NIMBLE compiles models and functions via C++, using the Eigen library for linear algebra, and provides the user with an interface to compiled objects. The NIMBLE language represents a compilable domain-specific language (DSL) embedded within R. This article provides an overview of the design and rationale for NIMBLE along with illustrative examples including importance sampling, Markov chain Monte Carlo (MCMC) and Monte Carlo expectation maximization (MCEM). Supplementary materials for this article are available online.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.5
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据