DNest4: Diffusive Nested Sampling in C plus plus and Python']Python

被引:33
作者
Brewer, Brendon J. [1 ]
Foreman-Mackey, Daniel [2 ]
机构
[1] Univ Auckland, Auckland, New Zealand
[2] Univ Washington, Flatiron Inst, Seattle, WA 98195 USA
来源
JOURNAL OF STATISTICAL SOFTWARE | 2018年 / 86卷 / 07期
关键词
Bayesian inference; Markov chain Monte Carlo; Metropolis algorithm; Bayesian computation; nested sampling; C++11; !text type='Python']Python[!/text; BAYESIAN-INFERENCE; EFFICIENT; COMPUTATION;
D O I
10.18637/jss.v086.i07
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In probabilistic (Bayesian) inferences, we typically want to compute properties of the posterior distribution, describing knowledge of unknown quantities in the context of a particular dataset and the assumed prior information. The marginal likelihood, also known as the "evidence", is a key quantity in Bayesian model selection. The diffusive nested sampling algorithm, a variant of nested sampling, is a powerful tool for generating posterior samples and estimating marginal likelihoods. It is effective at solving complex problems including many where the posterior distribution is multimodal or has strong dependencies between variables. DNest4 is an open source (MIT licensed), multi-threaded implementation of this algorithm in C++11, along with associated utilities including: (i) 'RJObject', a class template for finite mixture models; and (ii) a Python package allowing basic use without C++ coding. In this paper we demonstrate DNest4 usage through examples including simple Bayesian data analysis, finite mixture models, and approximate Bayesian computation.
引用
收藏
页码:1 / 33
页数:33
相关论文
共 32 条
[1]  
[Anonymous], US GNU COMP COLL
[2]  
[Anonymous], PROCEEDINGS OF THE 3
[3]  
[Anonymous], KENDALLS ADVANCED TH
[4]  
[Anonymous], ARXIV 1509 02230
[5]   Determining pressure-temperature phase diagrams of materials [J].
Baldock, Robert J. N. ;
Partay, Livia B. ;
Bartok, Albert P. ;
Payne, Michael C. ;
Csanyi, Gabor .
PHYSICAL REVIEW B, 2016, 93 (17)
[6]   Cython: The Best of Both Worlds [J].
Behnel, Stefan ;
Bradshaw, Robert ;
Citro, Craig ;
Dalcin, Lisandro ;
Seljebotn, Dag Sverre ;
Smith, Kurt .
COMPUTING IN SCIENCE & ENGINEERING, 2011, 13 (02) :31-39
[7]  
Brewer B. J., 2014, ARXIV14113921
[8]   Fast Bayesian inference for exoplanet discovery in radial velocity data [J].
Brewer, Brendon J. ;
Donovan, Courtney P. .
MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2015, 448 (04) :3206-3214
[9]   Diffusive nested sampling [J].
Brewer, Brendon J. ;
Partay, Livia B. ;
Csanyi, Gabor .
STATISTICS AND COMPUTING, 2011, 21 (04) :649-656
[10]   Stan: A Probabilistic Programming Language [J].
Carpenter, Bob ;
Gelman, Andrew ;
Hoffman, Matthew D. ;
Lee, Daniel ;
Goodrich, Ben ;
Betancourt, Michael ;
Brubaker, Marcus A. ;
Guo, Jiqiang ;
Li, Peter ;
Riddell, Allen .
JOURNAL OF STATISTICAL SOFTWARE, 2017, 76 (01) :1-29