# bambinos/bambi

BAyesian Model-Building Interface (Bambi) in Python.

Repository: https://github.com/bambinos/bambi
Canonical: https://ross.abutalabs.com/products/bambi
Homepage: https://bambinos.github.io/bambi/
Language: Python
License: MIT
License Family: permissive
Topics: bayesian-inference, python, regression-models, statistical-analysis, bayesian-statistics, statistical-modeling
Last push: 2026-08-15T17:31:57+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 85, longevity 100
- inputs: {"age_days": 3761, "days_push": 18, "days_rel": 23, "gap_med": 68.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1296, forks 148 (observed 2026-08-28T04:04:16.961622+00:00)

## What it is
Bambi is a high-level Bayesian model-building interface for Python built on top of the PyMC probabilistic programming framework. It uses a formula-based syntax to make fitting Bayesian regression and mixed-effects models easy, particularly for social sciences and biology.

## Use cases
- fit bayesian linear regression models in python
- fit mixed-effects models with a formula interface
- run bayesian hierarchical models on sleep study style data
- specify priors easily for regression models
- do bayesian statistical analysis without writing pymc code
- fit generalized linear models with bayesian inference

## When to choose
- you want bayesian regression or mixed-effects models with minimal code
- you prefer formula-based model specification like R's lme4 or brms
- you already use PyMC and ArviZ and want a friendlier interface

## When to avoid
- you need full control over custom probabilistic model structure
- you need non-Bayesian or frequentist modeling
- you work outside the Python/PyMC ecosystem

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, data-science, math
- domain: data-science, machine-learning
- platform: python, cross-platform
- tags: bayesian-inference, pymc, mixed-effects-models, regression, statistical-modeling, formula-interface, arviz, statistics

## Member repositories
- bambinos/bambi (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.961622+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:53:56.476621+00:00, confidence not recorded.
  - readme: https://github.com/bambinos/bambi (fetched 2026-08-28T04:04:16.961622+00:00, sha d4cf40f3c6c0)
  - homepage: https://bambinos.github.io/bambi/ (fetched 2026-08-29T12:10:30.093348+00:00, sha 12a74b95f3c4)
  - registry_pypi: https://pypi.org/pypi/bambi/json (fetched 2026-08-29T12:10:30.103754+00:00, sha f42d00c10422)
- Data as of 2026-08-30T08:39:29.467469+00:00.
