Exercise 6
- Due No Due Date
- Points None
6.1 Linear Gaussian SCM with an open backdoor
Consider the DAG and SCM from slide 9 on Lecture 6.
X1:=N1X2:=7X1+N2X3:=4X2+N3X4:=2X1+3X3+N4
where each Ni is Gaussian with mean 0 and variance 1. Note that the causal effect of
X2 on
X4 is 12. Which of the following regressions give the correct value (i.e. the estimated constant before
X2 becomes 12 )?
a) X4∼X2
b) X4∼X1+X2
c) X4∼X2+X3
d) X4∼X1+X2+X3
Hint: Use the backdoor criterion and check your answer with the code ex8_1.ipynb Links to an external site.
6.2 Linear Gaussian SCM - another example
Consider the SCM and DAG from Lecture 6 below. Write code, using the ols function performing ordinary least squares, similar to previous exercise, to check the statements made on slide 19 on the lecture.
6.3 Parental Adjustment
Explain why the theorem on parental adjustment (see slide 28 on Lecture 6) follows from the backdoor criterion.
6.4 The backdoor criterion in another Linear Gaussian SCM
Solve the exercise below using the backdoor criterion, and check your results using the code 8_4.ipynb Links to an external site.
6.5 The frontdoor criterion and smoking
a) Use the frontdoor criterion and the information below to analytically determine
P(cancer=1|do(Smoke=0))P(cancer=1|do(Smoke=1))
b) Suggest changes in the DAG that would mean that conditions (i), (ii) or (iii) in the frontdoor condition would be violated. Also describe what these changes could correspond to in real life.
6.6 Finding the causal structure - Myopia example
On Lecture 6 we described how statistical independence tests could be used to determine that the causal structure explaining the myopia data is the following (figure to the left), ie that the use of night light (NL) does not cause child myopia (CM) even if these two variables are correlated.
But at the end of the lecture we claimed that the 3 structures in the figure to the right could not be separated purely from statistical independence tests. Why could we in this example rule out the two other possible structures ? (Hint: What would these alternative directions of the arrows imply in real life?)
Solution: solu6.pdf Download solu6.pdf
Code solving 6.2 : exercise6_2.ipynb Links to an external site.