• Stars
    star
    651
  • Rank 66,521 (Top 2 %)
  • Language
    R
  • Created over 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Statistical Rethinking Course Winter 2020/2021

Statistical Rethinking: A Bayesian Course (with Code Examples in R/Stan/Python/Julia)

Winter 2020/2021

Instructor: Richard McElreath

Format: Online, flipped instruction. The lectures are pre-recorded. We'll meet online once a week for an hour to work through the solutions to the assigned problems.

When: Wednesdays 3-4PM CET, starting 2 December 2020 (see full calendar at bottom). A Zoom link will be given to enrolled students.

Registration: Please sign up via <EventBright>. I've also set aside 100 audit tickets at the same link, for people who want to participate, but who don't need graded work and course credit. Apologies for using an external service, but it will make distributing the access information and course materials easier for all of us.

Book

We'll use the 2nd edition of my book, Statistical Rethinking. I'll provide a PDF of the book to enrolled students.

Lectures

The full lecture video playlist is here: <YouTube:Statistical Rethinking 2019>. Links to individual lectures, slides and videos are in the calendar at the very bottom.

Code examples

Students can engage with the material using either the original R code examples or one of several conversions to other computing environments. The conversions are not always exact, but they are rather complete. Each option is listed below.

Original R Flavor

For those who want to use the original R code examples in the print book, you need to first install rstan. Go to http://mc-stan.org/ and find the instructions for your platform. Then you can install the rethinking package:

install.packages(c("devtools","mvtnorm","loo","coda"),dependencies=TRUE)
library(devtools)
install_github("rmcelreath/rethinking")

The code is all on github https://github.com/rmcelreath/rethinking/ and there are additional details about the package there, including information about using the more-up-to-date cmdstanr instead of rstan as the underlying MCMC engine.

R + Tidyverse + ggplot2 + brms

The <Tidyverse/brms> conversion is very high quality and complete through Chapter 14.

Python and PyMC3

The <Python/PyMC3> conversion is quite complete.

Julia and Turing

The <Julia/Turing> conversion is not as complete, but is growing fast and presents the Rethinking examples in multiple Julia engines, including the great <TuringLang>.

Other

The are several other conversions. See the full list at https://xcelab.net/rm/statistical-rethinking/.

Homework and solutions

I will also post problem sets and solutions here. Check the folders at the top.

Calendar & Topical Outline

There are 10 weeks of instruction.

Week ## Meeting date Reading Lectures
Week 01 02 December Chapters 1, 2 and 3 The Golem of Prague <slides> <video>
Garden of Forking Data <slides> <video>
Week 02 09 December Chapter 4 Geocentric Models <slides> <video>
Wiggly Orbits <slides> <video>
Week 03 06 January Chapters 5 and 6 Spurious Waffles <slides> <video>
Haunted DAG <slides> <video>
Week 04 13 January Chapter 7 Ulysses' Compass <slides> <video>
Model Comparison <slides> <video>
Week 05 20 January Chapters 8 and 9 Conditional Manatees <slides> <video>
Markov Chain Monte Carlo <slides> <video>
Week 06 27 January Chapters 10 and 11 Maximum entropy & GLMs <slides> <video>
God Spiked the Integers <slides> <video>
Week 07 03 February Chapter 12 Monsters & Mixtures <slides> <video>
Ordered Categories, Left & Right <slides> <video>
Week 08 10 February Chapter 13 Multilevel Models <slides> <video>
Multilevel Models 2 <slides> <video>
Week 09 24 February Chapter 14 Adventures in Covariance <slides> <video>
Slopes, Instruments and Social Relations <slides> <video>
Week 10 03 March Chapter 15 Gaussian Processes <slides> <video>
Missing Values and Measurement Error <slides> <video>

More Repositories

1

stat_rethinking_2022

Statistical Rethinking course winter 2022
R
4,103
star
2

stat_rethinking_2023

Statistical Rethinking Course for Jan-Mar 2023
R
2,088
star
3

rethinking

Statistical Rethinking course and book package
R
2,043
star
4

statrethinking_winter2019

Statistical Rethinking course at MPI-EVA from Dec 2018 through Feb 2019
2,016
star
5

stat_rethinking_2024

R
569
star
6

causal_salad_2021

One day course on causal inference, MPI-EVA 9 September 2021
R
240
star
7

VLEGT

Verty short course on evolutionary game theory
145
star
8

PhD_planning_template

Outline for planning PhD projects
TeX
100
star
9

cmdstan_map_rect_tutorial

Beginner tutorial for using cmdstan with multithreading
R
60
star
10

glmer2stan

Define Stan models using glmer-style (lme4) formulas
R
54
star
11

rethinking_manual

Extended documentation and model examples for rethinking R package
TeX
33
star
12

elements_evolutionary_anthropology

Text project for theoretical primer on human evolutionary ecology
TeX
30
star
13

CES_rater_2021

Talk rater model for CES 2021 conference
R
14
star
14

SRM_multilayer

Model development for reciprocity in multi-layer directed social networks
R
7
star
15

SBM_latent_gifts_survey

Stochastic block model for inferring latent network from both gift and survey data
Stan
7
star
16

cg_vocal_repertoires

Estimating vocal repertoires from finite samples in which we expect undercounting
R
6
star
17

parasiticbehaviorsim

R package for parasitic behavior and social learning simulations
R
5
star
18

cchunts

Koster et al cross-cultural foraging data analysis
R
5
star
19

networks_with_disagreement

Models for analyzing network data in which informant reports may be in conflict
Stan
5
star
20

Himba_EPP

R script for multilevel estimate of extra-pair paternity rate in a Himba sample
R
4
star
21

vanLeeuwen_2018_strategy_analysis

Reanalysis of vanLeeuwen et al 2018 DOI: 10.1038/s41467-018-04468-2
Stan
3
star
22

mcelreath-koster-human-nature-2014

Data and model fitting scripts from McElreath & Koster. 2014. Using Multilevel Models to Estimate Variation in Foraging Returns: Effects of Failure Rate, Harvest Size, Age, and Individual Heterogeneity. Human Nature, 25, 100-120.
R
3
star
23

EBC_brain_vocal_modeling

Development of brain-vocal analysis for EBC
R
3
star
24

baryplot

R package for plotting evolutionary game dynamics within barycentric coordinates (triangle plots)
R
2
star