-
Notifications
You must be signed in to change notification settings - Fork 8
/
notes-01_introduction_bda3-01.Rmd
68 lines (56 loc) · 3.01 KB
/
notes-01_introduction_bda3-01.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
# Section 1. Course introduction and prerequisites
2021-08-17
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, dpi = 300, comment = "#>")
```
## Resources
- BDA chapter 1 and [reading instructions](`r paste0(CM_URL, "BDA3_ch01_reading-instructions.pdf")`)
- lectures:
- ['Computational probabilistic modeling'](https://www.youtube.com/watch?v=ukE5aqdoLZI)
- ['Introduction to uncertainty and modelling'](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=d841f429-9c3d-4d24-8228-a9f400efda7b)
- video: ['Introduction to the course contents'](https://aalto.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=13fc7889-cfd1-4d99-996c-a9f400f6e5a2)
- [slides](`r paste0(CM_URL, "bayes_intro.pdf")`)
- [Assignment 1](`r paste0(CM_URL, "assignment-01.pdf")`)
## Notes
### Reading instructions
- model vs. likelihood for $p(y|\theta, M)$
- *model* when the function is in terms of $y$
- should be written as $p_y(y|\theta, M)$
- used to describe uncertainty about $y$ given values of $\theta$ and $M$
- *likelihood* when the function is in terms of $\theta$
- should be written as $p_\theta(y|\theta, M)$
- the posterior distribution describes the probability for different values of $\theta$ given fixed values for $y$
- "The likelihood function is unnormalized probability distribution describing uncertainty related to $\theta$ (and that’s why Bayes rule has the normalization term to get the posterior distribution)."
- *exchangeability*
1. independence is stronger condition than exchangeability
2. independence implies exchangeability
3. exchangeability does not imply independence
4. exchangeability is related to what information is available instead of the properties of unknown underlying data generating mechanism
### Lecture notes
#### Introduction to uncertainty and modelling {-}
- two types of uncertainty:
- *aleatoric*: due to randomness
- *epistemic*: due to lack of knowledge
- model vs. likelihood:
- model
- $p_y(y|\theta, M)$
- a function of $y$ given fixed values of $\theta$
- describes *aleatoric* uncertainty
- likelihood
- $p_\theta(y|\theta, M)$
- function of $\theta$ given fixed values of $y$
- provides information about the *epistemic* uncertainty
- is *not* a probability distribution
- Bayes rule combines the likelihood with prior uncertainty to update the posterior uncertainty
- example with a bag containing red and yellow chips:
- probability of red = #red / #red + #yellow = $\theta$
- $p(y = \text{red} | \theta)$: aleatoric uncertainty
- predicting the probability of pulling a red chip has uncertainty due to randomness even if we new $\theta$ exactly
- $p(\theta)$: epistemic uncertainty
- we don't know $\theta$ but could compute it exactly if we knew the contents of the bag
#### Introduction to the course contents {-}
- benefits of Bayesian approach
1. integrate over uncertainties to focus on interesting parts
2. use relevant prior information
3. hierarchical models
4. model checking and evaluation