BAyesian Model-Building Interface in Python
Overview
Bambi is a high-level Bayesian model-building interface written in Python. It's built on top of the PyMC probabilistic programming framework, and is designed to make it extremely easy to fit mixed-effects models common in biology, social sciences, and other disciplines using a Bayesian approach.
Installation
Bambi requires Python 3.12 or later. Install the latest release with pip:
pip install bambi
With uv, add Bambi to your project:
uv add bambi
Or install it with conda:
conda install -c conda-forge bambi
To install the development version from GitHub:
pip install git+https://github.com/bambinos/bambi.git
Dependencies
Bambi requires working versions of ArviZ, formulae, NumPy, pandas and PyMC. Dependencies are listed in pyproject.toml and should all be installed by the Bambi installer; no further action should be required.
Documentation
Visit the Bambi documentation for guides, examples, and the API reference. Start with the Quickstart, explore the examples gallery, or consult the API reference.
Citation
If you use Bambi and want to cite it please use
@article{Capretto2022,
title={Bambi: A Simple Interface for Fitting {Bayesian} Linear Models in {Python}},
volume={103},
url={https://www.jstatsoft.org/index.php/jss/article/view/v103i15},
doi={10.18637/jss.v103.i15},
number={15},
journal={Journal of Statistical Software},
author={Capretto, Tom\'{a}s and Piho, Camen and Kumar, Ravin and Westfall, Jacob and Yarkoni, Tal and Martin, Osvaldo A},
year={2022},
pages={1–29}
}
Contributions
Bambi is a community project and welcomes contributions. Additional information can be found in the Contributing Readme.
For a list of contributors see the GitHub contributor page.
Donations
If you want to support Bambi financially, you can make a donation to our sister project PyMC.
Code of Conduct
Bambi wishes to maintain a positive community. Additional details can be found in the Code of Conduct
If you have experienced or witnessed any behaviour that violates our Code of Conduct, we encourage you to report it through this reporting form.
License
Metadata
Release files for bambi 0.22.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bambi-0.22.0.tar.gz | 79.8 MB | Without provenance | Details for bambi-0.22.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bambi-0.22.0-py3-none-any.whl | Python 3 | none | any | Details for bambi-0.22.0-py3-none-any.whl |
Total release size: 79.9 MB
Release files / bambi-0.22.0.tar.gz
| Download URL | bambi-0.22.0.tar.gz |
|---|---|
| Size | 79.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f5acc306782820a3ae257accfa18751475b5b6b48147fa3f60abd4f812ba1e7
|
|
BLAKE2b-256 checksum How to use checksums |
303176731596856ad02c2344bd36dc1e6ef8671c4ca72561fc86d27343aa120b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / bambi-0.22.0-py3-none-any.whl
| Download URL | bambi-0.22.0-py3-none-any.whl |
|---|---|
| Size | 108.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c0df5cadbda630c05ac656341e0849e23367553112fd9823d6f237d1826f63b
|
|
BLAKE2b-256 checksum How to use checksums |
87b4fb3a2c386486425289b1814983ac64c1e05abaa756035b43b606ea6a5ab7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for bambi 0.22.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.