Skip to Content
BayesiaLabKey ConceptsCausal Identification

Causal Identification

Example: University Admissions

To illustrate causal identification, we continue with the university admissions example introduced on the Directed Acyclic Graphs page.

Loading SVG...
Click to Zoom

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 Math Tutoring\mathit{Math\ Tutoring} on University Admission\mathit{University\ Admission}. 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).

Initial Math Score∈[50,100]Math Tutoring∈{0,4,8,12}(hours)Final Math Score∈[50,100]University Admission∈{False,True}\begin{aligned} \mathit{Initial\ Math\ Score} &\in [50, 100] \\ \mathit{Math\ Tutoring} &\in \{0, 4, 8, 12\} \quad \text{(hours)} \\ \mathit{Final\ Math\ Score} &\in [50, 100] \\ \mathit{University\ Admission} &\in \{\mathrm{False}, \mathrm{True}\} \end{aligned}

First 10 applicants in the data set

Initial Math ScoreMath Tutoring (hours)Final Math ScoreUniversity Admission
82075False
82886False
66888True
85072False
100090True
93093True
64855True
731299True
76471False
744100True

We recorded the hours of tutoring each student received, Math Tutoring∈{0,4,8,12}\mathit{Math\ Tutoring} \in \{0, 4, 8, 12\}. For this first analysis, we recoded Math Tutoring\mathit{Math\ Tutoring} as False\mathrm{False} for zero hours and True\mathrm{True} for any tutoring.

We begin with a simple crosstab comparing admission rates for the two groups.

Math TutoringApplicantsAdmittedAdmission Rate
False17,0609,71156.92%
True32,94015,89948.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.

P(University Admission=True∣see⁡(Math Tutoring=False))≈56.92%P(University Admission=True∣see⁡(Math Tutoring=True))≈48.27%\begin{aligned} P\bigl(\mathit{University\ Admission} = \mathrm{True} \mid \operatorname{\mathbf{see}}(\mathit{Math\ Tutoring} = \mathrm{False})\bigr) &\approx 56.92\% \\ P\bigl(\mathit{University\ Admission} = \mathrm{True} \mid \operatorname{\mathbf{see}}(\mathit{Math\ Tutoring} = \mathrm{True})\bigr) &\approx 48.27\% \end{aligned}

The see⁡\operatorname{\mathbf{see}} operator emphasizes that we merely observe which students received tutoring. Our crosstab therefore reveals the association between Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission}.

We can trace this association in our graph.

Loading SVG...
Click to Zoom

Our crosstab includes only Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission}. 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 Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission}. We are interested in the blue path, the causal path. The magenta path is non-causal and runs through a common cause, Math Tutoring←Initial Math Score→Final Math Score→University Admission\mathit{Math\ Tutoring} \leftarrow \mathit{Initial\ Math\ Score} \rightarrow \mathit{Final\ Math\ Score} \rightarrow \mathit{University\ Admission}. This path can contribute to the observed association because Initial Math Score\mathit{Initial\ Math\ Score} influences both Math Tutoring\mathit{Math\ Tutoring} and Final Math Score\mathit{Final\ Math\ Score}.

In a CDAG, we can trace a path by following adjacent arcs in either direction without visiting a node twice. Start at the treatment XX and trace a path to the outcome YY.

  • 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 X→YX \rightarrow Y, 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 ZZ gives us the non-causal path X←Z→YX \leftarrow Z \rightarrow Y. When open, this path can contribute to an observed association between XX and YY.

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 Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission} 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

Loading SVG...
Click to Zoom

The causal path in the CDAG is a chain, Math Tutoring→Final Math Score→University Admission\mathit{Math\ Tutoring} \rightarrow \mathit{Final\ Math\ Score} \rightarrow \mathit{University\ Admission}. 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

Loading SVG...
Click to Zoom

The non-causal path in the CDAG includes two connections:

  • A common cause: Math Tutoring←Initial Math Score→Final Math Score\mathit{Math\ Tutoring} \leftarrow \mathit{Initial\ Math\ Score} \rightarrow \mathit{Final\ Math\ Score}
  • A chain: Initial Math Score→Final Math Score→University Admission\mathit{Initial\ Math\ Score} \rightarrow \mathit{Final\ Math\ Score} \rightarrow \mathit{University\ Admission}

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, Initial Math Score\mathit{Initial\ Math\ Score} and Final Math Score\mathit{Final\ Math\ Score}.

