November 24, 2026

Correlation to Causation

Solutions to Confounding

  1. Recap
    • Solutions to confounding
    • Solutions involve trade-offs (internal vs external validity)
    • Experiments
  2. Interlude: Cholera
  3. Conditioning:
    • what is it?
    • how does it work?

Solving Confounding

Solutions to Confounding

Must ask…

  • What comparisons between cases does it involve?
    • can you recognize this solution when it is described to you?
    • can you describe how to use this solution to test a particular causal claim?
  • What assumptions are required for it to work?
  • How does it “solve” confounding?
  • What trade offs do we make?

Solution 1: Experiments

What is an experiment?

Experiment:

  • examine correlation between \(X\) and \(Y\) for cases where level of \(X\) is assigned at random
  • compare outcomes (\(Y\)) for cases with higher/lower values of \(X\), only for cases where \(X\) is assigned at random

Solution 1: Experiments

Experiments give us unbiased (no confounding) correlation, if two key assumptions are met:

  1. Random Assignment to “Treatment” (\(X = yes\)) and “Control” (\(X = no\)): all cases have equal probability of ending up in each “condition” (exposure to \(X\))
  • Must compare values of \(Y\) across values of \(X\) that are randomly assigned

\(2\). Exclusion Restriction: only one thing is changing – \(X\)

  • Must carefully consider the experimental design


\(^*\)Technically, more assumptions, but not important for this class

Solution 1: Experiments

How do experiments solve confounding? Three ways to think about it…

  • Randomization ensures that cases in treatment and control have similar potential outcomes, on average
  • Randomization balances cases with similar values of confounding variable \(W\) in treatment and control
  • Randomization breaks the link \(W \to X\)

Removes all confounding: even from variables we have not thought of.

EXACTLY the same logic as random sampling

Randomization moves us from this:

… to this:

A Real Social Media Experiment:

Allcott et al (2024) actually ran a social media deactivation experiment:

Sample: random sample of US adults active in previous month (Facebook or Instagram)

Recruitment: study invitation appeared on their feed. Asked if willing to deactivate for 1 week (for $25) or 6 weeks (for $150).

Random Assignment: of those willing to deactive (~20k FB, ~16K Insta), 27% given $150 and deactivated for 6 weeks; 73% given $25 and deactivated for 1 week.

Outcome: Surveyed on political polarization

Small reduction in affective polarization.

A Real Social Media Experiment:

Allcott et al (2024) actually ran a social media deactivation experiment:

Sample: random sample of US adults active in previous month (Facebook or Instagram)

Recruitment: study invitation appeared on their feed. Asked if willing to deactivate for 1 week (for $25) or 6 weeks (for $150).

Random Assignment: those willing to deactivate: 27% given $150 and deactivated for 6 weeks; 73% given $25 and deactivated for 1 week.

  • Discuss: What questions/concerns do you have about evidence from this experiment?

Assumption: Random Assignment?

Assumption: Random Assignment?

Assumption: Exclusion Restriction ?

assumption is that we aren’t adding confounding in the design of the experiment

But the “Treatment” group…

  • Deactivated for longer (\(X\))
  • AND paid more money (\(M\))

Multiple differences between “treatment” and “control”

  • Does polarization change because of (a) social media deactivation or (b) getting paid $150?

Exclusion Restriction

Exclusion Restriction

Vaccine clinical trials…

  • use placebos (control group receives a shot with no vaccine)
  • “blind” treatment recipients to whether they receive vaccine or placebo
  • “blind” care providers to whether they are injecting real vaccine or not

Why does it matter that clinical trials use placebos and are “double blind”?

Exclusion Restriction

Without placebo and double-blind…

Gold Standard

Experiments are the best solution to confounding/FPCI

  • If we can manipulate \(X\) at random, we can find the unbiased average causal effect of \(X\) on \(Y\) (no confounding)
  • If we manipulate \(X\) at random, we also easily can calculate chance correlations (known risk of random correlation)

Gold Standard

strong severity says that evidence is convincing to extent assumptions are checked:

  • Random Assignment: We can easily check… were people assigned at random? or did they have option to select themselves? did researchers compare randomly-assigned groups?
  • Exclusion Restriction: we can check experimental design to see if things other than \(X\) are changed

