Course outline

Mix Shift and Simpson's Paradox

By the end of this lesson, you should be able to: explain how every segment can improve while the total gets worse, run a shift-share decomposition that closes exactly, tell a within effect from a between effect, and give the right recommendation when the answer is "nothing is broken".

Five channels up, blended rate down

First, one piece of housekeeping. Lesson 10 found a payment regression in android 8.2 that depresses conversion for everybody. We've already located that cause, so it's excluded here. Removing a defect you have already explained before hunting for the next one is ordinary practice, and doing it in the other order means the thing you understand buries the thing you don't.

With that out, here is Basket's order conversion by acquisition channel, first four whole weeks against the last four.

Left: order conversion by channel, before and after, with every channel's after bar slightly taller. Right: three bars showing within at plus 0.40, between at minus 2.18, and the total change at minus 1.78 percentage points.
Left, every channel improved. Right, the decomposition that explains why the total still fell.
ChannelRate beforeRate afterChangeShare beforeShare afterShift
Organic22.73%23.15%+0.4237.0%30.7%−6.3
Paid search22.63%22.83%+0.2124.8%21.3%−3.5
Paid social8.83%9.30%+0.4715.0%30.6%+15.6
Referral23.21%23.76%+0.5514.4%11.3%−3.2
Partnership23.02%23.40%+0.378.7%6.0%−2.7
Blended20.708%18.928%−1.780

Read the change column. All five channels improved. Not one of them got worse.

Now read the bottom row. The blended rate fell by nearly two points.

Both are true. There's no error, no definitional trick, and no missing data. This is Simpson's paradox, and it is the single most common way a competent analyst reaches a confidently wrong conclusion.

Why it happens

Look at the share column. Paid social went from 15.0% of sessions to 30.6%.

Paid social converts at around 9%. Everything else converts at around 23%. The blended rate is a weighted average of the five, so doubling the weight on the worst one drags the average down even while every input rises.

Nothing about the product got worse. Nothing about any channel got worse. The population changed, and the average moved because averages do that.

Any time a rate moves and you can't find a segment that explains it, check whether the segment sizes moved. A blended rate has two moving parts: the values and the weights. Most people only look at one.