Skip to content
You Start with one site
Amounts in Start with one site
Data & Statistics · Concept

Correlation and causation

One idea Beginner 5 min read
Found this useful?

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.

Yes, the data show it?The data show that the two rise together. They do not show why.Not proved
It is chance?Twenty-four days that agree this well are not chance.Not chance
Something drives both?A hot day raises the demand for water and the load on the cold room.A third cause

See it

Predict first

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?

See it: 24 days at one site

Correlation r
Trend: energy for each pump hour
Outdoor temperature

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

The question

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
  1. Put the claim into a number

    (42.5 − 27.5) ÷ (6.5 − 3.5) = 15 ÷ 3 = 5 kWh for each pump hour.

  2. 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.

  3. 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

A strong correlation is not stronger proof of a cause. An r of 0.93 says that the points lie close to a line. It does not say which way the cause runs, or whether a third thing draws the line.

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

Question 1

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?

Question 2

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?

Question 3

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.
Key points
  • 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.
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.