-
Notifications
You must be signed in to change notification settings - Fork 557
/
gsu2023.Rmd
378 lines (303 loc) · 43.7 KB
/
gsu2023.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
---
title: "Bayesian Data Analysis course - GSU 2023"
date: "Page updated: `r format.Date(file.mtime('gsu2023.Rmd'),'%Y-%m-%d')`"
---
Bayesian Data Analysis Global South (GSU) 2023
- Lecturer: [Aki Vehtari](https://users.aalto.fi/~ave/index.html)
- Head TAs: [Meenal Jhajharia](https://mjhajharia.com)
- Sponsored by:
- [Stan governing body](https://mc-stan.org/about/)
- [Eduflow](https://www.eduflow.com/) provides us a free license for the Peergrade tool
## Summary
1. Max 300 students with priority for global south and other underrepresented groups (GSU).
1. From 18th February (first assignment deadline 26th February, last day of the course in the end of May)
1. All the material (textbook, videos, assignments, extra reading
material) are freely available (see below) so you can also
self-study at your own pace.
1. The course is free (no cost) and possible to organize with help of volunteer TAs.
1. This BDA course instance is aimed to support learning with peer
support. By following the videos and doing assignments at the same
time with others, you can discuss the material in assignments in
the course slack, there is peer-grading platform to get feedback
about your assignment solutions, and voluntary TAs help answering
questions. As everything is volunteer based we can't guarantee
quick responses, but at least you will get something more than when
studying only by yourself.
1. This course is not the easiest Bayesian course available in
internet, but it can be your first Bayesian course if your
mathematical and programming skills are sufficient. Compared to some
other free online courses, this course has big emphasis in the computational
methods, and thus goes deeper in many parts. See the
prerequisites below. For easier material to start with see the end
of Prerequisites section below.
1. You will not get a formal certificate for passing the course from
Aalto University.
1. The communication happens in the course slack, please don't email
the lecturer or TAs. The slack link has been emailed to the accepted students.
All the course material is available in a [git repo](https://github.com/avehtari/BDA_course_Aalto) and via these pages for easier navigation. All the material can be used in other courses. Text and videos licensed under CC-BY-NC 4.0. Code licensed under BSD-3.
## Registration
You can apply for the course by filling [a registration form](https://forms.gle/azapZxfcy5sS6fhj7). The registration form asks several pre-requisites questions, and filling the form takes some time. We will email whether you have been accepted to the course at latest 17th February (Finland time). If you are not accepted for the course, you can still self-study all the material.
## TA Registration
We have some volunteer TAs already, but a few more would be great.
All TAs will get a personal certificate from the lecturer Aki Vehtari
if they actively participate helping students, answering questions,
and possibly organize some TA sessions. We assume to have enough TAs
that no-one needs to take part every week of the course and you can
drop out if other obligations require so. The lecturer and two head
TAs will support TAs.
To register as volunteer TA fill in your information (email, country,
prerequisites check, a brief comment on justification why you think
you can be a TA) in [TA registration form](https://forms.gle/7KQbnEC3nxb4MwYM9).
## Book: BDA3
<div style= "float:right;position: relative;">
![](bda_cover.png)
</div>
[The electronic version of the course book
Bayesian Data Analysis, 3rd ed, by Andrew Gelman, John Carlin, Hal
Stern, David Dunson, Aki Vehtari, and Donald Rubin](https://users.aalto.fi/~ave/BDA3.pdf) is available for non-commercial purposes. Hard copies are available from [the publisher](https://www.crcpress.com/Bayesian-Data-Analysis/Gelman-Carlin-Stern-Dunson-Vehtari-Rubin/p/book/9781439840955) and many book stores.
See also [home page for the
book](http://www.stat.columbia.edu/~gelman/book/), [errata for the
book](http://www.stat.columbia.edu/~gelman/book/errata_bda3.txt), and [chapter notes](chapter_notes/BDA_notes_all.pdf).
## Prerequisites
- Basic terms of probability theory
- probability, probability density, distribution
- sum, product rule, and Bayes' rule
- expectation, mean, variance, median
- in English, see e.g. Wikipedia and [Introduction to probability and statistics](https://ocw.mit.edu/courses/mathematics/18-05-introduction-to-probability-and-statistics-spring-2014/readings/)
- Some algebra and calculus
- Basic visualisation techniques (R or Python)
- histogram, density plot, scatter plot
- see e.g. [BDA R demos](demos.html#BDA_R_demos)
- see e.g. [BDA Python demos](demos.html#BDA_Python_demos)
This course has been designed so that there is strong emphasis in
computational aspects of Bayesian data analysis and using the latest
computational tools.
If you find BDA3 too difficult to start with, I recommend
- For regression models, their connection to statistical testing and causal analysis see [Gelman, Hill and Vehtari, "Regression and Other Stories"](https://avehtari.github.io/ROS-Examples/).
- Richard McElreath's [Statistical Rethinking, 2nd ed](https://xcelab.net/rm/statistical-rethinking/) book is easier than BDA3 and the 2nd ed is excellent, but doesn't go as deep in computational methods as this BDA course. Richard's lecture videos of [Statistical Rethinking: A Bayesian Course Using R and Stan](https://github.com/rmcelreath/statrethinking_winter2019) are highly recommended even if you are following BDA3.
- Alicia A. Johnson, Miles Q. Ott, and Mine Dogucu [Bayes Rules! An Introduction to Applied Bayesian Modeling](https://www.bayesrulesbook.com/) book is excellent and easier than BDA3, but doesn't go as deep in computational methods as this BDA course.
- For background prerequisites some students have found chapters 2, 4 and 5 in [Kruschke, "Doing Bayesian Data Analysis"](https://sites.google.com/site/doingbayesiandataanalysis/) useful.
## Communication channels
- The primary communication channel is the course slack. The slack link has been emailed to the accepted students.
- Don't ask via email or direct messages. By asking via common channels in the course chat, more eyes will see your question, it will get answered faster and it's likely that other students benefit from the answer.
- In the chat system, there are separate channels for each assignment and the project.
- Channel **#general** can be used for any kind of general discussions and questions related to the course.
- All important announcements will be posted to **#announcements** (no discussion on this channel).
- Any kind of feedback is welcome on channel **#feedback**.
- We have also channels **#r**, **#python**, and **#stan** for questions that are not specific to assignments or the project.
- The lecturer and teaching assistants have names with "(staff)" or "(TA)" in the end of their names.
- In this course instance, most TAs are volunteers from different time zones, but there may be possibility for live "TA sessions" with TAs depending on the volunteers
- If you find errors in material, post in **#feedback** channel or [submit an issue in github](https://github.com/avehtari/BDA_course_Aalto/issues).
- Peergrade alerts: If you are worried that you forget the deadlines, you can set Peergrade to send you email when assignment opens for submission, 24 hours before assignment close for submission, assignment is open for reviewing, 24 hours before an assignment closes for reviewing if you haven't started yet, someone likes my feedback (once a day). Click your name -> User Settings to choose which alerts you want.
## Assessment
[Assignments](assignments_gsu.html) (67\%) and a [project work with
presentation](project_gsu.html) (33\%). Minimum of 50\% of points must
be obtained from both the assignments and project work. But as in this
course there is no formal certificate, the assignment scores are just
for your own self-evaluation. The biggest benefit from the course is
the support and feedback from other students and volunteer TAs.
We use [peergrade.io](https://peergrade.io/) for providing peer feedback for
the assignments and the project work. See more information at
[Assignments](assignments_gsu.html).
## Schedule 2023
The course consists of 12 blocks from February to May 2023. The blocks don't match exactly specific weeks. For example, it's good start reading the material for the next block while making the assignment for one block. There are 9 assignments and a project work with presentation, and thus the assignments are not in one-to-one correspondence with the blocks. The schedule below lists the blocks and how they connect to the topics, book chapters and assignments.
### Schedule overview
Here is an overview of the schedule. Scroll down the page to see detailed instructions for each block. Remember that blocks are overlapping so that when you are working on assignment for one block, you should start watching videos and reading text for the next block.
**Note: All assignment deadlines are on Monday 15:59 UTC+0**
[[Link to Schedule of Assignments]](assignments_gsu.html)
| | Block | Readings | Lectures | Assignment | | Assignment due date |
|---|:-----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------|---------------------|
| | 1. Introduction | [BDA3 Chapter 1](chapter_notes/BDA_notes_ch1.pdf) | [Computational probabilistic modeling](https://www.youtube.com/watch?v=ukE5aqdoLZI), <br> [Introduction to uncertainty and modelling](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a441a604-ba91-4f51-b88c-af0700b9f2b1), <br> [Introduction to the course contents](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=13fc7889-cfd1-4d99-996c-a9f400f6e5a2) | [Assignment 1 and Rubric questions](assignments/assignment1.html) | | 26 February |
| | 2. Basics of Bayesian inference | [BDA3 Chapter 1](chapter_notes/BDA_notes_ch1.pdf), <br> [BDA3 Chapter 2](chapter_notes/BDA_notes_ch2.pdf) | [Lecture 2.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=66aa86ca-9346-4f7f-af76-af0e00b9cb83), <br> [Lecture 2.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0b59d2d7-8e48-406c-a51e-af0e00ca3035), <br> Optional: <br> [Extra explanations 2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=158d119d-8673-4120-8669-ac3900c13304), <br> [Summary 2.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=7a297f7d-bb7b-4dd0-9913-a9f500ec822d), <br> [Summary 2.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=75b9f18f-e379-4557-a5fa-a9f500f11b40) | [Assignment 2 and Rubric questions](assignments/assignment2.html) | | 6 March |
| | 3. Multidimensional posterior | [BDA3 Chapter 3](chapter_notes/BDA_notes_ch3.pdf) | [Lecture 3](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=ca0ea8b9-31f0-406d-9d2f-af1600f9826d) | [Assignment 3 and Rubric questions](assignments/assignment3.html) | | 13 March |
| | 4. Monte Carlo | [BDA3 Chapter 10](chapter_notes/BDA_notes_ch10.pdf) | [Lecture 4.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=ab7b792b-50ef-42f4-90f5-af1c00b98b48), <br> [Lecture 4.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=fe23cc92-4d90-4f68-9148-af1c00e29790) | [Assignment 4 and Rubric questions](assignments/assignment4.html) | | 20 March |
| | 5. Markov chain Monte Carlo | [BDA3 Chapter 11](chapter_notes/BDA_notes_ch11.pdf) | [Lecture 5.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=96b8a8a9-60b6-4a7b-bca9-af2300b98547), <br> [Lecture 5.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=fdd0c498-4e4a-4586-8ba9-af2300ca712d) | [Assignment 5 and Rubric questions](assignments/assignment5.html) | | 27 March |
| | 6. Stan, HMC, PPL | [BDA3 Chapter 12](chapter_notes/BDA_notes_ch12.pdf) + [extra material on Stan](index.html#stan) | [Lecture 6.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=4cc8f763-ca6a-4f2f-b19c-af2a00ba8eb4), <br>[Lecture 6.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f4eb4269-bb83-49aa-9243-af2a00ccb873) | [Assignment 6 and Rubric questions](assignments/assignment6.html) | | 7 April |
| | 7. Hierarchical models and exchangeability | [BDA3 Chapter 5](chapter_notes/BDA_notes_ch5.pdf) | [Lecture 7.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=6cf678f1-395d-4c91-87c7-af3800da0ff4), <br> [Lecture 7.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=2320d64f-1e40-45b0-9b17-af3800c9f435) | [Assignment 7 and Rubric questions](assignments/assignment7.html) | | 17 April |
| | 8. Model checking & cross-validation | [BDA3 Chapter 6](chapter_notes/BDA_notes_ch6.pdf), [BDA3 Chapter 7](chapter_notes/BDA_notes_ch7.pdf), [Visualization in Bayesian workflow](https://doi.org/10.1111/rssa.12378), [Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC](https://arxiv.org/abs/1507.04544) | [Lecture 8.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=2c578385-aedc-4657-bc10-af3f00ca3485), <br> [Lecture 8.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f99824f2-2028-43d3-b6c5-af3f00dcafdb) | Start project work | | |
| | 9. Model comparison and selection | [BDA3 Chapter 7 (not 7.2 and 7.3)](chapter_notes/BDA_notes_ch7.pdf), <br> [Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC](https://arxiv.org/abs/1507.04544) | [Lecture 9.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a67324b3-dd4d-48f0-8873-af4600cb8fd0), <br> Optional: <br> [Lecture 9.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0649acb6-d782-4667-86db-af4600da8d2f), <br> [Lecture 9.3](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=4b6eeb48-ae64-4860-a8c3-ab0200e40ad8) | [Assignment 8 and Rubric questions](assignments/assignment8.html) | | 1 May |
| | 10. Decision analysis | [BDA3 Chapter 9](chapter_notes/BDA_notes_ch9.pdf) | [Lecture 10.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a22aab9c-953c-4ea8-b6ec-af4d00c9fe58) | [Assignment 9 and Rubric questions](assignments/assignment9.html) | | 8 May |
| | 11. Normal approximation, frequency properties | [BDA3 Chapter 4](chapter_notes/BDA_notes_ch4.pdf) | [Lecture 11.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=8cde4d40-1b77-4110-af98-af5400ca38b5), <br> [Lecture 11.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=d83f6553-1516-475f-8898-af5400dd7b50) | | | |
| | 12. Extended topics | Optional: BDA3 Chapter 8, <br> BDA3 Chapter 14-18, <br> BDA3 Chapter 21 | Optional: <br> [Lecture 12.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=66f5a95d-3288-4338-8b35-af5b00ca9ffc), <br> [Lecture 12.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=aa2d2d7e-a762-40e7-9d41-af5b00dd0db9) | Project work | | 15 May |
| | 13. Project feedback | | | Project feedback | | 22 May |
### 1) Course introduction, BDA 3 Ch 1, prerequisites assignment
Course practicalities, material, assignments, project work, peergrading, TA sessions, prerequisites, chat, etc.
- Login to the course chat (link will be emailed to the registered students and volunteer TAs)
- Sign in to [Peergrade](https://www.peergrade.io) with the class code shared in email
- Watch videos
- [Computational probabilistic modeling](https://www.youtube.com/watch?v=ukE5aqdoLZI) (15min)
- [Introduction to uncertainty and modelling](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a441a604-ba91-4f51-b88c-af0700b9f2b1) (48min)
- [Introduction to the course contents](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=13fc7889-cfd1-4d99-996c-a9f400f6e5a2) (8min)
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
/- Read BDA3 Chapter 1
- start with [reading instructions for Chapter 1](chapter_notes/BDA_notes_ch1.pdf) and afterwards read the additional comments in the same document
- There are no R/Python demos for Chapter 1
- Make and submit [Assignment 1](assignments/assignment1). **Deadline Sunday 26 February 23:59 UTC+0**
- This assignment checks that you have sufficient prerequisite skills (basic probability calculus, and R or Python)
- Rubric questions used in peergrading are included above
- [General information about assignments](assignments_gsu.html)
- [R markdown template for assignments](https://github.com/avehtari/BDA_course_Aalto/tree/master/templates/)
- [FAQ for the assignments](FAQ.html) has solutions to commonly asked questions related RStudio setup, errors during package installations, etc.
- Optional: Make BDA3 exercises 1.1-1.4, 1.6-1.8 ([model solutions available for 1.1-1.6](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
- Start reading Chapters 1+2, see instructions below
### 2) BDA3 Ch 1+2, basics of Bayesian inference
BDA3 Chapters 1+2, basics of Bayesian inference, observation model, likelihood, posterior and binomial model, predictive distribution and benefit of integration, priors and prior information, and one parameter normal model.
- Read BDA3 Chapter 2
- see [reading instructions for Chapter 2](chapter_notes/BDA_notes_ch2.pdf)
- Watch videos [Lecture 2.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=66aa86ca-9346-4f7f-af76-af0e00b9cb83) and [Lecture 2.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0b59d2d7-8e48-406c-a51e-af0e00ca3035) on basics of Bayesian inference, observation model, likelihood, posterior and binomial model, predictive distribution and benefit of integration, priors and prior information, and one parameter normal model. BDA3 Ch 1+2.
- [Extra explanations about likelihood, normalization term, density, and conditioning on model M](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=158d119d-8673-4120-8669-ac3900c13304)
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Optional summary videos:
- [2.1 Observation model, likelihood, posterior and binomial model](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=66aa86ca-9346-4f7f-af76-af0e00b9cb83)
- [2.2 Predictive distribution and benefit of integration](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0b59d2d7-8e48-406c-a51e-af0e00ca3035)
- Read [the additional comments for Chapter 2](chapter_notes/BDA_notes_ch2.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 2
- Make and submit [Assignment 2](assignments/assignment2). **Deadline Monday 6 March 15:59 UTC+0**
- Rubric questions used in peergrading are included above
- Review Assignment 1 done by your peers before 15:59 UTC+0 4 March
- Reflect on your feedback
- Optional: Make BDA3 exercises 2.1-2.5, 2.8, 2.9, 2.14, 2.17, 2.22 ([model solutions available for 2.1-2.5, 2.7-2.13, 2.16, 2.17, 2.20](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf), and 2.14 is in course slides)
- Start reading Chapter 3, see instructions below
### 3) BDA3 Ch 3, multidimensional posterior
Multiparameter models, joint, marginal and conditional distribution, normal model, bioassay example, grid sampling and grid evaluation. BDA3 Ch 3.
- Read BDA3 Chapter 3
- see [reading instructions for Chapter 3](chapter_notes/BDA_notes_ch3.pdf)
- Watch [Lecture 3](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=ca0ea8b9-31f0-406d-9d2f-af1600f9826d) on multiparameter models, joint, marginal and conditional distribution, normal model, bioassay example, grid sampling and grid evaluation. BDA3 Ch 3.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Read [the additional comments for Chapter 3](chapter_notes/BDA_notes_ch3.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 3
- Make and submit [Assignment 3](assignments/assignment3.pdf). **Deadline Monday 13 March 15:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 3](assignments/assignment3_rubric.html)
- Review Assignment 2 done by your peers before 15:59 UTC+0 11 March, and reflect on your feedback
- Optional: Make BDA3 exercises 3.2, 3.3, 3.9 ([model solutions available for 3.1-3.3, 3.5, 3.9, 3.10](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
- Start reading Chapter 10, see instructions below
### 4) BDA3 Ch 10, Monte Carlo
Numerical issues, Monte Carlo, how many simulation draws are needed, how many digits to report, direct simulation, curse of dimensionality, rejection sampling, and importance sampling. BDA3 Ch 10.
- Read BDA3 Chapter 10
- see [reading instructions for Chapter 10](chapter_notes/BDA_notes_ch10.pdf)
- Watch [Lecture 4.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=ab7b792b-50ef-42f4-90f5-af1c00b98b48) on numerical issues, Monte Carlo, how many simulation draws are needed, how many digits to report, and [Lecture 4.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=fe23cc92-4d90-4f68-9148-af1c00e29790) on direct simulation, curse of dimensionality, rejection sampling, and importance sampling. BDA3 Ch 10.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Read [the additional comments for Chapter 10](chapter_notes/BDA_notes_ch10.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 10
- Make and submit [Assignment 4](assignments/assignment4.pdf). **Deadline Monday 20 March 15:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 4](assignments/assignment4_rubric.html)
- Review Assignment 3 done by your peers before 15:59 UTC+0 18 March, and reflect on your feedback
- Optional: Make BDA3 exercises 10.1, 10.2 ([model solution available for 10.4](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
- Start reading Chapter 11, see instructions below
### 5) BDA3 Ch 11, Markov chain Monte Carlo
Markov chain Monte Carlo, Gibbs sampling, Metropolis algorithm, warm-up, convergence diagnostics, R-hat, and effective sample size. BDA3 Ch 11.
- Read BDA3 Chapter 11
- see [reading instructions for Chapter 11](chapter_notes/BDA_notes_ch11.pdf)
- Watch [Lecture 5.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=96b8a8a9-60b6-4a7b-bca9-af2300b98547) on Markov chain Monte Carlo, Gibbs sampling, Metropolis algorithm, and [Lecture 5.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=fdd0c498-4e4a-4586-8ba9-af2300ca712d) on warm-up, convergence diagnostics, R-hat, and effective sample size. BDA3 Ch 11.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Read [the additional comments for Chapter 11](chapter_notes/BDA_notes_ch11.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 11
- Make and submit [Assignment 5](assignments/assignment5.pdf). **Deadline Monday 27 March 15:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 5](assignments/assignment5_rubric.html)
- Review Assignment 4 done by your peers before 15:59 UTC+0 25 March, and reflect on your feedback
- Optional: Make BDA3 exercise 11.1 ([model solution available for 11.1](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
- Start reading Chapter 12 + Stan material, see instructions below
### 6) BDA3 Ch 12 + Stan, HMC, PPL, Stan
HMC, NUTS, dynamic HMC and HMC specific convergence diagnostics, probabilistic programming and Stan. BDA3 Ch 12 + [extra material](index.html#stan)
- Read BDA3 Chapter 12
- see [reading instructions for Chapter 12](chapter_notes/BDA_notes_ch12.pdf)
- Watch [Lecture 6.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=4cc8f763-ca6a-4f2f-b19c-af2a00ba8eb4) on HMC, NUTS, dynamic HMC and HMC specific convergence diagnostics, and [Lecture 6.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f4eb4269-bb83-49aa-9243-af2a00ccb873) on probabilistic programming and Stan. BDA3 Ch 12 + [extra material](#stan).
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Optional: [Stan Extra introduction recorded 2020](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f4b61f2a-4a94-43f7-828c-ac460144f64f) Golf putting example, main features of Stan, benefits of probabilistic programming, and comparison to some other software.
- Read [the additional comments for Chapter 12](chapter_notes/BDA_notes_ch12.pdf)
- Read [Stan introduction article](http://www.stat.columbia.edu/~gelman/research/published/Stan-paper-aug-2015.pdf)
- Check [R demos](demos.html#BDA_R_demos) for RStan or [Python demos](demos.html#BDA_Python_demos) for PyStan
- Additional material for Stan:
- [Documentation](http://mc-stan.org/documentation/)
- [RStan installation](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started)
- [PyStan installation](https://pystan.readthedocs.io/en/latest/getting_started.html)
- Basics of Bayesian inference and Stan, Jonah Gabry & Lauren Kennedy [Part 1](https://www.youtube.com/watch?v=ZRpo41l02KQ&t=8s&list=PLuwyh42iHquU4hUBQs20hkBsKSMrp6H0J&index=6) and [Part 2](https://www.youtube.com/watch?v=6cc4N1vT8pk&t=0s&list=PLuwyh42iHquU4hUBQs20hkBsKSMrp6H0J&index=7)
- Make and submit [Assignment 6](assignments/assignment6.pdf). **Deadline Monday 3 April 15:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 6](assignments/assignment6_rubric.html)
- Review Assignment 5 done by your peers before 15:59 UTC+0 1 April, and reflect on your feedback
- Start reading Chapter 5 + Stan material, see instructions below
### 7) BDA3 Ch 5, hierarchical models
Hierarchical models and exchangeability. BDA3 Ch 5.
- Read BDA3 Chapter 5
- see [reading instructions for Chapter 5](chapter_notes/BDA_notes_ch5.pdf)
- Watch [Lecture 7.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=6cf678f1-395d-4c91-87c7-af3800da0ff4) on hierarchical models, and [Lecture 7.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=2320d64f-1e40-45b0-9b17-af3800c9f435) on exchangeability. BDA3 Ch 5.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Read [the additional comments for Chapter 5](chapter_notes/BDA_notes_ch5.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 5
- Make and submit [Assignment 7](assignments/assignment7.pdf). **Deadline Monday 17 April 21:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 7](assignments/assignment7_rubric.html)
- Review Assignment 6 done by your peers before 21:59 UTC+0 16 April, and reflect on your feedback
- Optional: Make BDA3 exercises 5.1 and 5.1 ([model solution available for 5.3-5.5, 5.7-5.12](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
- Start reading Chapters 6-7 and additional material, see instructions below.
### 8) BDA3 Ch 6+7 + extra material, model checking, cross-validation
Model checking and cross-validation.
- Read BDA3 Chapters 6 and 7 (skip 7.2 and 7.3)
- see [reading instructions for Chapter 6](chapter_notes/BDA_notes_ch6.pdf) and
[Chapter 7](chapter_notes/BDA_notes_ch7.pdf)
- Read [Visualization in Bayesian workflow](https://doi.org/10.1111/rssa.12378)
- more about workflow and examples of prior predictive checking and LOO-CV probability integral transformations
- Read [Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC](https://arxiv.org/abs/1507.04544) ([Journal link](https://doi.org/10.1007/s11222-016-9696-4))
- replaces BDA3 Sections 7.2 and 7.3 on cross-validation
- Watch [Lecture 8.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=2c578385-aedc-4657-bc10-af3f00ca3485) on model checking, and [Lecture 8.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f99824f2-2028-43d3-b6c5-af3f00dcafdb) on cross-validation part 1. BDA3 Ch 6-7 + extra material.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Read [the additional comments for Chapter 6](chapter_notes/BDA_notes_ch6.pdf) and [Chapter 7](chapter_notes/BDA_notes_ch7.pdf)
- Check [R demos](demos.html#BDA_R_demos) or [Python demos](demos.html#BDA_Python_demos) for Chapter 6
- Additional reading material
- [Model selection](https://avehtari.github.io/modelselection/)
- [Cross-validation FAQ](https://avehtari.github.io/modelselection/CV-FAQ.html)
- No new assignment in this block
- Start [the project work](project.Rmd)
- Optional: Make BDA3 exercise 6.1 ([model solution available for 5.3-5.5, 5.7-5.12](http://www.stat.columbia.edu/~gelman/book/solutions3.pdf))
### 9) BDA3 Ch 7, extra material, model comparison and selection
PSIS-LOO, K-fold-CV, model comparison and selection. Extra lecture on variable selection with projection predictive variable selection.
- Read Chapter 7 (no 7.2 and 7.3)
- see [reading instructions for Chapter 7](chapter_notes/BDA_notes_ch7.pdf)
- Read [Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC](https://arxiv.org/abs/1507.04544) ([Journal link](https://doi.org/10.1007/s11222-016-9696-4))
- replaces BDA3 Sections 7.2 and 7.3 on cross-validation
- Watch [Lecture 9.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a67324b3-dd4d-48f0-8873-af4600cb8fd0) PSIS-LOO and K-fold-CV.
- Optional: [Lecture 9.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0649acb6-d782-4667-86db-af4600da8d2f) model comparison and selection.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Additional reading material
- [Model selection](https://avehtari.github.io/modelselection/)
- [Cross-validation FAQ](https://avehtari.github.io/modelselection/CV-FAQ.html)
- Make and submit [Assignment 8](assignments/assignment8.pdf). **Deadline Monday 01 May 21:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 8](assignments/assignment8_rubric.html)
- Review Assignment 7 done by your peers before 21:59 UTC+0 29 April, and reflect on your feedback
- Start reading Chapter 9, see instructions below.
### 10) BDA3 Ch 9, decision analysis
Decision analysis. BDA3 Ch 9.
- Read Chapter 9
- see [reading instructions for Chapter 9](chapter_notes/BDA_notes_ch9.pdf)
- Watch [Lecture 10.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=a22aab9c-953c-4ea8-b6ec-af4d00c9fe58) on decision analysis. BDA3 Ch 9.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Project presentation info will be updated soon.
- Make and submit [Assignment 9](assignments/assignment9.pdf). **Deadline Monday 8 May 21:59 UTC+0**
- [Rubric questions used in peergrading for Assignment 9](assignments/assignment9_rubric.html)
- Review Assignment 8 done by your peers before 21:59 UTC+0 6 May, and reflect on your feedback
- Start reading Chapter 4, see instructions below.
### 11) BDA3 Ch 4 + extra material, normal approximation, frequency properties
Normal approximation (Laplace approximation), and large sample theory and counter examples. BDA3 Ch 4.
- Read Chapter 4
- see [reading instructions for Chapter 4](chapter_notes/BDA_notes_ch4.pdf)
- Watch [Lecture 11.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=8cde4d40-1b77-4110-af98-af5400ca38b5) on normal approximation (Laplace approximation) and [Lecture 11.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=d83f6553-1516-475f-8898-af5400dd7b50) on large sample theory and counter examples. BDA3 Ch 4.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- No new assignment. Work on project.
- Review Assignment 9 done by your peers before 21:59 UTC+0 13 May, and reflect on your feedback
### 12) extra material + overview of BDA3 Ch 8, 14-18, 21
Frequency evaluation of Bayesian methods, hypothesis testing and variable selection. Overview of modeling data collection, BDA3 Ch 8, linear models, BDA Ch 14-18, lasso, horseshoe and Gaussian processes, BDA3 Ch 21.
- These lectures are optional, but especially the lecture on hypothesis testing and variable selection is useful for project work.
- Watch [Lecture 12.1](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=66f5a95d-3288-4338-8b35-af5b00ca9ffc) on frequency evaluation, hypothesis testing and variable selection and [Lecture 12.2](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=aa2d2d7e-a762-40e7-9d41-af5b00dd0db9) overview of modeling data collection, BDA3 Ch 8, linear models, BDA Ch 14-18, lasso, horseshoe and Gaussian processes, BDA3 Ch 21.
- [Slides](https://github.com/avehtari/BDA_course_Aalto/tree/master/slides)
- Work on project. TAs help with projects. **Project deadline 15 May 21:59 UTC+0**
### 13) Project evaluation
- Project report deadline 7 May 21:59 UTC+0 (submit to peergrade).
- **Review project reports** done by your peers before **22 May 15:59 UTC+0**, and reflect on your feedback
## R and Python
We strongly recommend using R in the course as there are more packages for Stan and statistical analysis in R. If you are already fluent in Python, but not in R, then using Python may be easier, but it can still be more useful to learn also R. Unless you are already experienced and have figured out your preferred way to work with R, we recommend
- installing [RStudio Desktop](https://posit.co/download/rstudio-desktop/),
See [FAQ](FAQ.html) for frequently asked questions about R problems in this course. The [demo codes](demos.html) provide useful starting points for all the assignments.
- For learning R programming basics
- [Garrett Grolemund, Hands-On Programming with R](https://rstudio-education.github.io/hopr/)
- For learning basic and advanced plotting using R
- [Kieran Healy, Data Visualization - A practical introduction](https://socviz.co/)
- [Antony Unwin, Graphical Data Analysis with R](http://www.gradaanwr.net/)