Gold Standard?

But experiments have their limits:

  • We can’t always use them

All solutions to confounding face a trade-off between internal and external validity

Internal Validity: is the extent to which the correlation of \(X\) and \(Y\) found in a research design is the true causal effect of \(X\) on \(Y\) / does not suffer from confounding. (unbiased FOR THOSE CASES)

  • studies with strong internal validity imply that we have very good reason to believe that the correlation of \(X\) and \(Y\) we observe actually implies the causal effect of \(X\) on \(Y\) for the cases we observe.
  • because we can easily believe/check the assumptions

External Validity: is the degree to which the causal relationship we find in a study is relevant to the causal relationship in our causal question/claim

  • Study has external validity if it examines causal relationship for the cases we are interested in

    • if study has sampling bias (sample in study different from population of interest), may lack external validity
  • Study has external validity if the causal variable in the study maps onto the concept/definition of the cause in the causal claim.

    • if the \(X\) that is used in the study doesn’t align with the causal claim, may lack external validity

External Validity: Relevant Sample?

External Validity:

Does the efficacy of vaccines in clinical trials translate to real world use??

  • How might people who enroll in clinical trials be different. Relevant Sample?
  • How might people behave differently in vaccine trials? Relevant causal variable?

Always a Trade-off:

More internal validity (unbiased estimate of causal effect) comes at the cost of external validity (relevance of study sample or cause to the theory)

  • easier to experimentally manipulate minor causal factors for small groups of people/cases
  • hard/unethical to experimentally manipulate important causal factors in society more broadly

Experiments: Limitations

What can we manipulate?

  • economic growth? democracy? violence? hate speech?
  • Can we experimentally examine the effects of political assassination on polarization?

Who/what cases can we study?

  • who participates in psych labs? (UBC undergrads who want $20?)
  • is it ethical to experiment on people in developing countries?
  • Experiments have limited external validity

Solution How Confounding
Solved
Which Confounding
Removed
Assumes Internal
Validity
External
Validity
Experiment Randomization
Breaks \(W \rightarrow X\) link
All confounding variables \(X\) is random;
Change only \(X\)
High Low

Example

Incendiary Speech and Violence

Did Trump rallies cause an increase in hate crime?

“A USA TODAY analysis of the 64 rallies Trump … held [between] 2017 [and 2019] found that, when discussing immigration, the president has said ‘invasion’ at least 19 times. He has used the word ‘animal’ 34 times and the word ‘killer’ nearly three dozen times.”

Interlude

Before we return to speech and hate crimes

Imagine…

You live in mid-19th century London.

  • Every few years, hundreds to thousands of people are killed in cholera outbreaks
  • To stop these deaths, you need to answer:

What causes the spread of cholera?

Cholera

Dominant view was that “miasmas” or “bad air” caused diseases like cholera

Broad Street Pump Outbreak (1854)

John Snow, MD suggested cholera transmitted as “germ” in water.

To provide evidence of his claim, Snow uses correlation: mapped cholera deaths of 1854 outbreak in SoHo.

  • Broad Street Pump (source of drinking water) had “fouled” water (X)
  • Examined mortality from cholera (Y)
  • Proximity to the Broad Street Pump (C) correlated with mortality (Y)
  • Proximity to other pumps not related to mortality

  • Positive correlation

Broad Street Pump Outbreak (1854)

  • positive correlation (closer to pump \(\to\) more cholera)

Broad Street Pump Outbreak (1854)

Leading doctors rejected Snow’s evidence:

  • Houses near Broad Street Pump built on 1665 plague burial site.
  • Sewers produce foul odors from rotting material/human waste

Both might produce miasmas.

  • maybe Plague cemetery/Sewer \(\to\) Miasmas \(\to\) Foul Water
  • and Miasmas \(\to\) Cholera
  • So… Confounding.

No, this John Snow

Confounding

Broad Street Pump Outbreak (1854)

Snow’s solution to confounding: compare people “near pump” w/ different water sources

