/statistical-rethinking-2023

Python implementation of Richard McElreath's Statistical Rethinking 2023 lecture series on causal inference & Bayesian estimation.

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Statistical Rethinking 2023 in Python

Python/PyMC 5 implementations of Richard McElreath's outstanding lecture series Statistical Rethinking 2023.

Setup

All notebooks were developed on a Mac laptop with M1 Pro ARM64 chipset. The python environment is managed using miniconda. If you are on a similar hardware setup, you can initialize the environment via the standard conda workflow:

$ conda env create -f statistical-rethinking-2023.yml
$ conda activate statistical-rethinking-2023

Otherwise, the Python version and standard packages that are imported in the notebooks via the init_notebook.py script are as follows:

Watermark:
----------
Python implementation: CPython
Python version       : 3.10.12
IPython version      : 8.15.0

Compiler    : Clang 15.0.7 
OS          : Darwin
Release     : 22.2.0
Machine     : arm64
Processor   : arm
CPU cores   : 10
Architecture: 64bit

statsmodels: 0.14.0
numpy      : 1.24.4
arviz      : 0.16.1
scipy      : 1.11.2
pymc       : 5.8.0
pandas     : 2.1.0
xarray     : 2023.8.0
matplotlib : 3.7.2