FRTN65
Exercise 6
Skip To Content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • My dashboard
  • FRTN65
  • Assignments
  • Exercise 6
2024 HT/Autumn
  • Home
  • Modules
  • Quizzes
  • Assignments
  • Syllabus

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.

 gaussianDAG.pngX1:=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: Check your answer with the code ex06_01_check.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 the previous exercise, to check the statements made on the slide (from Lecture 6) below.

ex8_2.png

 

6.3 Parental Adjustment

Explain why the theorem for getting a valid adjustment set using parental adjustment (see slide from Lecture 6 below) follows from the backdoor criterion.

ex06_3_PA_slide.png

 

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 ex06_04_check.ipynb Links to an external site.

ex8_4.png

 

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.

frontdoor.png

 

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.

myopia.png unique.png

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 : ex06_02_solution.ipynb Links to an external site.

0
Please include a description
Additional Comments:
Rating max score to > pts
Please include a rating title

Rubric

Find Rubric
Please include a title
Find a Rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
Total Points: 5 out of 5
Previous
Next
Lecture 6. Causal Inference - Learning Causal Effects Lab 1 - Peer review