Inferensys

Glossary

Simpson's Paradox

A statistical phenomenon where a trend appears in several different groups of data but disappears or reverses when these groups are aggregated, posing a significant risk to drawing correct conclusions from segmented experiment results.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
STATISTICAL PHENOMENON

What is Simpson's Paradox?

A statistical paradox where a trend appearing in several data groups reverses or disappears when the groups are combined, posing a critical risk to valid inference in segmented A/B test analysis.

Simpson's Paradox is a statistical phenomenon where an association between two variables consistently observed within subgroups of a population reverses direction when those subgroups are aggregated into a single pool. This reversal occurs due to a hidden confounding variable—often an unequal distribution of sample sizes or a lurking categorical factor—that distorts the marginal association, making the aggregate conclusion mathematically correct yet practically misleading for decision-making.

In A/B testing infrastructure, the paradox frequently manifests when experimenters segment results by device type, geography, or user cohort without applying proper statistical controls like the Cochran-Mantel-Haenszel test. A new recommendation model may appear to increase conversion in both mobile and desktop segments individually, yet show a global decrease when combined—simply because the lower-converting mobile segment received a disproportionate share of overall traffic during the experiment.

STATISTICAL PHENOMENON

Core Characteristics

The defining features of Simpson's Paradox and why it represents a critical threat to valid inference in segmented A/B tests.

01

Trend Reversal on Aggregation

The defining characteristic: a statistical relationship present in multiple subgroups disappears or reverses direction when the subgroups are combined into a single aggregate view. For example, a new recommendation model may show a positive lift in conversion rate for both mobile and desktop users separately, but when the data is pooled, the aggregate metric shows a negative lift. This occurs because the confounding variable (device type) influences both the assignment to the variant and the baseline conversion rate.

02

Confounding Variable Dependency

The paradox is always driven by a lurking or confounding variable that correlates with both the independent variable (treatment assignment) and the dependent variable (outcome metric). In experimentation, this often manifests as:

  • Unequal sample sizes across segments
  • Different baseline conversion rates between segments
  • Imbalanced traffic allocation that skews the aggregate Without identifying and controlling for this confound, the aggregate result is mathematically correct but causally misleading.
03

Simpson's Reversal in A/B Tests

In online controlled experiments, the paradox emerges when traffic splits are not uniform across user segments. Consider a test where the treatment group receives 80% mobile users (low-converting) and 20% desktop users (high-converting), while the control group has the inverse proportion. Even if the treatment improves conversion within each device segment, the aggregate metric will favor the control group simply because it contains more high-converting desktop users. This is not a model failure — it is a compositional artifact.

04

Mitigation via Stratified Analysis

The primary defense is to never rely solely on aggregate metrics. Best practices include:

  • Stratified sampling: Ensure treatment and control groups have identical covariate distributions at assignment time
  • Segment-level reporting: Always examine treatment effects within key subgroups (device, geography, user tenure) before aggregating
  • Weighted averages: Use fixed weights based on the population distribution rather than sample proportions to compute an unbiased overall effect
  • Regression adjustment: Include the confounding variable as a covariate in a linear model to isolate the treatment effect
05

Historical Origin

The paradox is named after Edward H. Simpson, who described the phenomenon in a 1951 paper, though Karl Pearson and Udny Yule had observed similar effects decades earlier. A famous real-world example is the UC Berkeley gender bias case (1973), where aggregate admission data appeared to show bias against women, but a department-by-department analysis revealed a slight bias in favor of women. The reversal occurred because women applied disproportionately to more competitive departments with lower overall admission rates.

06

Relationship to Berkson's Paradox

Simpson's Paradox is closely related to Berkson's Paradox, another statistical phenomenon where conditioning on a common effect creates a spurious negative correlation between two independent causes. While Simpson's involves aggregation across subgroups, Berkson's involves selection bias from conditioning. Both highlight the danger of drawing causal conclusions from observational data without a clear understanding of the underlying data-generating process and the role of collider variables.

STATISTICAL PITFALLS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Simpson's Paradox and its dangerous implications for segmented A/B test analysis.

Simpson's Paradox is a statistical phenomenon where a trend or relationship that appears consistently within multiple subgroups of data reverses or disappears entirely when those subgroups are aggregated into a single population. The mechanism driving this paradox is the presence of a lurking variable—often an uneven distribution of sample sizes or a confounding covariate—that differentially weights the subgroups during aggregation. For example, a new recommendation algorithm might show a higher conversion rate than the control in both mobile and desktop segments individually, yet show a lower overall conversion rate when the segments are combined. This occurs because the algorithm was disproportionately served to the lower-converting mobile segment, skewing the aggregate average. The paradox is not a flaw in the mathematics; it is a structural artifact of collapsing a multidimensional contingency table into a marginal table, which can produce a weighted average that points in the opposite direction of every conditional association.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.