Correlation and causation
On this page
Ice cream sales and drownings rise in the same months. Ice cream does not cause drowning: hot weather sends people to the ice cream seller and into the water. Correlation means that two things move together. Causation means that one of them moves the other. The first does not prove the second.
See it
A site records 24 days. On days when its borehole pump runs for more hours, its cold room uses more energy, and the points lie close to a straight line. A manager orders the pump hours to be cut by a third, to save energy in the cold room. What happens to the cold room energy?
Each dot is one day. The data are an example made for this page, in which the pump has no effect on the cold room. On a real site you cannot hold the weather steady, but you can compare only the days that had the same outdoor temperature, which does the same work.
The idea
Two quantities are correlated when they rise and fall together. The strength is written as r, a number from −1 to +1: near +1 the points lie close to a rising line, and near 0 there is no line at all. A correlation says nothing about the reason.
When A and B move together, there are four possible reasons. A moves B. B moves A. Chance, when the points are few. Or a third thing moves both. That third thing is called a confounding variable, or confounder. Weather, the season and the level of production are the usual ones.
The strongest way to find out is a controlled test: change A alone, hold everything else as it was, and see whether B follows. If you cannot test, compare cases in which the confounder had the same value. And ask for the mechanism: the chain of steps by which A could move B.
If neither is possible, say so in the report: "A and B are correlated, and we have not controlled for C".
One worked number
On days at 20 °C a pump runs 3.5 h and a cold room uses 27.5 kWh. On days at 30 °C the pump runs 6.5 h and the cold room uses 42.5 kWh. A report claims that each pump hour costs the cold room energy. To test it, the pump is stopped 2 h early on a 30 °C day. The cold room meter shows 42.4 kWh. Is the claim right?
Show the worked solution, 3 steps
- Put the claim into a number
(42.5 − 27.5) ÷ (6.5 − 3.5) = 15 ÷ 3 = 5 kWh for each pump hour.
- Say what the claim predicts for the test
Two hours less should save 2 × 5 = 10 kWh, so the meter should show 42.5 − 10 = 32.5 kWh.
- Compare with the test
The meter shows 42.4 kWh, almost the same as any other day at 30 °C. The pump hours changed and the energy did not follow, so the claim is wrong.
The mistake to avoid
The same trap appears in time: "we changed the part, and the fault stopped". After is not because. The lesson on correlation, causation and evidence gives the test: reverse the change and see whether the fault returns.
Check yourself
A solar plant produced 400 kWh on a day with 5.0 peak sun hours. Its modules were then cleaned. The next day it produced 440 kWh, with 5.5 peak sun hours. How much of the extra 40 kWh do these two days show to be the result of the cleaning?
A motor was running hot. A technician changed a setting in its drive, and the next day the motor ran cooler. Which test gives the strongest evidence that the setting was the cause?
Across 40 sites, the sites with the newest data loggers have the fewest pump failures. A report concludes that new loggers prevent failures. Which fact would explain the pattern without that conclusion?
Where you meet it
- A savings claim after new equipmentThe bill fell, but the weather or the production may have changed in the same months.
- Fault findingA part was replaced and the fault stopped. Until the fault returns with the old part, the cause is not proved.
- A water networkMore flow at a meter can be a leak or a busy month. A leak also flows at 03:00, when nobody uses water.
- Correlation: two things move together. Causation: one moves the other.
- A third thing that moves both, a confounder, can produce a strong correlation.
- To prove a cause, change one thing alone, then reverse it.
- If you cannot test, compare like with like and say what was not controlled.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.