to interactively run the IPython Notebooks in the browser.
This repository contains some Python demos for the book Bayesian Data Analysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3). See also Bayesian Data Analysis course material.
Currently there are demos for BDA3 Chapters 2, 3, 4, 5, 6, 10 and 11. Furthermore, cmdstanpy is also demoed.
Demos are in jupyter notebook (.ipynb) format. These can be directly previewed in GitHub without need to install or run anything.
Corresponding demos were originally written for Matlab/Octave by Aki Vehtari and translated to Python by Tuomas Sivula. Some improvements were contributed by Pellervo Ruponen and Lassi Meronen. There are also corresponding R demos.
This project uses pixi to manage dependencies.
-
Install pixi: If you don't have pixi installed, you can find the installation instructions here.
-
Install dependencies: Open a terminal and navigate to the project's root directory. Then, run the following command to install all the necessary packages:
pixi install
-
Run Jupyter: With the dependencies installed, you can start Jupyter Notebook to run the demos:
pixi run jupyter notebook