November 17, 2026
Midterm Grades (preliminary: re-grade + curve to come)
Recap:
Recognizing Confounding
Be precise in use of concepts
Use (don’t repeat) definitions when explaining your answers
Link to specifics in question
Explain why an answer/why not another answer
causal claim: “BC’s face-mask mandate reduced COVID mortality in the province over the course of the pandemic.”
Karaivanov et al (2020), economists at SFU, investigate:
Did indoor mask mandates reduced COVID cases, on average? (If masks reduce COVID cases, could reduce mortality.)
They compare COVID cases in Ontario Public Health Units (PHU) with and without mask mandates
They find that PHUs with mask mandates have fewer COVID cases than PHUs without mask mandates…
Correlation suffers from two sources of error:
random error: we observe patterns in \(X\) (independent variable) and \(Y\) (dependent variable) by chance, when there is in fact no relationship.
confounding (bias): the systematic observed correlation between \(X\) and \(Y\) is not the true causal effect of \(X\) on \(Y\).
It’s summer of 2020… the correlation in Karaivanov et al compares…
COVID cases in PHUs in Toronto area (with mask mandates)…
… with COVID cases in PHUs like North Bay (without a mask mandate)
Correlation means we “plug in” missing counterfactuals from other cases:
| Case | \(\overbrace{\text{Caseload (Mandate)}}^{Y}\) | \(\overbrace{\text{Caseload (No Mandate)}}^{Y}\) | \(\overbrace{\text{Mandate}}^{X}\) |
|---|---|---|---|
| Toronto | \(\mathrm{Cases_{Toronto}(Mandate)}\) | \(\color{red}{\mathrm{Cases_{Toronto}(No \ Mandate)}}\) | Yes |
| \(\Downarrow{=}\) | \(\Uparrow{=}\) | ||
| North Bay | \(\color{red}{\mathrm{Cases_{North \ Bay}(Mandate)}}\) | \(\mathrm{Cases_{North \ Bay}(No \ Mandate)}\) | No |
If this equivalence \((=)\) is false, then confounding (bias)
Confounding occurs because:
We use \(outcome\) in case B (North Bay) to stand in for counterfactual \(\color{red}{outcome}\) from case A (Toronto)… but observed outcomes in case B are not the same as in counterfactual case A.
Two ways of thinking about why this produces a bias: key is that case A and B are different in ways other than X that affect X and Y.
Explanation 1: visual
Confounding occurs when there are other differences between cases (call them variables, e.g. \(W\), etc.) that causally affect \(X\) and \(Y\).
The easiest way to understand this is visually.
Causal graphs represent a model of the true causal relationships between variables.
the nodes/vertices correspond to variables
Causal graphs represent a model of the true causal relationships between variables.
the arrows convey the direction of the flow of causality. (No loops permitted)
Arrows alone do not indicate whether \(X\), e.g., increases or decreases \(Y\).
Arrows make paths between variables:
A model of/story about true causal relationships, because:
PHUs in Toronto (\(X = \text{mask mandate}\)) have more university educated adults than PHUs in North Bay (\(X = \text{no mandate}\)).
In a causal graph, there is confounding of correlation of \(X\) and \(Y\) if…
Confounding?
Why do backdoor paths produce confounding? Why is it systematic?
Why does confounding happen?
Confounding happens when cases that experience different levels of \(X\) have systematically different (factual and counterfactual) potential outcomes of \(Y\).
Explanation 2: Other differences, Different potential outcomes
| Case | \(\overbrace{\text{Caseload (Yes)}}^{Y}\) | \(\overbrace{\text{Caseload (No)}}^{Y}\) | \(\overbrace{\text{Mandate}}^{X}\) | \(\overbrace{\text{Work from Home}}^{W}\) |
|---|---|---|---|---|
| Toronto | \(\text{Fewer Cases}\) | \(\color{red}{\text{Fewer Cases}}\) | Yes | More |
| \(\Updownarrow{\neq}\) | \(\Updownarrow{\neq}\) | |||
| North Bay | \(\color{red}{\text{More Cases}}\) | \(\text{More Cases}\) | No | Less |
antecedent variable: a variable that affects \(X\)
e.g. in this path, \(W \xrightarrow{} X \xrightarrow{} Y\), \(W\) is an antecedent variable.
antecedent variables (\(W\)) do not produce confounding if the only causal path from \(W\) to \(Y\) passes through \(X\).
antecedent variables do produce confounding if there is another causal path from \(W\) to \(Y\) that does NOT include \(X\).
intervening variable: a variable that affects \(Y\) and is affected by \(X\).
e.g. in this path, \(X \xrightarrow{} M \xrightarrow{} Y\), \(M\) is an intervening variable.
intervening variables (\(M\)) do not produce confounding because they are on the causal path from \(X\) to \(Y\). They do not produce backdoor path.
reverse causality describes the situation where the dependent variable \(Y\) actually causes the independent variable \(X\).
So while we use the correlation to describe the effect of \(X\) on \(Y\): \(X \to Y\), the correlation in fact is the result of the effect of \(Y\) on \(X\): \(Y \to X\).
This is a special case of bias or confounding. (We could also draw this as “third variable”)
| Third Variable? | Key Attribute | Confounding? | |
|---|---|---|---|
| Antecedent Variables \((W)\) |
Yes | \(W \to X\) | If only causal path from \(W\) to \(Y\) contains \(X\): No If a causal path from \(W\) to \(Y\) excludes \(X\): Yes |
| Intervening Variables \((M)\) | Yes | \(X \to M \to Y\) | No |
| Reverse Causality | No | \(Y \to X\) | Yes |
Gun violence in Miami Beach has led to state of emergency and curfew during Spring Break.
“We haven’t been able to figure out how to stop spring break from coming,” Mr. Gelber said. “We don’t want spring break here, but they keep coming.”
Miami Beach policy-makers need to know:
Can we conclude gun ownership increase firearms homicides? [hands]
You work for Miami Beach and want to reduce gun deaths. To decide on whether to impose gun restrictions, you consult correlation on previous slide.
Could you make the wrong decision if the confounding induced an upward bias (observed correlation between gun ownership and firearms deaths more positive than true causal relationship)? If so, why? [discuss]
You work for Miami Beach and want to reduce gun deaths. To decide on whether to impose gun restrictions, you consult the correlation between gun ownership and gun deaths.
Could you make the wrong decision if the confounding induced a downward bias (observed correlation between gun ownership and firearms deaths more negative than true causal relationship)? If so, why? [discuss]
As with measurement bias, we need to apply weak severity principle to judge whether bias would present a problem.
As with measurement bias:
If confounding \(\to\) bias in opposite direction of the correlation \(\to\) true causal effect in same direction as correlation (meets weak severity)
If confounding \(\to\) bias in same direction as the correlation \(\to\) true causal effect may be zero or opposite direction of correlation (possible failure of weak severity)
In situation \((2)\): our conclusions depend on the magnitude or size of the bias induced by confounding. Not a topic for this class.
Product of signs on causal path from \(W \to X\) and \(W \to Y\) gives us direction of bias created by confounding
| \(W \xrightarrow{+} X\) | \(W \xrightarrow{-} X\) | |
|---|---|---|
| \(W \xrightarrow{+} Y\) | \(Correlation(X,Y)\) Biased (\(+\)) |
\(Correlation(X,Y)\) Biased (\(-\)) |
| \(W \xrightarrow{-} Y\) | \(Correlation(X,Y)\) Biased (\(-\)) |
\(Correlation(X,Y)\) Biased (\(+\)) |
\(^*:\) this only works for a single backdoor path; not multiple backdoor paths. Then we would need more information.
Confounding
We now know what confounding is and how it arises…
Consider the case of gun-control laws and gun violence::
Causal graphs point us to possible solutions:
If something else (\(W\)) changes \(X\) and \(Y\), leading to confounding…
We can use comparisons that hold \(W\) constant.
We can use comparisons that break the connection between \(W\) and \(X\).