Winner of the 2024 De Groot Prize awarded by the International Society for Bayesian Analysis (ISBA)
Statistical Rethinking: A Bayesian Course with Examples in R and Stan builds your knowledge of and confidence in making inferences from data. Reflecting the need for scripting in today's model-based statistics, the book pushes you to perform step-by-step calculations that are usually automated. This unique computational approach ensures that you understand enough of the details to make reasonable choices and interpretations in your own modeling work.
The text presents causal inference and generalized linear multilevel models from a simple Bayesian perspective that builds on information theory and maximum entropy. The core material ranges from the basics of regression to advanced multilevel models. It also presents measurement error, missing data, and Gaussian process models for spatial and phylogenetic confounding.
The second edition emphasizes the directed acyclic graph (DAG) approach to causal inference, integrating DAGs into many examples. The new edition also contains new material on the design of prior distributions, splines, ordered categorical predictors, social relations models, cross-validation, importance sampling, instrumental variables, and Hamiltonian Monte Carlo. It ends with an entirely new chapter that goes beyond generalized linear modeling, showing how domain-specific scientific models can be built into statistical analyses.
Features
- Integrates working code into the main text.
- Illustrates concepts through worked data analysis examples.
- Emphasizes understanding assumptions and how assumptions are reflected in code.
- Offers more detailed explanations of the mathematics in optional sections.
- Presents examples of using the dagitty R package to analyze causal graphs.
- Provides the rethinking R package on the author's website and on GitHub.
Statistical Rethinking: A Bayesian Course with Examples in R and Stan, Second Edition builds knowledge/confidence in statistical modeling. Pushes readers to perform step-by-step calculations (usually automated.) Unique, computational approach.
"The first edition (and this second edition) of *Statistical Rethinking* beautifully outlines the key steps in the statistical analysis cycle, starting from formulating the research question. I find that many statistics textbooks omit the issue of problem formulation and either jump into data acquisition or further into analysis after the fact. McElreath has created a fantastic text for students of applied statistics to not only learn about the Bayesian paradigm, but also to gain a deep appreciation for the statistical thought process. I also found that many students appreciated McElreath's engaging writing style and humor, and personally found the infusion of humor quite refreshing."~Adam Loy, Carleton College
"(The chapter) 'Generalized Linear Madness' represents another great chapter of an even better edition of an already awesome textbook."~Benjamin K. Goodrich, Columbia University
"(Chapter 16) is a worthy concluding chapter to a masterful book. Eminently readable and enjoyable. Brimful of small thought-provoking bits which may inspire deeper studies, but first and foremost a window on the trial and error process involved in building a statistical model or rather, indeed, any scientific theory."~Josep Fortiana Gregori, University of Barcelona
"I do regard the manuscript as technically correct, clearly written, and at an appropriate level of difficulty. The technical approaches and the R codes of the book are perfect for our students. They can learn concepts of Bayesian models, data analysis, and model validation methods through using the R codes. The codes help students to have better understanding of the models and data analysis process." ~Nguyet Nguyen, Youngstown State University
"In conclusion, Statistical Rethinking frames usual methods and tools taught in graduate statistical courses into a different way to encourage the reader to understand the details and appreciate the underlying assumptions. The accompanying R package offers example codes for some interesting problems that are not available in standard library or other popular packages. This book can be used as a supplement to a graduate course or it can be used by practitioners wanting to brush up their knowledge with better understanding of statistical techniques."~Abhirup Mallik in Technometrics, August 2021