/Statistical-Rethinking-with-Python-and-PyMC3

Python/PyMC3 port of the examples in " Statistical Rethinking A Bayesian Course with Examples in R and Stan" by Richard McElreath

Primary LanguageJupyter Notebook

Statistical Rethinking with Python and PyMC3

This repository has been deprecated in favour of this one, please check that repository for updates, for opening issues or sending pull requests

Statistical Rethinking is an incredible good introductory book to Bayesian Statistics, its follows a Jaynesian and practical approach with very good examples and clear explanations.

In this repository we ported the codes (originally in R and Stan) in the book to PyMC3. We are trying to keep the examples as close as possible to those in the book, while at the same time trying to express them in the most Pythonic and PyMC3onic way we can.

Display notebooks

View Jupyter notebooks in nbviewer

Contributing

If you want to contribute please, send your pull request to this. All contributions are welcome!

Installing the dependencies

To install the dependencies to run these notebooks, you can use Anaconda. Once you have installed Anaconda, run:

conda env create -f environment.yml

to install all the dependencies into an isolated environment. You can switch to this environment by running:

source activate stat-rethink-pymc3

Creative Commons License
Statistical Rethinking with Python and PyMC3 by All Contributors is licensed under a Creative Commons Attribution 4.0 International License.