Correlation, Confounding and Causation
Pantry's app has a recipes tab. Customers who use it order 30% more groceries than those who do not. The marketing team wants to push recipe notifications to everyone, expecting a 30% jump in orders. Before anyone spends money, a data scientist asks one question: is the recipes tab causing those extra orders, or just keeping company with them?
The rule
Before trusting a link, ask what else could drive both.
A correlation says two things move together. A causal effect says that changing one would change the other. The gap between them is filled by rival explanations:
- Confounding: a third factor drives both. People who love cooking open recipes and buy more ingredients, and they would buy more even if the tab vanished. That third factor, cooking enthusiasm, is a confounder.
- Reverse causation: the arrow points the other way. Heavy shoppers open the app more often, so they stumble onto the recipes tab more often.
- Selection: the groups were formed in a way that already made them different. The tab only exists in the newest app version, and loyal customers update first.
- Chance: with small groups, a pattern can appear by luck.
Each rival predicts the same correlation you saw. That is why the correlation alone cannot tell you what pushing recipes to everyone would do. If most of the 30% gap is cooking enthusiasm, the notifications will add almost nothing.