Bambi: A simple interface for fitting Bayesian linear models in Python

Tomás Capretto, Camen Piho, Ravin Kumar, Jacob Westfall, Tal Yarkoni +1 more
12/19/2020
151 citations
stat.CO
bayesian

Official code: bambinos/bambi (1,310 stars, Python, MIT, last commit 2026-11-12). 1 more implementation below.

Abstract

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.

Show full abstract

Here we introduce an open source Python package named Bambi (BAyesian Model Building Interface) that is built on top of the PyMC 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 R. 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.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
bambinos/bambiOfficial1,310PythonMIT2026-11-12
bambinos/paperOfficial2Jupyter Notebook–2022-05-25
bambinos/bambiOfficial100%
MIT

BAyesian Model-Building Interface (Bambi) in Python.

1,310159PythonMay 16, 20162 weeks agoMIT
bayesian-inferencebayesian-statisticspythonregression-modelsstatistical-analysis+1 more
bambinos/paperOfficial100%

Code for Bambi: A simple interface for fitting Bayesian linear models in Python

20Jupyter NotebookAug 20, 20214 years ago

Similar Papers

Cite this paper

@article{capretto2020bambi,
  title  = {Bambi: A simple interface for fitting Bayesian linear models in Python},
  author = {Tomás Capretto and Camen Piho and Ravin Kumar and Jacob Westfall and Tal Yarkoni and Osvaldo A. Martin},
  year   = {2020},
  eprint = {2012.10754},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.10754}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.10754.svg)](https://codeofpaper.com/paper/2012.10754)

Discussion