{"id":17202277,"url":"https://github.com/avehtari/bda_r_demos","last_synced_at":"2025-04-14T13:48:47.895Z","repository":{"id":3937740,"uuid":"51442634","full_name":"avehtari/BDA_R_demos","owner":"avehtari","description":"Bayesian Data Analysis demos for R","archived":false,"fork":false,"pushed_at":"2024-10-11T09:59:21.000Z","size":199353,"stargazers_count":572,"open_issues_count":1,"forks_count":205,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-04-07T03:18:08.089Z","etag":null,"topics":["bayesian","bayesian-data-analysis","bayesian-inference","mcmc","monte-carlo","r","stan"],"latest_commit_sha":null,"homepage":"https://avehtari.github.io/BDA_course_Aalto/demos.html","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avehtari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-10T13:28:21.000Z","updated_at":"2025-03-23T02:57:18.000Z","dependencies_parsed_at":"2024-10-25T23:20:06.412Z","dependency_job_id":null,"html_url":"https://github.com/avehtari/BDA_R_demos","commit_stats":{"total_commits":190,"total_committers":6,"mean_commits":"31.666666666666668","dds":0.08421052631578951,"last_synced_commit":"cce267097d8ff53815f1312c982b03a02cc2aaee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avehtari%2FBDA_R_demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avehtari%2FBDA_R_demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avehtari%2FBDA_R_demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avehtari%2FBDA_R_demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avehtari","download_url":"https://codeload.github.com/avehtari/BDA_R_demos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248890851,"owners_count":21178518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayesian","bayesian-data-analysis","bayesian-inference","mcmc","monte-carlo","r","stan"],"created_at":"2024-10-15T02:14:08.995Z","updated_at":"2025-04-14T13:48:47.850Z","avatar_url":"https://github.com/avehtari.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bayesian Data Analysis R Demos\n\nThe [BDA_R_demos repository](https://github.com/avehtari/BDA_R_demos) contains some R demos and additional notes for the book [Bayesian Data\nAnalysis, 3rd ed by Gelman, Carlin, Stern, Dunson, Vehtari, and Rubin (BDA3)](http://www.stat.columbia.edu/~gelman/book/). See also [Bayesian Data Analysis course material](https://github.com/avehtari/BDA_course_Aalto).\n\nCurrently there are demos for BDA3 Chapters 2, 3, 4, 5, 6, 10, 11 and 12.\nFurthermore there are demos for\n[CmdStanR](https://github.com/stan-dev/cmdstanr),\n[RStan](https://github.com/stan-dev/rstan)\n[RStanARM](https://github.com/stan-dev/rstanarm).\n\nThe initial demos were originally written for Matlab by [Aki\nVehtari](http://users.aalto.fi/~ave/) and translated to R by [Markus\nPaasiniemi](https://github.com/paasim). Recently more demos have been\nadded for [CmdStanR, RStan and RStanARM](demos_rstan).\nUnless otherwise specified in specific files all code licensed\nunder BSD-3 and all text, slides and figures licensed under CC-BY-NC 4.0.\n\nThe corresponding [Python demos](https://github.com/avehtari/BDA_py_demos)\nand the corresponding [Matlab/Octave demos](https://github.com/avehtari/BDA_m_demos).\n\nSee also [Model Selection tutorial](https://avehtari.github.io/modelselection/).\n\nList of demos (not including [rstan and rstanarm demos](demos_rstan))\n- [Chapter 2](demos_ch2)\n  - [demo2_1: Probability of a girl birth given placenta previa (BDA3 p. 37)](https://avehtari.github.io/BDA_R_demos/demos_ch2/demo2_1.html)\n  - [demo2_2: Illustrate the effect of prior in binomial model](https://avehtari.github.io/BDA_R_demos/demos_ch2/demo2_2.html)\n  - [demo2_3: Illustrate simulation based inference](https://avehtari.github.io/BDA_R_demos/demos_ch2/demo2_3.html)\n  - [demo2_4: Illustrate grid and inverse-cdf sampling](https://avehtari.github.io/BDA_R_demos/demos_ch2/demo2_4.html)\n- [Chapter 3](https://avehtari.github.io/BDA_R_demos/demos_ch3)\n  - [demo3_1_4: Normal model with unknown mean and variance (BDA3 section 3.2 on p. 64)](https://avehtari.github.io/BDA_R_demos/demos_ch3/demo3_1_4.html)\n  - [demo3_5: Estimating the speed of light using normal model BDA3 p. 66](https://avehtari.github.io/BDA_R_demos/demos_ch3/demo3_5.html)\n  - [demo3_6: Binomial regression and grid sampling with bioassay data (BDA3 p. 74-)](https://avehtari.github.io/BDA_R_demos/demos_ch3/demo3_6.html)\n- [Chapter 4](https://avehtari.github.io/BDA_R_demos/demos_ch4)\n  - [demo4_1: Normal approximation for binomial regression model and Bioassay data](https://avehtari.github.io/BDA_R_demos/demos_ch4/demo4_1.html)\n- [Chapter 5](https://avehtari.github.io/BDA_R_demos/demos_ch5)\n  - [demo5_1: Hierarchical model for Rats experiment (BDA3, p. 102)](https://avehtari.github.io/BDA_R_demos/demos_ch5/demo5_1.html)\n  - [demo5_2: Hierarchical model for SAT-example data (BDA3, p. 102)](https://avehtari.github.io/BDA_R_demos/demos_ch5/demo5_2.html)\n- [Chapter 6](https://avehtari.github.io/BDA_R_demos/demos_ch6)\n  - [demo6_1: Posterior predictive checking of normal model for light data](https://avehtari.github.io/BDA_R_demos/demos_ch6/demo6_1.html)\n  - [demo6_2: Posterior predictive checking for independence in binomial trials](https://avehtari.github.io/BDA_R_demos/demos_ch6/demo6_2.html)\n  - [demo6_3: Posterior predictive checking of normal model with poor test statistic](https://avehtari.github.io/BDA_R_demos/demos_ch6/demo6_3.html)\n  - [demo6_4: Marginal posterior predictive checking with PIT test](https://avehtari.github.io/BDA_R_demos/demos_ch6/demo6_4.html)\n- Chapter 7\n  - See [model selection tutorial](https://github.com/avehtari/modelselection_tutorial)\n- [Chapter 10](https://avehtari.github.io/BDA_R_demos/demos_ch10)\n  - [demo10_1: Rejection sampling](https://avehtari.github.io/BDA_R_demos/demos_ch10/demo10_1.html)\n  - [demo10_2: Importance sampling](https://avehtari.github.io/BDA_R_demos/demos_ch10/demo10_2.html)\n  - [demo10_3: Importance sampling with normal distribution as a proposal for Bioassay model](https://avehtari.github.io/BDA_R_demos/demos_ch10/demo10_3.html)\n- [Chapter 11](https://avehtari.github.io/BDA_R_demos/demos_ch11)\n  - [demo11_1: Gibbs sampling illustration](https://avehtari.github.io/BDA_R_demos/demos_ch11/demo11_1.html)\n  - [demo11_2: Metropolis sampling + convergence illustration](https://avehtari.github.io/BDA_R_demos/demos_ch11/demo11_2.html)\n  - [demo11_3_4: Metropolis sampling + convergence illustration](https://avehtari.github.io/BDA_R_demos/demos_ch11/demo11_3_4.html)\n  - [demo11_5: Diagnostics with posterior and bayesplot packages](https://avehtari.github.io/BDA_R_demos/demos_ch11/demo11_5.html)\n- [Chapter 12](https://avehtari.github.io/BDA_R_demos/demos_ch12)\n  - [demo12_1: Static Hamiltonian Monte Carlo illustration](https://avehtari.github.io/BDA_R_demos/demos_ch12/demo12_1.html)\n  - [demo12_2: NUTS / Dynamic Hamiltonian Monte Carlo illustration](https://avehtari.github.io/BDA_R_demos/demos_ch12/demo12_2.html)\n- [CmdStanR, RStan, RStanARM, brms](https://avehtari.github.io/BDA_R_demos/demos_rstan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favehtari%2Fbda_r_demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favehtari%2Fbda_r_demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favehtari%2Fbda_r_demos/lists"}