Bdapy
Reproducing plots of Bayesian Data Analysis (Gelman et al, 3rd Edition) in Python
Install / Use
/learn @bikestra/BdapyREADME
bdapy
This project aims to reproduce analyses done in the book Bayesian Data Analysis (Gelman et al, 3rd Edition) in Python without relying on black-box Bayesian inference libraries, so that I can familiarize myself with conducting Bayesian inference in Python. Hopefully this is a useful resource for other people as well.
Here is the list of notebooks I wrote:
- Hierarchical Bayesian Inference of Binomial Probabilities (on rat tumor data, Chapter 5.3)
- Hierarchical Bayesian Inference of Group Normal Means (on SAT coaching data and beta-blocker data, Chapter 5.4, 5.5, 5.6, 6.5, 7.3)
- Basic Monte-Carlo Markov Chain (MCMC) Sampling (on bivariate normal distribution, Chapter 11.1, 11.3, 11.4)
- MCMC sampling on Hierarchical Normal Model with Unknown Standard Deviation (Chapter 11.6)
- Logistic regression with grid sampling (Chapter 3.7), mode-based approximation (Chapter 4.1), and Expectation Propagation (Chapter 13.8)
- Hierarchical Bayesian Linear Regression (Chapter 15.2)
Related Skills
claude-opus-4-5-migration
104.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
345.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
feishu-drive
345.4k|
things-mac
345.4kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
