Correlation, Confounding and Simpson's Paradox
Interpret correlation coefficients, spot confounders and reverse causation, see how Simpson's paradox flips results, and recognize regression to the mean.
Welcome back!
Step 1 of 14Learn
The feature that seemed to save customers
An analytics team at a software company found a striking pattern: customers who used the reporting feature in their first month had a 12-month retention rate of 85%, versus 45% for customers who didn't. The product team proposed forcing every new customer through a reporting tutorial. Retention, they predicted, would soar.
It didn't. The customers who discovered reporting on their own were mostly larger companies with dedicated administrators, already committed to the product. Reporting usage was a symptom of engagement, not its cause. Pushing uncommitted customers through a tutorial didn't turn them into committed ones.
This is the most famous warning in statistics: correlation is not causation. Two variables can move together because one causes the other, because the effect runs the other way, because a third factor drives both, or simply by chance.
Correlations are still enormously useful. They help you predict, prioritize and generate hypotheses. A strong correlation between reporting usage and retention is a great early-warning signal for churn. The mistake is to treat it as a lever you can pull. In this lesson you will learn to measure correlation, list the alternative explanations, and meet two patterns, Simpson's paradox and regression to the mean, that regularly fool smart people.
Step 2 of 14Learn
Measuring correlation
The Pearson correlation coefficient r measures the strength and direction of a linear relationship between two numeric variables. It ranges from −1 to +1:
- r near +1: points lie close to an upward-sloping line.
- r near −1: points lie close to a downward-sloping line.
- r near 0: no linear relationship.
Rough language for |r|: below 0.3 is weak, 0.3 to 0.7 moderate, above 0.7 strong, though what counts as strong depends on the field. Squaring r gives r², the share of the variation in one variable that a straight line on the other can account for. An r of 0.5 sounds substantial, yet r² = 0.25, so three quarters of the variation is left unexplained.
Three cautions. First, r only captures straight-line patterns. A U-shaped relationship, such as satisfaction rising and then falling with the number of notifications, can have r close to 0 while the relationship is strong. Second, a single outlier can create or destroy a correlation, so always look at the scatterplot. Third, correlations computed on aggregated data, such as averages by city, are usually much stronger than the same relationship among individuals, a trap called the ecological fallacy.
r has no units and doesn't change if you rescale a variable, such as dollars to thousands of dollars.
Step 3 of 14Practice · Choose one
Across 200 stores, the correlation between the number of staff on shift and the average customer wait time is r = −0.6. Which statement is best supported?
Step 4 of 14Chart
Staff on shift vs. average wait
A moderate negative correlation: the trend slopes down, but many points sit far from it.
| Point | Staff on shift | Average wait (minutes) |
|---|---|---|
| A | 3 | 11 |
| B | 3 | 7 |
| C | 4 | 12 |
| D | 4 | 8 |
| E | 5 | 6 |
| F | 5 | 10 |
| G | 6 | 9 |
| H | 6 | 5 |
| I | 7 | 7 |
| J | 8 | 4 |
| K | 8 | 7 |
| L | 9 | 3 |
Step 5 of 14Learn
Confounders, reverse causation and chance
When two variables are correlated, run through the alternatives before concluding that one causes the other:
- Confounding: a third variable drives both. Ice cream sales and drowning deaths rise together because summer heat increases both. In business, company size often confounds feature usage and retention, and customer income confounds premium plan uptake and spending.
- Reverse causation: the effect runs the other way. Customers who contact support more often churn more, but often because they were already unhappy, not because support drives them away.
- Selection: the data includes only certain cases. If you only survey current customers, you never hear from those who left.
- Chance: with enough variables, some will correlate by pure coincidence, especially in small datasets or short time series.
How do analysts get closer to causation? The gold standard is a randomized experiment, which breaks the link between the treatment and every confounder. When an experiment isn't possible, you can control for known confounders by comparing like with like, such as retention by feature usage within each company size band, or by including them in a regression model. Techniques such as difference-in-differences and natural experiments go further. But control only works for confounders you measured; an unmeasured one can still explain the pattern.
Step 6 of 14Practice · Match the pairs
Match each finding with the most likely alternative explanation.
Tap an answer, then tap the place where it belongs (or drag it there).
- Cities with more firefighters have more fire damage
- Customers who call support more often are more likely to cancel
- A satisfaction survey of current users shows very high scores
- Monthly sales of a snack correlate with a sports team's wins over two seasons
Step 7 of 14Diagram
A and B move together. Why?
Run through every branch before claiming one causes the other.
Tap a shape with to see more.
- A and B are correlated
- A causes B
Possible, but the last explanation to accept, ideally with an experiment.
- B causes A
Reverse causation: unhappy customers call support, not the other way round.
- C causes both
A confounder, such as company size driving both feature use and retention.
- Chance
With enough variables, some correlate by luck.
Step 8 of 14Learn
Simpson's paradox: when the total disagrees with every part
An online store tests two landing pages. Here are the results by device:
| Page A | Page B | |
|---|---|---|
| Mobile | 40 / 2,000 = 2.0% | 9 / 600 = 1.5% |
| Desktop | 80 / 800 = 10.0% | 216 / 2,400 = 9.0% |
| Total | 120 / 2,800 = 4.3% | 225 / 3,000 = 7.5% |
Page A converts better on mobile and better on desktop. Yet in total, Page B looks far better. This reversal is Simpson's paradox.
The cause is the mix. Desktop visitors convert much more than mobile visitors, and Page B's traffic was mostly desktop (2,400 of 3,000), while Page A's was mostly mobile. The total for B is pulled up by its favorable mix, not by the page.
Which answer is right? Here, the device-level comparison: within each device, A wins. The device mix was an accident of how traffic was routed, which is exactly why proper A/B tests randomize, so both pages get the same mix.
Simpson's paradox appears whenever groups differ in composition on a variable that strongly affects the outcome. Before comparing totals across groups, ask whether the groups have similar mixes of the key segments, such as device, region, customer type or product category. If not, compare within segments or adjust for the mix.
Step 9 of 14Practice · Work it out
Using the landing page table, suppose Page B had received the same traffic mix as Page A (2,000 mobile and 800 desktop visitors) and kept its segment rates of 1.5% and 9.0%. What would Page B's overall conversion rate be? Round to one decimal place.
Step 10 of 14Practice · Chart
Simpson's paradox in one picture
Page A wins inside each device, yet loses in the total because of its traffic mix.
Tap the group where Page B looks better.
Tap the bar that answers the question, then press Check.
Step 11 of 14Note
Step 12 of 14Learn
Regression to the mean
A regional manager picks the ten stores with the worst customer satisfaction scores last quarter and sends a coach to each. Next quarter, eight of the ten improve. Was the coaching effective?
Maybe, but you can't tell from that alone. Any measurement mixes a stable component (how good the store really is) with luck (a bad week, an unusual batch of customers, a few angry reviews). Stores picked because they scored worst are likely to have had unusually bad luck. Next quarter their luck will probably be closer to average, so their scores tend to rise even with no intervention at all. This is regression to the mean: extreme results tend to be followed by less extreme ones.
It works at the top too. The best-performing sales rep of the year often has a less spectacular next year, and the team whose campaign had record results struggles to repeat it. That isn't necessarily a slump; the first result included good luck.
The defense is a comparison group. Pick the twenty worst stores, randomly coach ten and leave ten alone. If both groups improve equally, the improvement was regression to the mean. Whenever an intervention targets units because of an extreme value, be suspicious of before-and-after comparisons that lack a control group.
Step 13 of 14Practice · What would you do?
What would you do?
A company identifies the 50 customers with the lowest satisfaction scores in January and assigns each a dedicated account manager. In March, their average score has risen from 3.1 to 3.9 out of 5. The VP wants to give every customer an account manager. What is your concern?
Step 14 of 14Practice · True or false
A correlation of r = 0 between two variables means there is no relationship between them.
Lesson complete!