Resolve Simpson’s paradox in A/B email test
LinkedInData Scientist · Technical ScreenLast updated
This question tests your ability to identify and resolve Simpson's Paradox in A/B test results, where an aggregate trend disappears or reverses when segmented by user cohorts.
Scenario
LinkedIn is testing a new "Premium Upsell" email design to increase the click-through rate (CTR). You are given the following aggregate performance data:
| Group | Sent | Clicked | CTR |
|---|---|---|---|
| Control | 10,000 | 500 | 5.0% |
| Variant | 10,000 | 450 | 4.5% |
At first glance, the Control group performs better. However, a junior analyst suggests looking at the data segmented by user seniority level (Junior vs. Senior):
Junior Users:
| Group | Sent | Clicked | CTR |
|---|---|---|---|
| Control | 8,000 | 320 | 4.0% |
| Variant | 2,000 | 90 | 4.5% |
Senior Users:
| Group | Sent | Clicked | CTR |
|---|---|---|---|
| Control | 2,000 | 180 | 9.0% |
| Variant | 8,000 | 360 | 4.5% |
Task
- Explain why the aggregate CTR for the Variant (4.5%) appears lower than the Control (5.0%) despite the Variant outperforming the Control in both individual segments.
- Identify the confounding variable here. How did the imbalance in user distribution affect the aggregate results?
- Propose a method to calculate the "true" impact of the email design that accounts for the seniority distribution differences.
Hints
Hint 1
Look closely at the distribution of Senior users between the two groups; is the randomization balanced?
Hint 2
Simpson's Paradox occurs when a confounding variable influences both the group assignment and the outcome metric.
Hint 3
Consider using weighted averages or post-stratification techniques to normalize the results based on the target population distribution.
Follow-up questions
- If you discovered this imbalance after the experiment finished, would you trust the segment-level results or the aggregate results? Why?
- How would you adjust your experimental design process (e.g., randomization strategy) to prevent this kind of imbalance in future tests?
- If the 'Senior' segment had significantly higher engagement overall regardless of the email, how would you statistically control for this during the analysis phase?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.