Treatment B beats Treatment A overall, but Treatment A wins in every single subgroup. How?
A real kidney-stone study compared two treatments. Treatment B succeeded more often than Treatment A when you looked at all patients together. But split the same data into 'small stones' and 'large stones' groups, and Treatment A was actually better in both. Work out how that's mathematically possible.
Reveal the answer
Doctors used Treatment A far more often on the harder large-stone cases and Treatment B mostly on easier small-stone cases, so the overall average for B got pulled up by easy cases while A's average got dragged down by hard ones. This is Simpson's paradox: a trend present in every subgroup can reverse when the subgroups are combined, because a hidden variable (stone size) is unevenly distributed between them.
— Wikipedia contributors, Simpson's paradox — Kidney stone treatment study example