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

从单变量转换为多变量的MCMC采样器:R软件包MfUSampler

Multivariate-from-Univariate MCMC Sampler: R Package MfUSampler

Alireza S. Mahani, Mansour T. A. Sharabiani

摘要:

R软件包MfUSApler提供蒙特卡罗马尔可夫链机制,用于使用单变量采样算法(如切片采样器和自适应拒绝采样器)从多变量概率分布生成样本。采样器函数执行单变量采样步骤的完整循环,每次一个坐标。在每个步骤中,使用针对其他坐标获得的最新样本值来形成条件分布。这个概念是吉布斯抽样的延伸,其中每一步涉及的不是来自条件分布的独立样本,而是条件分布不变的马尔可夫转换。该软件依赖于条件分布与联合分布的比例来实现用于产生条件的薄包装器。示例说明了基本用法以及提高性能的方法。通过封装多变量从单变量逻辑,MfUSApler提供了一个可靠的库,用于自定义贝叶斯模型的快速原型设计,同时允许增量性能优化,例如利用共轭性,条件独立性和将函数求值移植到编译语言。

英文摘要:

The R package MfUSampler provides Monte Carlo Markov Chain machinery for generating samples from multivariate probability distributions using univariate sampling algorithms such as Slice Sampler and Adaptive Rejection Sampler. The sampler function performs a full cycle of univariate sampling steps, one coordinate at a time. In each step, the latest sample values obtained for other coordinates are used to form the conditional distributions. The concept is an extension of Gibbs sampling where each step involves, not an independent sample from the conditional distribution, but a Markov transition for which the conditional distribution is invariant. The software relies on proportionality of conditional distributions to the joint distribution to implement a thin wrapper for producing conditionals. Examples illustrate basic usage as well as methods for improving performance. By encapsulating the multivariate-from-univariate logic, MfUSampler provides a reliable library for rapid prototyping of custom Bayesian models while allowing for incremental performance optimizations such as utilization of conjugacy, conditional independence, and porting function evaluations to compiled languages.

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

↑