This project is a companion to Richard McElreath’s Statistical Rethinking (McElreath, 2020). For each of the 10 weeks, of the course (materials provided here), I work through the exercises in each chapter covered that week. Like Solomon Kurz, I take a {tidyverse} (Wickham, 2019; Wickham et al., 2019) and {brms} (Bürkner, 2017, 2018, 2020) approach to solving these problems. For a translation of the actual book text to {tidyverse} and {brms} style code, please check out their project, Statistical rethinking with brms, ggplot2, and the tidyverse: Second edition.

You can purchase Statistical Rethinking: A Bayesian Course in R and Stan (McElreath, 2020) from CRC Press.


This project is a work in progress. If you’d like to follow along, you can find the GitHub repository here. These solutions have not been checked by anybody, so there will undoubtedly be errors. If you find any, please contribute or let me know!

There are several ways to contribute. For simple edits or suggestions, you can use the edit button in the navigation bar at the top of the screen. You can also create a fork of the repository and submit a pull request or open an issue.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.