Chayan Aggarwal / Tools

Tools / Simulations

Simpson's paradox simulator

Animated Simpson's paradox with real kidney stone treatment data. See how one treatment wins overall but loses in every group.

Interactive by Chayan Aggarwal ↗

Simpson's paradox is when a trend that appears in combined data reverses when you split the data into groups. The classic real example comes from a 1986 study of kidney stone treatments: treatment B looked better overall, but treatment A was better for both small and large stones.

Watch the animation above split the same patients into two groups. The reversal happens because the groups weren't the same size or mix. Before trusting any total, ask what's hiding inside it.

Read the full story on Field notes →