Correlation vs causation

Analytika TeamLast reviewed 6 min read

“Correlation does not imply causation” is probably the most repeated warning in statistics, and still one of the most often ignored. Understanding why a correlation can arise without causation is what lets you design better studies and write more accurate conclusions.

Four reasons for a correlation without causation

1. Confounding (a third variable)

Something else drives both variables. Ice-cream sales and drowning deaths rise and fall together because hot weather increases both. Coffee drinking was once linked to heart disease, partly because coffee drinkers were more likely to smoke.

A real example: in R’s airquality data, temperature and ozone are strongly correlated (Spearman’s ρ = .77). Heat does play a role in ozone formation, but so does sunshine, which also raises temperature. The correlation alone can’t separate the two.

2. Reverse causation

The causal arrow runs the other way. People who exercise more report better health, but poor health also stops people exercising. Cities with more police have more crime partly because high crime prompts more policing.

3. Selection effects

How cases got into the data creates the pattern. Among hospital patients, two unrelated diseases can appear correlated, because having either one makes admission more likely (Berkson’s paradox). Studying only successful companies makes risky strategies look like they always pay off.

4. Chance

Test enough pairs of variables and some will correlate by accident. The famous “spurious correlations” (cheese consumption tracking deaths by bedsheet tangling) come from searching thousands of unrelated time series. See multiple comparisons.

What it takes to support a causal claim

Randomised experiments

Randomly assigning participants to conditions balances confounders, measured and unmeasured, across groups on average. A difference in outcomes can then be attributed to the treatment. That’s why randomised controlled trials are the gold standard. In the chick-feed experiment behind R’s chickwts data, newly hatched chicks were randomly allocated to feeds, so a difference in weight between feeds can reasonably be read causally.

Strong observational designs

When experiments aren’t possible, causal arguments rest on design and accumulated evidence: natural experiments, regression discontinuity, instrumental variables, longitudinal data showing the cause comes first, dose-response relationships, consistency across studies, and a plausible mechanism. Bradford Hill’s criteria (1965) remain a widely used checklist.

Does “controlling for” variables solve it?

Partly. Multiple regression adjusts for the confounders you measured. In R’s mtcars data, car weight’s association with fuel economy shrinks from −5.34 to −3.18 mpg per 1,000 lb once horsepower and cylinders are included. Part of the raw association was really about engine size.

But regression can’t adjust for confounders you didn’t measure, and adjusting for the wrong variables can create bias. One example is a variable that’s a consequence of both the predictor and the outcome. “We controlled for age and gender” doesn’t turn an observational association into a causal effect.

How to write about it

Avoid (observational data)Use instead
Exercise improves wellbeingExercise was associated with higher wellbeing
Screen time causes poorer sleepMore screen time was related to poorer sleep
The effect of income on healthThe association between income and health
This proves that…These findings are consistent with…

Analytika applies this rule to everything it writes about your results. Causal language is only used when your research question describes a randomised experiment, and “proves” is never used.

References

  • Hill, A. B. (1965). The environment and disease: Association or causation? Proceedings of the Royal Society of Medicine, 58(5), 295–300.

More in Correlation

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free