Explainer
Correlation vs causation: what is the difference?
What do correlation and causation mean?
Two things are correlated when knowing one helps you predict the other. Taller people tend to weigh more, so height and weight are positively correlated. Hours of screen time and hours of sleep may be negatively correlated: as one goes up, the other tends to go down.
Causation is a stronger claim. It says that changing one thing would change the other. If you could make someone taller, would they get heavier? A causal claim is about what happens when you intervene, not just about what tends to appear together in a dataset.
Every causal relationship produces some kind of association, but plenty of associations have no direct causal link at all. That gap is where most misleading headlines live.
What does a correlation coefficient tell you?
The most common measure is Pearson's correlation coefficient, written r. It runs from −1 to +1. A value of +1 means the points fall exactly on a rising straight line, −1 means exactly on a falling line, and 0 means no straight-line relationship.
In practice, r = 0.9 looks like a tight cloud of points hugging a line: you could predict one variable from the other quite well. r = 0.3 looks like a loose, fuzzy cloud with only a slight tilt. A rough rule of thumb is to square r: 0.9² = 0.81, so about 81% of the variation in one variable lines up with the other, while 0.3² = 0.09, only about 9%.
Crucially, r only measures linear association. If y = x² for values of x from −3 to 3, y is completely determined by x, yet r is 0 because the U-shape has no overall upward or downward slope. And a strong r says nothing about why the two move together.
Why doesn't correlation imply causation?
There are four main reasons two things can move together without one causing the other. A confounder is a third factor that drives both. Reverse causation means the effect actually runs the other way. Coincidence means the pattern arose by chance, which becomes very likely when you search through lots of data. Selection effects mean the way people or cases were chosen for the data created the pattern.
These are not exotic edge cases. Tyler Vigen's Spurious Correlations project shows dozens of near-perfect matches between unrelated series, produced simply by comparing enough datasets. Any large enough pile of numbers will contain striking correlations that mean nothing.
Worked example: ice cream, drownings and hot weather
Here is an illustrative example with made-up numbers. Imagine a coastal town records weekly ice cream sales and drownings for a year. In cool weeks it sells about 200 tubs and has no drownings. In hot weeks it sells about 1,000 tubs and averages 2 drownings. Across the whole year, the two series are strongly correlated.
But ice cream does not make people drown. Hot weather is the confounder: it makes people buy ice cream and also makes them swim, and more swimming means more drownings. The test is to compare like with like. Look only at the hot weeks, and weeks with more ice cream sales do not have more drownings than other hot weeks. Once you hold temperature fixed, the link disappears.
That “hold the confounder fixed” move is the core of much real analysis. It only works for confounders you have thought of and measured, which is why observational studies can never fully rule out a hidden third factor.
What do reverse causation and selection effects look like?
Reverse causation is easy to miss because the story sounds natural in one direction. A study might find that people who drink diet soft drinks are more likely to be overweight. It is tempting to blame the drinks, but people who are already overweight may switch to diet drinks to cut sugar. The weight came first and the drink choice followed.
Selection effects come from who ends up in the data. Illustrative example: a gym surveys its members and finds that people who have been members for five years are fitter than new joiners. That does not prove that membership builds fitness. People who did not enjoy exercise or did not see results tend to cancel, so the long-term group is filtered towards the keen and the fit. The people who would have weakened the pattern are simply missing.
Health headlines are full of both. “Coffee drinkers live longer” or “people who eat breakfast are slimmer” usually come from observational studies. Before believing the causal version, ask: could the outcome have caused the habit, and who was left out of the sample?
What questions should you ask about a causal claim?
A short checklist catches most problems. Was this an experiment with random assignment, or an observation of what people already did? What third factors could drive both things, and did the study account for them? Could the arrow point the other way? How large was the sample, and how many other comparisons were tried before this one was reported?
Also check the size of the effect, not just whether it exists. A real but tiny effect, such as a 1% difference, may not matter in practice even if it is caused. And look for replication: one surprising study is a lead, while several independent studies pointing the same way are much harder to dismiss.
How do scientists establish causation?
The strongest tool is the randomised controlled trial. You randomly assign people to get a treatment or not, so any confounder, known or unknown, is spread evenly between the groups by chance. If the treated group then does better, the treatment is the most plausible explanation. This is how new medicines are tested.
When randomising is impossible or unethical, researchers look for natural experiments: situations where something like a lottery, a policy boundary or a sudden rule change split people into groups almost at random. They also look for a dose-response pattern, where more of the cause produces more of the effect, and for timing, since a cause must come before its effect.
In 1965 the epidemiologist Austin Bradford Hill set out nine viewpoints for judging whether an association is likely causal: strength, consistency, specificity, temporality, biological gradient (dose-response), plausibility, coherence, experiment and analogy. Hill stressed that none of them is proof on its own. They are a checklist for weighing evidence, and they helped make the case that smoking causes lung cancer long before every mechanism was understood.
How should you judge claims like “companies using AI grew faster”?
Claims of this shape are common in surveys and vendor reports, and they are almost always correlations. Run them through the four reasons. Confounders: larger, better-funded, more tech-savvy firms are both more likely to adopt AI and more likely to grow. Reverse causation: firms that are already growing have spare budget to try new tools. Selection: surveys often hear mainly from enthusiastic adopters, and firms that failed may not be around to answer. Coincidence: a small sample can produce a gap by chance.
Better evidence would compare similar firms before and after adoption against a group that did not adopt, or, best of all, randomly give some teams access to an AI tool and compare them with teams that did not get it. When a claim offers none of this, read “grew faster” as “we noticed these things together”, not “AI caused the growth”.
Why two things can be correlated without one causing the other
| Reason | What it means | Example |
|---|---|---|
| Confounder | A third factor drives both variables | Hot weather raises both ice cream sales and drownings |
| Reverse causation | The supposed effect actually causes the supposed cause | Growing firms can afford AI tools, rather than AI causing growth |
| Coincidence | The pattern arose by chance, often after searching many variables | Unrelated yearly statistics that happen to rise and fall together |
| Selection effect | How cases were chosen for the data creates the link | A survey that only hears from successful AI adopters |
Examples
- Ice cream sales and drownings rise together in summer because hot weather drives both
- People who carry lighters have higher lung cancer rates, but smoking is the real cause of both
- Students with more books at home score higher in tests; family resources may drive both
- A website redesign launched the same week sales rose, but a seasonal peak may explain the jump
- “Companies using AI grew faster” surveys often reflect firm size, budget and who answered the survey
Common questions
Can correlation ever suggest causation?
Yes, as a starting clue. A strong, consistent correlation that appears in different places, follows the right timing and shows a dose-response pattern can make a causal story plausible. It becomes convincing when experiments or natural experiments back it up and the obvious confounders have been ruled out.
What is a spurious correlation?
A spurious correlation is an association that looks meaningful but has no real causal link, usually because of a confounder or pure chance. Comparing thousands of unrelated datasets will always turn up some pairs that move together almost perfectly. Without a plausible mechanism and independent confirmation, treat such matches as noise.
Is a correlation of 0.5 strong?
It depends on the field. In physics or engineering, 0.5 would be weak. In social science or health research, where many factors influence outcomes, 0.5 is often considered fairly strong. Squaring it gives 0.25, meaning about a quarter of the variation lines up linearly. Always look at a scatter plot rather than trusting the number alone.
Does no correlation mean no relationship?
No. A correlation coefficient near zero only means there is no straight-line relationship. Two variables can be tightly linked in a curved, U-shaped or threshold pattern and still show r close to zero. Plotting the data is the quickest way to spot these relationships.
Why are randomised controlled trials considered the gold standard?
Because random assignment balances the groups on everything, including factors nobody thought to measure. Any later difference between the groups is then most plausibly caused by the treatment itself. Observational studies can adjust for known confounders, but they can never be sure an unmeasured one is not behind the result.
Sources and further reading
- The Environment and Disease: Association or Causation? (Hill, 1965) — Proceedings of the Royal Society of Medicine
- Dataplot reference: CORRELATION — NIST
- OpenIntro Statistics — OpenIntro
- Spurious Correlations — Tyler Vigen
Glossary terms
- Correlation
Correlation describes a relationship where two variables tend to move together. It does not by itself prove that one variable causes the other.
- Causation
Causation means a change in one factor produces a change in another. Establishing it usually needs careful design beyond noticing that two things move together.
- Selection bias
Selection bias occurs when the cases included in data systematically differ from the population of interest, which can warp conclusions even when the numbers look precise.
- Sample size
Sample size is the number of observations collected for an estimate. Larger samples usually reduce noise, but they do not fix a biased selection by themselves.
Keep reading
- Average vs median: what is the difference?
The average (mean) is the total divided by the count. The median is the middle value once the numbers are sorted. When data has a few extreme values, such as one very high salary, the mean gets pulled towards them while the median barely moves, so the median usually describes the typical case better.
- What is sample size?
Sample size is the number of people, items or measurements you actually observed in order to learn about a larger group. Bigger samples give more precise estimates, but with diminishing returns: the margin of error shrinks with the square root of the sample size, so quadrupling the sample only halves the error.
- What is selection bias?
Selection bias is a distortion that happens when the people, items or events in your data are not representative of the group you want to draw conclusions about, because of how they were chosen or who chose to take part. It can make results look precise while being systematically wrong, and a bigger sample does not fix it.
- AI model comparison (free tool)
Every major language model side by side: context window, price per million tokens, and whether you can download it.
- What is an AI hallucination?
An AI hallucination is when a language model states something false or unsupported as if it were true, such as an invented fact, a fake citation or a quote nobody said. It happens because models generate plausible-sounding text rather than looking facts up. Grounding answers in real sources and verifying important claims are the main defenses.