Week 3 HW:
McElreath’s HW Link: https://github.com/rmcelreath/statrethinking_winter2019/blob/master/homework/week03.pdf
HW
Q1. 5M1 - Invent your own example of a spurious correlation. An outcome variable should be correlated with both predictor variables. But when both predictors are entered in the same model, the correlation between the outcome and one of the predictors should mostly vanish (or at least be greatly reduced).
Q2. 5M2 - Invent your own example of a masked relationship. An outcome variable should be correlated with both predictor variables, but in opposite directions. And the two predictor variables should be correlated with one another.
Q3. HW1
Q4. HW2
Q5: HW3
Bonus (Varun will present)
Q6. 6H1: Use the Waffle House data, data(WaffleDivorce), to find the total causal influence of number of Waffle Houses on divorce rate. Justify your model or models with a causal graph.
Discussion order
3,4,5,1,2