-
Notifications
You must be signed in to change notification settings - Fork 7
/
exercises-07.Rmd
31 lines (20 loc) · 1.49 KB
/
exercises-07.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
# Chapter 5 Exercises
2021-10-31
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, comment = "#>", dpi = 300)
```
> Complete question 5.1.
## Question 1
**Exchangeability with known model parameters: For each of the following three examples, answer: (i) Are observations $y_1$ and $y_2$ exchangeable? (ii) Are observations $y_1$ and $y_2$ independent? (iii) Can we act *as if* the two observations are independent?**
**a) A box has one black ball and one white ball.**
**We pick a ball $y_1$ at random, put it back, and pick another ball $y_2$ at random.**
The observations are exchangeable, independent, and we can act as if they are independent.
**b) A box has one black ball and one white ball.**
**We pick a ball $y_1$ at random, we do not put it back, then we pick ball $y_2$.**
The observations are exchangeable because we don't have information about which ball is most likely to be picked first, but they are not independent because with $y_1$, we know the result for $y_2$.
I don't think we can treat the observations as independent
**c) A box has a million black balls and a million white balls.**
**We pick a ball $y_1$ at random, we do not put it back, then we pick ball $y_2$ at random.**
The observations are exchangeable for the same reason as in the answer to (b).
The observations are not independent because we will know that, after $y_1$, the other color is slightly more likely to be picked.
Since there are so many balls, we can likely treat the observations are independent.