Brewers Broad St. Residents
Water Source (X) Brewery Well/
Beer (Clean)
Pump (Contam.)
Location Near pump Near pump
Timing Aug. 1854 Aug. 1854
Miasmas (W) Yes Yes
Cholera (Y) No Yes

Broad Street Pump Outbreak (1854)

Snow’s solution to confounding: compare people “far from pump” w/ different water sources

Lady and Niece West End Residents
Water Source (X) Broad Street Pump
(Contam.)
Another Pump
(Clean)
Location Mile from Broad St. Mile from Broad St.
Timing Aug. 1854 Aug. 1854
Miasmas (W) No No
Cholera (Y) Yes No

Broad Street Pump Outbreak (1854)

Discuss:

do you find these comparisons more convincing than the simple correlation?

Why or why not?

Holding geography constant

Conditioning: What is it?

conditioning

we observe \(X\) and \(Y\) for multiple cases, we examine the correlation of \(X\) and \(Y\) within groups of cases that are the same\(^*\) on confounding variables \(W, etc. \ldots\)

How does conditioning solve the problem?

  • Cases compared have same values on confounding variable \(W\) (“holding \(W\) constant”)
  • In these groups, \(W\) cannot affect \(X\) or \(Y\) (because \(W\) is not moving, it can’t move \(X\) or \(Y\))
  • “Backdoor” path from \(X\) to \(Y\) is “blocked”

Conditioning

In contrast to experiments, conditioning is possible for any cases and for any possible-cause \(X\):

Conditioning has greater external validity.

  • can observe any cases that we can measure
  • can look at any causal variable that we can measure

Conditioning, an Example

Example: Conditioning:

Feinberg, Branton, and Martinez-Ebers compare hate crimes in counties with and without Trump rallies, but condition on (hold constant\(^*\)):

  • percent Jewish
  • number of hate groups
  • crime rate
  • 2012 Republican vote share
  • percent university educated
  • region

Logic of Conditioning:

County HC(Yes)
(\(Y\))
HC(No)
(\(Y\))
Rally (\(X\)) Jewish
%
Hate
Groups
Crime
Rate
Rep.
%
Univ.
%
Region
a \(More\) \(\color{red}{Fewer}\) Yes 2 3 15 53 38 South
\(\Downarrow\) \(\Uparrow\)
b \(\color{red}{More}\) \(Fewer\) No 2 3 15 53 38 South

\(^*\)In the best case scenario

Example: Conditioning

Feinberg, Branton, and Martinez-Ebers find that, even after conditioning, Trump rallies increase the risk of hate crimes by 200%!

  • Discuss: are you convinced that this correlation, after conditioning, shows rallies caused hate crimes?

Clinton Rallies and Hate Crimes

Example: Conditioning

Economics PhD Candidates show that conditioning on the same variables…

  • Clinton rallies increased hate crimes by nearly 250%!!
  • What could be going on here? Do all political rallies cause hate crimes? Or is something else happening?

Any confounding variables on the board that are missing from this causal graph?

County HC(Yes)
(\(Y\))
HC(No)
(\(Y\))
Rally (\(X\)) Jewish
%
Hate
Groups
Crime
Rate
Rep.
%
Univ.
%
Region
a \(More\) \(\color{red}{Fewer}\) Yes 2 3 15 53 38 South
\(\Downarrow\) \(\Uparrow\)
b \(\color{red}{More}\) \(Fewer\) No 2 3 15 53 38 South


  • How easily can we measure the presence of Hate groups?


  • How easily can we find counties that are identical on six attributes?

Solution How Confounding
Solved
Which Confounding
Removed
Assumes Internal
Validity
External
Validity
Experiment Randomization
Breaks \(W \rightarrow X\) link
All confounding variables \(X\) is random;
Change only \(X\)
High Low
Conditioning Hold confounders
constant
? ? ? High

Conclusion

Conditioning

  • What is it?: Look at correlation between \(X\) and \(Y\), for cases with same value of \(W\)
  • How does it solve confounding?: \(W\) held constant, so correlation between \(X\), \(Y\) cannot be due to \(\uparrow \downarrow W\)
  • What are the assumptions?: That is a very good question for next week