arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1509.00660stat.CO
收藏

TMB:自动微分和拉普拉斯近似

TMB: Automatic Differentiation and Laplace Approximation

Kasper Kristensen, Anders Nielsen, Casper W. Berg, Hans Skaug, Brad Bell

摘要:

TMB是一个开源的R软件包,可以快速实现复杂的非线性随机效应(潜在变量)模型,其方式类似于已建立的AD模型构建器软件包(ADMB,admb-project.org)。此外,它还提供了方便的并行计算。用户将数据和随机效应的联合似然定义为C++模板函数,而所有其他操作都在R中完成;例如,读取数据。该软件包评估并最大化边际似然的拉普拉斯近似,其中随机效应自动积分出来。这种近似及其衍生物是使用联合似然的自动微分(最多三阶)获得的。对于具有许多随机效应(~10^6)和参数(~10^3)的问题,计算被设计为快速。使用ADMB和TMB的计算时间进行了比较,从简单的模型到大型空间模型,其中随机效应是高斯随机场的一套例子。加速范围从1.5到约100获得与大问题的增益增加。该软件包和示例可在http://tmb-project.org上获得。

英文摘要:

TMB is an open source R package that enables quick implementation of complex nonlinear random effect (latent variable) models in a manner similar to the established AD Model Builder package (ADMB, admb-project.org). In addition, it offers easy access to parallel computations. The user defines the joint likelihood for the data and the random effects as a C++ template function, while all the other operations are done in R; e.g., reading in the data. The package evaluates and maximizes the Laplace approximation of the marginal likelihood where the random effects are automatically integrated out. This approximation, and its derivatives, are obtained using automatic differentiation (up to order three) of the joint likelihood. The computations are designed to be fast for problems with many random effects (~10^6) and parameters (~10^3). Computation times using ADMB and TMB are compared on a suite of examples ranging from simple models to large spatial models where the random effects are a Gaussian random field. Speedups ranging from 1.5 to about 100 are obtained with increasing gains for large problems. The package and examples are available at http://tmb-project.org.

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

↑