Association and causation
Learn why a strong pattern in data is not the same as cause and effect, for Year 12 General Mathematics in Queensland (QCAA). In a Townsville wet season, umbrella sales and mosquito bites climb together, yet an umbrella has never caused a bite. Spotting the real reason behind a link is a skill you will use whenever you read a news headline or an advertisement.
You will describe associations using \(r\) and \(R^2\), name a confounding (lurking) variable and explain how it drives both variables, and recognise coincidence. You will also see why only a controlled, randomised experiment can support a causal claim, bringing together your bivariate skills to solve practical problems.
Theory
A strong association between two variables does not mean one causes the other. This guide for Year 12 General Mathematics in Queensland shows how to describe an association, spot a confounding variable or coincidence, and judge causal claims with evidence from experiments.
Two variables have an association when knowing one helps predict the other: as one changes, the other tends to change in a consistent way. For numerical data, a scatterplot, the correlation coefficient \(r\) and the coefficient of determination \(R^2\) describe how strong it is. For categorical data, clearly different percentages across the groups of a two-way table show an association.
Causation means a change in one variable actually produces a change in the other. An association, however strong, does not prove causation. Two common non-causal explanations are a confounding (lurking) variable, a third variable that both variables respond to, and coincidence, where two unrelated variables happen to move together.
The reliable way to show causation is a controlled experiment, where subjects are randomly allocated to groups and only the explanatory variable is changed. Data that are simply observed (an observational study) can show association but cannot rule out other explanations.
Strength of a linear association, from the correlation coefficient:
The coefficient of determination, as a percentage:
Read \(R^2\) as: "\(R^2 \times 100\%\) of the variation in the response variable can be explained by the variation in the explanatory variable."
Analysing an association and a causal claim
- Describe the association. Give the direction, form and strength, using \(r\) (and \(R^2\) if useful).
- Look for a confounding variable. Ask what third factor could make both variables rise or fall together, and explain how it affects each one.
- Consider coincidence. If there is no sensible link, especially when both simply change over time, the association may be coincidence.
- Judge the claim. Observational data cannot prove causation. Say what controlled, randomised experiment would be needed to test it.
Ask what could push both variables up at the same time.
No. A likely confounding variable is rainfall (the wet season). In wet months more people buy umbrellas, and the standing water lets mosquitoes breed, so there are more bites. Both variables respond to the rain; an umbrella does not cause a bite.
Check whether there is any sensible link between the two variables.
The association is strong, but there is no believable connection between library membership and the size of the strawberry harvest. Both just happened to grow over the same years, so the association is most likely coincidence. (Time, through population growth, may also act as a lurking variable.) It does not show that one causes the other.
| Computers, \(x\) | 20 | 35 | 50 | 60 | 80 | 85 |
|---|---|---|---|---|---|---|
| Students passing, \(y\) | 31 | 40 | 62 | 58 | 85 | 90 |
Use the calculator's statistics mode for \(r\), then square the unrounded value.
| \(S_{xx}\) | \(=\) | \(3200\) |
| \(S_{yy}\) | \(=\) | \(2768\) |
| \(S_{xy}\) | \(=\) | \(2920\) |
| \(r\) | \(=\) | \(\dfrac{S_{xy}}{\sqrt{S_{xx} \times S_{yy}}}\) |
| \(r\) | \(=\) | \(\dfrac{2920}{\sqrt{3200 \times 2768}}\) |
| \(r\) | \(\approx\) | \(0.98\) |
| \(R^2\) | \(\approx\) | \(0.96\) |
There is a strong positive linear association (\(r \approx 0.98\)): schools with more computers tend to have more students passing. About \(96\%\) of the variation in the number of students passing can be explained by the variation in the number of computers.
This does not support the claim. A likely confounding variable is the number of students enrolled: bigger schools have more computers and more students sitting the test, so more pass. Comparing the percentage who pass would be fairer.
An observational study cannot control other differences between the farms.
(a) This is an observational study: the farmers chose whether to use the fertiliser. Farms that use it may also have better soil, more irrigation or more experienced growers, and any of these confounding variables could explain the higher yields.
(b) Run a controlled experiment. Take a large number of similar trees on the same farms and randomly allocate half to receive the fertiliser. Treat both groups the same in every other way, then compare the mean yields. Random allocation spreads the other factors evenly, so a clear difference would support causation.
Common pitfalls
Frequently asked questions
What is the difference between association and causation?
An association means two variables tend to change together. Causation means a change in one actually produces a change in the other. Association can exist without causation.
What is a confounding or lurking variable?
It is a third variable that affects both variables being studied, making them rise or fall together even though neither causes the other. For example, hot weather increases both air-conditioner sales and pool visits.
Does a high correlation mean one variable causes the other?
No. A high correlation coefficient only shows a strong linear association. It could be due to a confounding variable, coincidence, or a cause, and the data alone cannot tell which.
How can you prove causation in statistics?
Use a controlled experiment: randomly allocate subjects to groups, change only the explanatory variable, keep everything else the same, and compare the results.
What does coincidence mean for an association?
Two unrelated variables can move together by chance, often because both simply increase or decrease over the same period of time. There is no real link between them.
Does R squared tell you that x causes y?
No. R squared tells you the percentage of the variation in the response that can be explained by the variation in the explanatory variable, in a statistical sense only. It says nothing about cause.