Statistical Rethinking

Summary

A pedagogical Bayesian course that teaches statistical modeling as golem engineering — building and understanding statistical models as purposeful machines, not black boxes. Emphasizes code-first learning with R and Stan, and argues against null hypothesis testing in favor of building and comparing multiple non-null models.

Core Philosophy

McElreath frames statistics through the Golem of Prague metaphor: statistical models are powerful but mindless constructs that do exactly what they’re told. Like the golem, they can be destructive if not carefully engineered. The book teaches three tools for responsible golem engineering:

  1. Bayesian data analysis — using probability to describe uncertainty
  2. Multilevel models — “it’s parameters all the way down”
  3. Model comparison with information criteria — WAIC, DIC, and their information-theoretic foundations

Structure

PartChaptersTopics
FoundationsCh 1–3Philosophy,Bayesian updating,Posterior sampling
Linear ModelsCh 4–7Gaussian model, Multivariate regression, interactions
MCMC & GLMsCh 8–11Stan, Information theory,GLMs,zero-inflation
MultilevelCh 12–13Varying effects, partial pooling, Gaussian processes
Missing DataCh 14–15Measurement error, imputation, concluding reflections

Key Principles

  • Hypotheses are not models: multiple process models can produce the same statistical model, and vice versa — rejecting a null model tells you little
  • All models are wrong: the goal is to build and compare useful ones, not to test whether one is “true”
  • Multilevel regression deserves to be the default: papers not using multilevel approaches should have to justify not using them
  • Code is not optional: understanding comes from implementation, not just theory
  • Fitting is easy, prediction is hard: always improves with more parameters, but out-of-sample prediction does not

Comparison with BDA3

AspectStatistical RethinkingBDA3
ApproachCourse/pedagogicalReference/comprehensive
Math levelAccessible, code-firstRigorous, proof-heavy
SoftwareR + Stan (rethinking package)General (Stan, BUGS)
EmphasisModel building philosophy, causal thinkingPosterior computation, theory
Unique topicsGolem metaphor, maximum entropy GLMs, Waffle HouseAsymptotics, decision theory, nonparametric models

See Also