Material for course on Bayesian Computation
This tutorial assumes that you have Miniforge (recommended) or Anaconda setup and installed on your system. If you do not, please download and install one of these on your system before proceeding with the setup.
The next step is to clone or download the tutorial materials in this repository. If you are familiar with Git, run the clone command:
git clone https://github.com/fonnesbeck/pymc_workshop.git
otherwise you can download a zip file of its contents, and unzip it on your computer.
The repository for this tutorial contains a file called environment.yml
that includes a list of all the packages used for the tutorial. If you run:
conda env create
from the main tutorial directory, it will create the environment for you and install all of the packages listed. This environment can be enabled using:
conda activate pymc_workshop
Then, you can start JupyterLab to access the materials:
jupyter lab
The binder link above should also provide a working environment.
In advance of the course, we would like attendees to complete a short homework notebook that will ensure everyone has the requisite baseline knowledge. You can find this Jupyter notebook in the /notebooks
subdirectory (under Section0-Pre_Work.ipynb
). There is no need to hand this in to anyone, but please reach out if you have difficulty with any of the problems (or with setting up your computing environment) by creating an issue in this repository, or by emailing.
The course comprises four modules, along with short associated hands-on projects to reinforce materials covered during lectures.
- Bayesian vs frequentist statistics
- Bayesian computation
- Evaluating hypotheses
- Motivation and case studies
- Partial pooling
- Building hierarchical models
- Parameterizations
- Model checking
- Probability density functions, inverse CDF sampling
- Rejection sampling
- MCMC basics
- Metropolis-Hastings samplers
- Gibbs samplers
- Gradient-based MCMC
- Diagnostics
- Prior predictive checks
- Iterating models
- Posterior predictive checks
- Using the model