/bayesian_inference_tut

Quick tutorial on Bayesian inference applied to logistic functions

Primary LanguageJupyter NotebookMIT LicenseMIT

Logistic Functions and Probabilistic Programming

Sebastien Soudan

Quick tutorial on Bayesian inference. See the notebook for the actual code.

The notebook is here.

Running the notebook

This is a Jupyter notebook.

Deps

conda create --name bayesian_inference_tut python=3.10
conda activate bayesian_inference_tut 
conda install -y -c conda-forge numpyro matplotlib scipy pandas seaborn plotly arviz 
pip install jax jaxlib graphviz ipyimpl jupyter

or on a M1 Mac:

conda env create -f environment.yml
conda activate bayesian_inference_tut
pip install jupyter

Running

conda activate bayesian_inference_tut
jupyter notebook bayesian_inference.ipynb

Animation

To create the animation with ImageMagick, see img/ANIMATE.sh.