Candidate 1. Adjust for Final Math Score

Loading SVG...
Click to Zoom
Candidate 1
Adjust for Final Math Score\mathit{Final\ Math\ Score}
PathRequirementAfter Adjustment for Final Math Score\mathit{Final\ Math\ Score}
Causal PathOpen Blocked
Non-Causal PathBlocked Blocked

Adjusting for Final Math Score\mathit{Final\ Math\ Score} blocks both paths. Because it blocks the causal path as well, this adjustment does not identify the effect of Math Tutoring\mathit{Math\ Tutoring} on University Admission\mathit{University\ Admission}.

Candidate 2. Adjust for Initial Math Score

Loading SVG...
Click to Zoom
Candidate 2
Adjust for Initial Math Score\mathit{Initial\ Math\ Score}
PathRequirementAfter Adjustment for Initial Math Score\mathit{Initial\ Math\ Score}
Causal PathOpen Open
Non-Causal PathBlocked Blocked

Adjusting for Initial Math Score\mathit{Initial\ Math\ Score} meets both requirements. With this adjustment, the causal effect of Math Tutoring\mathit{Math\ Tutoring} on University Admission\mathit{University\ Admission} is identified.

In other words, we are comparing apples to apples. We compare students who received tutoring with students who did not, holding Initial Math Score\mathit{Initial\ Math\ Score} fixed.

For this comparison, we need to record Math Tutoring\mathit{Math\ Tutoring}, Initial Math Score\mathit{Initial\ Math\ Score}, and University Admission\mathit{University\ Admission}. Recording Final Math Score\mathit{Final\ Math\ Score} 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, U\mathit{U}, 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 U\mathit{U} is a hidden common cause of Math Tutoring\mathit{Math\ Tutoring} and Final Math Score\mathit{Final\ Math\ Score}. Adding U\mathit{U} introduces a new non-causal path between Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission}: Math Tutoring←U→Final Math Score→University Admission\mathit{Math\ Tutoring} \leftarrow \mathit{U} \rightarrow \mathit{Final\ Math\ Score} \rightarrow \mathit{University\ Admission}.

Loading SVG...
Click to Zoom

Given that U\mathit{U} 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 Initial Math Score\mathit{Initial\ Math\ Score} leaves the new path through U\mathit{U} open. Adjusting for Final Math Score\mathit{Final\ Math\ Score} would block that path, but it would also block the causal path to University Admission\mathit{University\ Admission}. We rely on domain knowledge to justify the assumption that no unobserved common cause leaves a non-causal path open between Math Tutoring\mathit{Math\ Tutoring} and University Admission\mathit{University\ Admission} 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 Initial Math Score\mathit{Initial\ Math\ Score} 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 Initial Math Score\mathit{Initial\ Math\ Score}.

P^(University Admission=True∣see⁡(Math Tutoring,Initial Math Score))=0.4882+0.1096 Math Tutoring+0.01520 (Initial Math Score−80).\begin{aligned} &\widehat{P}\bigl(\mathit{University\ Admission} = \mathrm{True} \mid \operatorname{\mathbf{see}}(\mathit{Math\ Tutoring}, \mathit{Initial\ Math\ Score})\bigr) = 0.4882 \\ &\quad + 0.1096\,\mathit{Math\ Tutoring} \\ &\quad + 0.01520\,\bigl(\mathit{Initial\ Math\ Score} - 80\bigr). \end{aligned}

The regression codes Math Tutoring\mathit{Math\ Tutoring} as 00 for no tutoring and 11 for any tutoring, grouping together students who received 4, 8, or 12 hours.

At the same Initial Math Score\mathit{Initial\ Math\ Score}, 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 Initial Math Score\mathit{Initial\ Math\ Score} and leaves Final Math Score\mathit{Final\ Math\ Score} free to vary, so the estimated effect of tutoring on admission includes its influence through Final Math Score\mathit{Final\ Math\ Score}.

Apply this adjustment in BayesiaLab: Total and Direct Effect Curves