What is the difference between correlation and causation
Correlation measures how two variables move together, while causation means one variable directly influences the other. Correlation alone cannot prove causation because other factors may drive the observed relationship.
Statistics · Regression
Correlation is a statistical metric that quantifies the strength and direction of a linear relationship between two variables, typically expressed by the Pearson coefficient . A value of indicates a strong positive association, but it says nothing about which variable, if any, causes the other to change. Causation, on the other hand, asserts a directional influence: a change in variable X produces a change in variable Y, often demonstrated through experimental control or rigorous longitudinal analysis.
Why the confusion arises
People often mistake correlation for causation because the human brain looks for patterns and explanations. When two trends rise together, it feels natural to assume one drives the other, yet many hidden variables can create the illusion of a direct link. For example, ice cream sales and drowning incidents both increase in summer, but the true driver is temperature, not a causal relationship between the two.
Common sources of mistaken causation:
- Confounding variables that affect both measures
- Reverse causality where Y influences X
- Coincidental patterns in small samples
- Selection bias in data collection
How to test for causation using regression:
- 1Formulate a clear hypothesis about directionality
- 2Control for potential confounders by adding them as covariates
- 3Check the statistical significance of the regression coefficient (p‑value)
- 4Validate results with out‑of‑sample or experimental data
Sample data illustrating correlation vs. regression slope:
| X | Y | X*Y |
|---|---|---|
| 1 | 2 | 2 |
| 2 | 4 | 8 |
| 3 | 6 | 18 |
| 4 | 8 | 32 |
| 5 | 10 | 50 |
Worked example: Suppose we collect five observations of X and Y as shown in the table. The Pearson correlation computes to because Y = 2X exactly, indicating perfect linear association. Running a simple linear regression yields with a slope of 2 and a p‑value far below 0.05, supporting a causal interpretation if the experimental design justifies it. If, however, we added a hidden variable Z that also influences Y, the regression slope might become non‑significant despite the high , signaling that the apparent link is spurious.
Check yourself
If two variables have a correlation of 0.9 but a regression analysis shows a non‑significant slope, what does that suggest about causation?
Get this as a lesson built for you
Describe what you are studying and Lernex writes the lesson and the questions around it. Free, and it takes about a minute.
Try itNo account needed to try it.
What people ask next
- How can I identify confounding variables in my dataset?Ask
- What is the difference between correlation coefficient and coefficient of determination?Ask
- When is it appropriate to use a randomized controlled experiment?Ask
- what does R squared tell you
- what is the difference between standard deviation and standard error
- what does a p-value actually mean
- when do you use a t-test instead of a z-test
