The popularity of Bayesian statistical methods has increased dramatically in recent years across many research areas and industrial applications. This is the result of a variety of methodological advances with faster and cheaper hardware as well as the development of new software tools. Here we introduce an open source Python package named Bambi (BAyesian Model Building Interface) that is built on top of the PyMC3 probabilistic programming framework and the ArviZ package for exploratory analysis of Bayesian models. Bambi makes it easy to specify complex generalized linear hierarchical models using a formula notation similar to those found in the popular R packages lme4, nlme, rstanarm and brms. We demonstrate Bambi's versatility and ease of use with a few examples spanning a range of common statistical models including multiple regression, logistic regression, and mixed-effects modeling with crossed group specific effects. Additionally we discuss how automatic priors are constructed. Finally, we conclude with a discussion of our plans for the future development of Bambi.
翻译:近年来,贝叶斯统计方法在许多研究领域和工业应用领域获得的普及程度急剧提高,这是因为在方法上取得了各种进步,采用了更快捷、更廉价的硬件以及开发新的软件工具。在这里,我们引入了一个名为Bambi(Bayesian 模范建筑界面)的开放源代码 Python软件包,该软件包建在PyMC3概率性方案框架和ArviZ的巴伊西亚模型探索性分析包之上。Bambi使得使用类似于流行的R组合 lme4、 nlme、rstanarm 和 brms中的公式符号来说明复杂的通用线性等级模型变得容易。我们展示了Bambi的多功能和容易使用。我们用几个例子展示了一系列共同的统计模型,包括多重回归、物流回归和混合效应模型,以及跨组特定效应。此外,我们讨论了如何构建自动的前期。最后,我们讨论了Bambi的未来发展计划。