• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

一刀切并不适用:使用NIMBLE为层次模型定制马尔可夫链蒙特卡罗方法。

One size does not fit all: Customizing MCMC methods for hierarchical models using NIMBLE.

作者信息

Ponisio Lauren C, de Valpine Perry, Michaud Nicholas, Turek Daniel

机构信息

Department of Entomology University of California Riverside CA USA.

Department of Environmental Science, Policy, and Management University of California Berkeley CA USA.

出版信息

Ecol Evol. 2020 Feb 14;10(5):2385-2416. doi: 10.1002/ece3.6053. eCollection 2020 Mar.

DOI:10.1002/ece3.6053
PMID:32184989
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC7069319/
Abstract

Improved efficiency of Markov chain Monte Carlo facilitates all aspects of statistical analysis with Bayesian hierarchical models. Identifying strategies to improve MCMC performance is becoming increasingly crucial as the complexity of models, and the run times to fit them, increases. We evaluate different strategies for improving MCMC efficiency using the open-source software NIMBLE (R package nimble) using common ecological models of species occurrence and abundance as examples. We ask how MCMC efficiency depends on model formulation, model size, data, and sampling strategy. For multiseason and/or multispecies occupancy models and for N-mixture models, we compare the efficiency of sampling discrete latent states vs. integrating over them, including more vs. fewer hierarchical model components, and univariate vs. block-sampling methods. We include the common MCMC tool JAGS in comparisons. For simple models, there is little practical difference between computational approaches. As model complexity increases, there are strong interactions between model formulation and sampling strategy on MCMC efficiency. There is no one-size-fits-all best strategy, but rather problem-specific best strategies related to model structure and type. In all but the simplest cases, NIMBLE's default or customized performance achieves much higher efficiency than JAGS. In the two most complex examples, NIMBLE was 10-12 times more efficient than JAGS. We find NIMBLE is a valuable tool for many ecologists utilizing Bayesian inference, particularly for complex models where JAGS is prohibitively slow. Our results highlight the need for more guidelines and customizable approaches to fit hierarchical models to ensure practitioners can make the most of occupancy and other hierarchical models. By implementing model-generic MCMC procedures in open-source software, including the NIMBLE extensions for integrating over latent states (implemented in the R package nimbleEcology), we have made progress toward this aim.

摘要

马尔可夫链蒙特卡罗(Markov chain Monte Carlo, MCMC)效率的提高推动了贝叶斯分层模型在统计分析各方面的应用。随着模型复杂性及其拟合运行时间的增加,确定提高MCMC性能的策略变得愈发关键。我们以物种出现和丰度的常见生态模型为例,使用开源软件NIMBLE(R包nimble)评估提高MCMC效率的不同策略。我们探讨了MCMC效率如何依赖于模型构建、模型规模、数据和抽样策略。对于多季节和/或多物种占用模型以及N - 混合模型,我们比较了对离散潜在状态进行抽样与对其进行积分的效率,包括层次模型组件数量的多少,以及单变量抽样与块抽样方法。我们在比较中纳入了常用的MCMC工具JAGS。对于简单模型,计算方法之间几乎没有实际差异。随着模型复杂性的增加,模型构建和抽样策略对MCMC效率存在强烈的相互作用。不存在适用于所有情况的最佳策略,而是存在与模型结构和类型相关的特定问题的最佳策略。除了最简单的情况外,NIMBLE的默认或定制性能比JAGS的效率高得多。在两个最复杂的例子中,NIMBLE的效率比JAGS高10至12倍。我们发现NIMBLE对于许多使用贝叶斯推断的生态学家来说是一个有价值的工具,特别是对于JAGS运行速度过慢的复杂模型。我们的结果强调了需要更多的指导方针和可定制方法来拟合分层模型,以确保从业者能够充分利用占用模型和其他分层模型。通过在开源软件中实现通用模型的MCMC程序,包括用于对潜在状态进行积分的NIMBLE扩展(在R包nimbleEcology中实现),我们朝着这个目标取得了进展。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/8fe22a6394bf/ECE3-10-2385-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/a6b225f97dbd/ECE3-10-2385-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/5b3eb976a253/ECE3-10-2385-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/8bcf1bfa13f9/ECE3-10-2385-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/241e8ae243ed/ECE3-10-2385-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/61a8f28eb590/ECE3-10-2385-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/7f688b097fb7/ECE3-10-2385-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/b65aad95221c/ECE3-10-2385-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/da2342815cd5/ECE3-10-2385-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/9f697d8a3e25/ECE3-10-2385-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/a822c3239892/ECE3-10-2385-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/97c87ba0e181/ECE3-10-2385-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/8fe22a6394bf/ECE3-10-2385-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/a6b225f97dbd/ECE3-10-2385-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/5b3eb976a253/ECE3-10-2385-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/8bcf1bfa13f9/ECE3-10-2385-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/241e8ae243ed/ECE3-10-2385-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/61a8f28eb590/ECE3-10-2385-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/7f688b097fb7/ECE3-10-2385-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/b65aad95221c/ECE3-10-2385-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/da2342815cd5/ECE3-10-2385-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/9f697d8a3e25/ECE3-10-2385-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/a822c3239892/ECE3-10-2385-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/97c87ba0e181/ECE3-10-2385-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/39c8/7069319/8fe22a6394bf/ECE3-10-2385-g012.jpg

