Correlation vs Causation
Tell causation apart from reverse causation, confounding, selection and coincidence, and see how experiments build stronger causal evidence.
Welcome back!
Step 1 of 13Learn
Chocolate and Nobel prizes
In 2012, a short article in a well-known medical journal showed a striking correlation: countries that eat more chocolate per person have won more Nobel prizes per person. The correlation was about 0.79. The author presented it partly tongue in cheek, but headlines around the world asked whether chocolate makes you smarter.
It almost certainly doesn't, at least not at that scale. Wealthy countries can afford both more chocolate and more research universities, scientists and education. National wealth, a third variable, drives both. Neither causes the other.
This is the trap at the heart of regression analysis. A regression line or a correlation describes how variables move together in the data you have. It does not, by itself, tell you what would happen if you changed one of them. Eating more chocolate would not raise a country's Nobel count, just as forcing people to carry umbrellas would not make it rain.
Yet causal questions are usually the ones people care about: Does the drug work? Does the training raise productivity? Does the price cut increase sales? This lesson lists the ways a correlation can arise without causation and shows how researchers build stronger causal evidence. The habits you learn here will shape how you interpret every regression coefficient in the rest of the course.
Step 2 of 13Learn
Five reasons two variables move together
When x and y are correlated, any of these can be going on, often several at once:
- x causes y. Studying more raises exam scores.
- Reverse causation: y causes x. Cities with more police officers have more crime, partly because cities with more crime hire more police. People who exercise feel healthier, but people who feel healthy also find it easier to exercise.
- Confounding: a third variable z causes both. A lurking variable or confounder, like national wealth for chocolate and Nobel prizes, or summer heat for ice cream sales and drownings.
- Selection: the way the data was collected creates the pattern. Among hospitalized patients, two unrelated diseases can appear correlated because having either one raises the chance of being hospitalized. Studying only published studies or only surviving companies creates similar artifacts.
- Coincidence. With enough variables, some pairs line up by chance, especially short time series that both trend upward over the same years.
For any claimed causal effect, try to tell a plausible story for each alternative. If you can easily imagine a confounder or a reverse arrow, the correlation alone is weak evidence. Researchers sometimes draw a simple diagram with arrows between variables to make these stories explicit before analyzing anything.
Step 3 of 13Practice · Diagram
x and y move together. Why?
Chocolate and Nobel prizes both rise with national wealth. Which branch is that?
Tap the shape that answers the question, then press Check.
- x and y are correlated
- x causes y
Studying more raises exam scores.
- y causes x (reverse)
More crime leads cities to hire more police.
- A confounder z drives both
Summer heat raises ice cream sales and drownings.
- Selection created it
Only hospitalized patients, only surviving firms.
- Coincidence
Short trending series that happen to line up.
Step 4 of 13Practice · Match the pairs
Match each finding with the explanation that best fits it.
Tap an answer, then tap the place where it belongs (or drag it there).
- Children with larger shoe sizes have better reading scores
- People who use sleeping pills report worse sleep
- Two unrelated diseases appear linked among hospital patients
- A country's cheese consumption tracks the number of engineering degrees awarded over ten years
Step 5 of 13Learn
Experiments: breaking the arrows
The most reliable way to establish causation is a randomized controlled experiment. Researchers randomly assign units, such as people, stores or web visitors, to receive a treatment or not, then compare outcomes.
Randomization is the key. Because a coin flip decides who gets the treatment, the treatment can't be related to age, wealth, motivation or anything else, measured or unmeasured. On average, the groups are alike in every respect except the treatment. So if outcomes differ by more than chance would explain, the treatment caused the difference.
Many important questions can't be answered by experiment. You can't randomly assign people to smoke for 30 years, to grow up in poverty or to live near a highway. In these cases researchers use observational studies, where they observe what happens without assigning anything. Observational evidence can still be strong when several conditions hold together:
- the association is strong and consistent across many studies, places and methods,
- the cause comes before the effect,
- there is a dose-response pattern: more exposure, more effect,
- there is a plausible mechanism,
- known confounders have been measured and accounted for.
The case that smoking causes lung cancer was built this way, decades before anyone could explain every biological step.
Step 6 of 13Practice · Diagram
A randomized controlled experiment
Which step is what breaks the confounding arrows?
Tap the shape that answers the question, then press Check.
- Recruit units
People, stores or web visitors.
- Assign at random
A coin flip, not a choice. This balances confounders, seen and unseen, on average.
- Treatment vs. control
- Compare outcomes
A difference larger than chance can be credited to the treatment.
Step 7 of 13Practice · Sort into groups
Sort each study into the correct type.
Tap an item, then tap its group (or drag it there).
Step 8 of 13Learn
Controlling for confounders, and its limits
In observational data, analysts often try to control for confounders: comparing like with like. Instead of comparing all runners with all non-runners, compare runners and non-runners of the same age, sex, income and smoking status. Multiple regression, which you'll study in Module 4, does this automatically by including the confounders as extra predictors. The coefficient on running then estimates its association with heart health holding the other variables constant.
This is powerful but limited:
- You can only control for confounders you measured. If runners are also more health-conscious in ways the data doesn't capture, the estimate stays biased.
- Measured confounders are often measured imperfectly, such as income in broad bands, which leaves some confounding behind.
- Controlling for the wrong variables can create bias. Controlling for a variable that lies on the causal path, such as controlling for weight when studying exercise and heart health, removes part of the real effect. Controlling for a variable caused by both x and y can create a false association.
So treat regression results from observational data as evidence about association after adjustment, and make causal claims only with careful reasoning about what was and wasn't controlled.
Step 9 of 13Note
Step 10 of 13Chart
Two unrelated series that both grow
| Item | Streaming subscriptions (index) | Town's average rent (index) |
|---|---|---|
| 2016 | 100 | 100 |
| 2017 | 112 | 104 |
| 2018 | 125 | 109 |
| 2019 | 139 | 113 |
| 2020 | 160 | 118 |
| 2021 | 176 | 126 |
| 2022 | 188 | 133 |
| 2023 | 199 | 138 |
Step 11 of 13Practice · What would you do?
What would you do?
A news headline says: "Study finds that people who drink two cups of coffee a day live longer." The study followed 200,000 adults for 15 years and adjusted for age, sex and smoking. What is the most accurate way to describe the finding?
Step 12 of 13Practice · Choose one
Which piece of evidence most strengthens the case that a workplace training program causes higher productivity?
Step 13 of 13Practice · True or false
If a regression on observational data controls for every variable in the dataset, its coefficients can be interpreted as causal effects.
Lesson complete!