avehtari/BDA_R_demos
Bayesian Data Analysis demos for R
What it solves
The repository solves the problem of learning Bayesian data analysis by providing hands-on R demonstrations. It accompanies the book "Bayesian Data Analysis, 3rd ed" and offers runnable R code that illustrates concepts like probability, prior distributions, simulation, hierarchical models, and Markov chain Monte Carlo (MCMC) methods.
How it works
The demos are organized by chapters of the book, covering chapters 2, 3, 4, 5, 6, 10, 11, and 12. Each demo is a self-contained R script or R Markdown file that reproduces examples from the book. There are also demos specifically for using Stan and its R interfaces (CmdStanR, RStan, RStanARM, and brms) to fit Bayesian models. The demos are available as HTML pages for easy viewing, and the code is freely licensed (BSD-3 for code, CC-BY-NC for text and figures).
Who it's for
This is for students, researchers, and practitioners who want to learn or teach Bayesian data analysis using R. It assumes familiarity with basic statistics but provides worked examples to illustrate Bayesian concepts step by step.
Highlights
- Demos for BDA3 chapters 2, 3, 4, 5, 6, 10, 11, and 12 covering a wide range of Bayesian topics.
- Additional demos for using Stan, CmdStanR, RStan, RStanARM, and brms to perform Bayesian inference.
- Each demo is presented as an HTML page for easy browsing and understanding.
- The code is open source under BSD-3 license and text/figures under CC-BY-NC 4.0, making it freely usable for education.
Related
- Project
- Project
- Project
- Project