相似文献

1
One size does not fit all: Customizing MCMC methods for hierarchical models using NIMBLE.一刀切并不适用:使用NIMBLE为层次模型定制马尔可夫链蒙特卡罗方法。
Ecol Evol. 2020 Feb 14;10(5):2385-2416. doi: 10.1002/ece3.6053. eCollection 2020 Mar.
2
NIMBLE for Bayesian Disease Mapping.用于贝叶斯疾病绘图的NIMBLE
Spat Spatiotemporal Epidemiol. 2020 Jun;33:100323. doi: 10.1016/j.sste.2020.100323. Epub 2020 Jan 27.
3
A comparison of computational algorithms for the Bayesian analysis of clinical trials.临床试验贝叶斯分析的计算算法比较。
Clin Trials. 2024 Dec;21(6):689-700. doi: 10.1177/17407745241247334. Epub 2024 May 16.
4
Fitting mechanistic epidemic models to data: A comparison of simple Markov chain Monte Carlo approaches.拟合机械流行模型数据:简单马尔可夫链蒙特卡罗方法的比较。
Stat Methods Med Res. 2018 Jul;27(7):1956-1967. doi: 10.1177/0962280217747054.
5
JAGS model specification for spatiotemporal epidemiological modelling.JAGS 模型在时空流行病学建模中的规范。
Spat Spatiotemporal Epidemiol. 2024 Jun;49:100645. doi: 10.1016/j.sste.2024.100645. Epub 2024 Feb 28.
6
Ensuring identifiability in hierarchical mixed effects Bayesian models.在分层混合效应贝叶斯模型中确保可识别性。
Ecol Appl. 2020 Oct;30(7):e02159. doi: 10.1002/eap.2159. Epub 2020 Jun 15.
7
Practical guidelines for Bayesian phylogenetic inference using Markov chain Monte Carlo (MCMC).使用马尔可夫链蒙特卡罗(MCMC)进行贝叶斯系统发育推断的实用指南。
Open Res Eur. 2024 Aug 5;3:204. doi: 10.12688/openreseurope.16679.1. eCollection 2023.
8
Space-time interactions in Bayesian disease mapping with recent tools: Making things easier for practitioners.贝叶斯疾病制图中的时空交互作用:为实践者提供便利的新工具
Stat Methods Med Res. 2022 Jun;31(6):1085-1103. doi: 10.1177/09622802221079351. Epub 2022 Feb 18.
9
Markov chain Monte Carlo methods for hierarchical clustering of dynamic causal models.马尔可夫链蒙特卡罗方法在动态因果模型层次聚类中的应用。
Hum Brain Mapp. 2021 Jul;42(10):2973-2989. doi: 10.1002/hbm.25431. Epub 2021 Apr 7.
10
A method for efficiently sampling from distributions with correlated dimensions.一种高效抽样相关维度分布的方法。
Psychol Methods. 2013 Sep;18(3):368-84. doi: 10.1037/a0032222. Epub 2013 May 6.

引用本文的文献

