The BDA_R_demos repository contains some R demos and additional notes for the book Bayesian Data Analysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3).

Currently there are demos for BDA3 Chapters 2, 3, 4, 5, 6, 10, 11 and 12. Furthermore there are demos for RStan and RStanARM.

The initial demos were originally written for Matlab/Octave by Aki Vehtari and translated to R by Markus Paasiniemi. Recently more demos have been added for RStan, CmdStanR and RStanARM. Unless otherwise specified in specific files all code licensed under BSD-3 and all text, slides and figures licensed under CC-BY-NC 4.0.

See also Model Selection tutorial.

BDA_py_demos repository some Python demos for the book Bayesian Data Analysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3).

Currently there are demos for BDA3 Chapters 2, 3, 4, 5, 6, 10 and 11. Furthermore, there are demos for PyStan.

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.

- ZIP file for all Python demos
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 10
- Chapter 11
- PyStan

- python 3
- ipython
- numpy
- scipy
- matplotlib 2
- pandas (for some demos)
- pystan (for some demos)