CS6480: Causal Inference and Learning
Instructions
Questions
1. (5 points) Define and give examples for the following assumptions of causal inference.
(a) SUTVA (2 points)
(b) Large Sample Size (1 point)
(c) No Measurement Error (1 point)
(d) Double Blindedness (1 point)
2. (8 points) Consider the following DAG.
(a) List all of the sets of variables that satisfy the backdoor criterion to determine the causal effect of X on Y (2 points)
(b) List all of the minimal sets of variables that satisfy the backdoor criterion to determine the causal effect of X on Y (i.e., any set of variables such that, if you removed any one of the variables from the set, it would no longer meet the criterion)(2 points)
(c) List all the minimal sets of variables that need to be measured in order to identify the effect of D on Y (2 points)
(d) Now suppose we want to know the causal effect of intervening on 2 variables. List all the minimal sets of variables that need to be measured in order to identify the effect of set
{D,W} on Y , i.e., P(Y = y|do(D = d),do(W = w))(2 points) 3. (11 Points) Consider the SCM:
X := NX
Y := 4X + NY
i.i.d.
NX,NY ∼ N(0,1)
• The following quantities are normal distributions. What is the mean and variance of each of these quantities? (5 Points)
(a) PY
(b) PY |X=k
(c) PY |do(X=k)
(d) PX|Y =k
(e) PX|do(Y =k)
• Write Python code to generate 100 samples from each of below distributions and visualize the results using appropriate plots (histogram, scatter plot etc). (6 Points)
(a) PX,Y (b) PY |X=2
(c) PY |do(X=2)
The graph above describes the relationship between the syndrome Z, the treatment (or drug) X and the outcome Y (death or survival) for the population of patients. Suppose that a fraction of the population r suffers from the syndrome (i.e., have Z = 1) with the remaining proportion 1 − r not having the syndrome (i.e., Z = 0). Let X = 1 represent a patient taking the drug and X = 0 represent a patient not taking the drug. And let Y = 1 indicate that a patient dies and Y = 0 indicate that a patient survives. Assume that patients without the syndrome die with probability p1 if they don’t take the drug and die with probability p2 if they do take the drug. Patients with the syndrome die with probability p3 if they don’t take the drug and die with probability p4 if they do take the drug. The complication is that having the syndrome makes it uncomfortable to take the potentially life saving drug. Assume that patients with the syndrome take the drug with probability q2 and patients without the syndrome take the drug with probability q1.
(a) Find the joint distribution P(x,y,z) for all x,y,z (8 values) in terms of the parameters r,p1,p2,p3,p4,q1,q2.(1 point)
(b) Calculate the difference in death probabilities between takers and non takers of the drug, P(y = 1|x = 1) − P(y = 1|x = 0)(1 point)
(c) Calculate the difference in death probabilities between takers and non takers of the drug for those with z = 1 (having the syndrome), P(y = 1|x = 1,z = 1) − P(y = 1|x = 0,z = 1)(1 point)
(d) Calculate the difference in death probabilities between takers and nontakers of the drug for those with z = 0 (not having the syndrome)(1 point)
(e) Find a combination of parameter values that exhibit Simpson’s paradox (i.e., where (c) and (d) show negative effect (lower death rate) but (b) doesn’t(2 points)
(f) Compute P(y|do(x)) for all values of x and y(2 points)
(g) Compute the average treatment effect P(y = 1|do(x = 1)) − P(y = 1|do(x = 0)). How does this quantity differ from the quantity computed in (b) above? Which is more relevant in assessing the effectiveness of the treatment? Explain(2 points)
5. (6 points(3+3)) For each of the two graphs below, using the rules of do-calculus, explain whether p(y|do(X = x)) is identifiable or not?dashed nodes represents unobserved variables.