1
Large-scale importance of bark beetle outbreaks for standing deadwood and woodpeckers.树皮甲虫爆发对枯立木和啄木鸟的大规模重要性。
J Anim Ecol. 2025 Jul 1. doi: 10.1111/1365-2656.70096.
2
Fast maximum likelihood estimation for general hierarchical models.一般分层模型的快速最大似然估计
J Appl Stat. 2024 Jul 24;52(3):595-623. doi: 10.1080/02664763.2024.2383284. eCollection 2025.
3
Using population register data and capture-recapture models to estimate over-coverage in Sweden.利用人口登记数据和捕获-再捕获模型估计瑞典的覆盖过度情况。

本文引用的文献

1
PyMC: a modern, and comprehensive probabilistic programming framework in Python.PyMC:Python 中一个现代且全面的概率编程框架。
PeerJ Comput Sci. 2023 Sep 1;9:e1516. doi: 10.7717/peerj-cs.1516. eCollection 2023.
2
Proximity of restored hedgerows interacts with local floral diversity and species' traits to shape long-term pollinator metacommunity dynamics.恢复的树篱的接近程度与当地的花卉多样性和物种特征相互作用,从而塑造长期传粉媒介的群落动态。
Ecol Lett. 2019 Jul;22(7):1048-1060. doi: 10.1111/ele.13257. Epub 2019 Apr 2.
3
Habitat restoration promotes pollinator persistence and colonization in intensively managed agriculture.
Sci Rep. 2024 Dec 18;14(1):30551. doi: 10.1038/s41598-024-82547-9.
4
Modeling the Effect of Cooperativity in Ternary Complex Formation and Targeted Protein Degradation Mediated by Heterobifunctional Degraders.模拟异双功能降解剂介导的三元复合物形成和靶向蛋白质降解中的协同效应。
ACS Bio Med Chem Au. 2022 Nov 15;3(1):74-86. doi: 10.1021/acsbiomedchemau.2c00037. eCollection 2023 Feb 15.
5
A generalized framework for estimating snakebite underreporting using statistical models: A study in Colombia.利用统计模型估算蛇伤漏报的通用框架:哥伦比亚的一项研究。
PLoS Negl Trop Dis. 2023 Feb 6;17(2):e0011117. doi: 10.1371/journal.pntd.0011117. eCollection 2023 Feb.
6
Pollinator interaction flexibility across scales affects patch colonization and occupancy.在不同尺度上,传粉者相互作用的灵活性会影响斑块的定殖和占据。
Nat Ecol Evol. 2021 Jun;5(6):787-793. doi: 10.1038/s41559-021-01434-y. Epub 2021 Apr 1.
栖息地恢复促进传粉者在集约化管理农业中的持续存在和定殖。
Ecol Appl. 2015 Sep;25(6):1557-65. doi: 10.1890/14-1863.1.
4
Automated Factor Slice Sampling.自动因子切片采样
J Comput Graph Stat. 2014;23(2):543-563. doi: 10.1080/10618600.2013.791193.
5
spBayes: An R Package for Univariate and Multivariate Hierarchical Point-referenced Spatial Models.spBayes:一个用于单变量和多变量分层点参照空间模型的R软件包。
J Stat Softw. 2007 Apr;19(4):1-24. doi: 10.18637/jss.v019.i04.
6
Regularization Paths for Generalized Linear Models via Coordinate Descent.基于坐标下降法的广义线性模型正则化路径
J Stat Softw. 2010;33(1):1-22.
7
Tigers on trails: occupancy modeling for cluster sampling.步道上的老虎:聚类抽样的占有模型。
Ecol Appl. 2010 Jul;20(5):1456-66. doi: 10.1890/09-0321.1.
8
The use of simple reparameterizations to improve the efficiency of Markov chain Monte Carlo estimation for multilevel models with applications to discrete time survival models.使用简单的重新参数化方法来提高马尔可夫链蒙特卡罗估计对于多级模型的效率,并应用于离散时间生存模型。
J R Stat Soc Ser A Stat Soc. 2009 Jun;172(3):579-598. doi: 10.1111/j.1467-985X.2009.00586.x.
9
Accounting for uncertainty in ecological analysis: the strengths and limitations of hierarchical statistical modeling.生态分析中的不确定性考量:分层统计建模的优势与局限
Ecol Appl. 2009 Apr;19(3):553-70. doi: 10.1890/07-0744.1.
10
A hierarchical model for spatial capture-recapture data.用于空间捕获-再捕获数据的分层模型。
Ecology. 2008 Aug;89(8):2281-9. doi: 10.1890/07-0601.1.