Causal Identification
Example: University Admissions
To illustrate causal identification, we continue with the university admissions example introduced on the Directed Acyclic Graphs page.
Research Questions
Before we pursue causal identification, we need to step back and ask why causation matters here. We are interested in the effect of on . Why don’t we simply run a crosstab on the available data and compare the admission rates of students who received tutoring and those who did not?
Data Set & Statistics
For this example, we have a synthetic data set with one variable for each node in our causal DAG (CDAG).
First 10 applicants in the data set
| Initial Math Score | Math Tutoring (hours) | Final Math Score | University Admission |
|---|---|---|---|
| 82 | 0 | 75 | False |
| 82 | 8 | 86 | False |
| 66 | 8 | 88 | True |
| 85 | 0 | 72 | False |
| 100 | 0 | 90 | True |
| 93 | 0 | 93 | True |
| 64 | 8 | 55 | True |
| 73 | 12 | 99 | True |
| 76 | 4 | 71 | False |
| 74 | 4 | 100 | True |
We recorded the hours of tutoring each student received, . For this first analysis, we recoded as for zero hours and for any tutoring.
We begin with a simple crosstab comparing admission rates for the two groups.
| Math Tutoring | Applicants | Admitted | Admission Rate |
|---|---|---|---|
| False | 17,060 | 9,711 | 56.92% |
| True | 32,940 | 15,899 | 48.27% |
At first glance, this seems counterintuitive and disappointing. Students who received tutoring had a lower admission rate than those who received none. To understand this result, we must first be clear about what the crosstab tells us. Each admission rate answers an observational question.
The operator emphasizes that we merely observe which students received tutoring. Our crosstab therefore reveals the association between and .
We can trace this association in our graph.
Our crosstab includes only and . Yet the association between these two nodes can reflect both paths shown in the graph. Leaving the scores out of the table does nothing to block either path. So we have a correct answer, but we may have asked the wrong question.
Our crosstab answers an observational question. How often were students admitted in each tutoring group? The causal question asks how the probability of admission would change if we assigned tutoring. This is the distinction between seeing and doing.
Causal and Non-Causal Paths
So how can we answer the causal question? The graph above shows two paths between and . We are interested in the blue path, the causal path. The magenta path is non-causal and runs through a common cause, . This path can contribute to the observed association because influences both and .
In a CDAG, we can trace a path by following adjacent arcs in either direction without visiting a node twice. Start at the treatment and trace a path to the outcome .
- On a causal path, all arcs are directed away from the treatment and point along the path toward the outcome. The path can be a single arc , or it can pass through a mediator.
- On a non-causal path, at least one arc points against the direction in which we are tracing the path. A common cause gives us the non-causal path . When open, this path can contribute to an observed association between and .
In this example, causal identification asks whether we can isolate the causal path so we can estimate the causal effect. The Adjustment Criterion tells us when we can do this by adjusting for a set of nodes.
Adjustment Criterion
The Adjustment Criterion (Shpitser et al., 2010 ) is one of several graphical identification criteria. In our admissions example, we seek a set of nodes we can adjust for to block every non-causal path between and and keep every causal path from tutoring to admission open. In our graph, the magenta path must be blocked and the blue path must remain open.
Can we block the non-causal path and keep the causal path open? We begin by examining the CDAG before adjustment. Which paths are open and which are blocked?
In Structures in a CDAG, we learned when a chain, a common cause, or a common effect leaves a path open. We can now apply those rules to the two paths in our CDAG.
Causal Path
The causal path in the CDAG is a chain, . As described in Structures in a CDAG, the two endpoints can be marginally (unconditionally) dependent because the connection is open (unblocked). The Adjustment Criterion requires this path to remain open.
Non-Causal Path
The non-causal path in the CDAG includes two connections:
- A common cause:
- A chain:
Both connections are open (unblocked), so the endpoints of each can be marginally (unconditionally) dependent. The Adjustment Criterion requires us to block this non-causal path.
Blocking Paths
As it stands, both paths in our CDAG are open. Which nodes can we adjust for to block the non-causal path and keep the causal path open?
What does “adjust for” mean in practice? We can control for a variable in a regression, condition on its value, stratify by its value, or match students on its value.
At this point, we only need to determine which nodes, if any, we should adjust for to block the non-causal paths while keeping the causal paths open.
In our case, there are two candidate nodes, and .
Candidate 1. Adjust for Final Math Score
Adjust for
| Path | Requirement | After Adjustment for |
|---|---|---|
| Causal Path | Open | Blocked |
| Non-Causal Path | Blocked | Blocked |
Adjusting for blocks both paths. Because it blocks the causal path as well, this adjustment does not identify the effect of on .
Candidate 2. Adjust for Initial Math Score
Adjust for
| Path | Requirement | After Adjustment for |
|---|---|---|
| Causal Path | Open | Open |
| Non-Causal Path | Blocked | Blocked |
Adjusting for meets both requirements. With this adjustment, the causal effect of on is identified.
In other words, we are comparing apples to apples. We compare students who received tutoring with students who did not, holding fixed.
For this comparison, we need to record , , and . Recording is optional.
Unobserved Confounders
Thus far, we have assumed that our example has no unobserved (also called hidden or latent) variables. However, if we had reason to believe that there is another variable, , which appears to be relevant on theoretical grounds but was not recorded in the data set, identification might no longer be possible. Why? Let us assume is a hidden common cause of and . Adding introduces a new non-causal path between and : .
Given that is hidden, there is no way to adjust for it. None of the observed nodes lets us block this non-causal path while keeping the causal path open. Hence, the causal effect is no longer identified and thus can no longer be estimated without bias.
Adjusting for leaves the new path through open. Adjusting for would block that path, but it would also block the causal path to . We rely on domain knowledge to justify the assumption that no unobserved common cause leaves a non-causal path open between and after adjustment.
Causal Effect Estimation
Apart from the initial crosstab, we have not used the data set. We reached our conclusions by examining the CDAG. Under the assumptions of the original graph, adjusting for identifies the causal effect. We can now use the data to estimate its size.
This is where we could naturally turn to Bayesian networks. A Bayesian network is a parameterized DAG. We can use the DAG and the corresponding data to build a Bayesian network and use it as our inference engine for estimating causal effects.
We can also estimate the effect with other methods. For instance, we can use linear regression to adjust for .
The regression codes as for no tutoring and for any tutoring, grouping together students who received 4, 8, or 12 hours.
At the same , the estimated probability of admission is about 11 percentage points higher for students who received tutoring than for those who did not. In the unadjusted crosstab, the admission rate was about 9 percentage points lower for students who received tutoring. Under the assumptions of the original CDAG and the fitted regression, the adjusted difference estimates the causal effect of tutoring on admission.
In this example, BayesiaLab’s Direct Effects analysis adjusts for and leaves free to vary, so the estimated effect of tutoring on admission includes its influence through .