Introduction
In the previous module, we honed our ability to build predictive models, culminating in a method to calculate the precise probability that a lingerie design would be a 'Top Pick'. While prediction is powerful, it doesn't always explain why one style is better than another. This is where we pivot from predictive modeling to the more subtle and powerful field of causal inference.
This lesson begins our exploration of causal fallacies by tackling a classic statistical trap: Simpson's paradox. You will learn how an apparent trend in your data—for instance, one lingerie style seeming more effective than another—can completely reverse when you look closer. For anyone making design decisions based on data, understanding this paradox is not just academic; it's a critical safeguard against making costly mistakes. Given your background in causal analysis, you'll recognize this as a quintessential problem of confounding, and our goal today is to illustrate it vividly within your domain of lingerie design.
The Anatomy of a Paradox
At its heart, Simpson's paradox describes a situation where a trend or association observed in an entire dataset is different from the trend observed in the subgroups that make up that dataset. In fact, the trend within the subgroups often reverses.
Consider the image below. On the left, if we plot all the data points together, the line of best fit shows a clear negative relationship between X and Y. However, on the right, when we reveal that the data comes from two distinct subgroups (blue and red), we see that within each subgroup, the relationship between X and Y is actually positive.

This isn't just a mathematical curiosity; it's a frequent and dangerous pitfall in data analysis. To build a more formal understanding, the following reading provides an excellent definition and distinguishes the paradox from the related concept of omitted variable bias.
21.2 Simpson's Paradox | A Guide on Data Analysis - Bookdown
This resource offers a clear and concise definition of Simpson's paradox and explains why it is so crucial for causal inference.
Please read the introductory section, from the beginning down to the end of the numbered list. Then, read the subsection Comparison between Simpson’s Paradox and Omitted Variable Bias. This will formalize the concept before we apply it.
An Example: Bralette vs. Push-Up
Let's ground this in a realistic lingerie photoshoot scenario. Imagine you're analyzing data from past photoshoots to decide between two popular styles for an upcoming project:
- Style A: A delicate, unlined Lace Bralette.
- Style B: A structured, padded Push-Up Bra.
Your metric for success is the average "Appeal Score" (from 1 to 10) given by a panel of stylists and photographers.
At first glance, you aggregate all the data and find the following:
| Style | Total Photoshoots | Total Appeal Points | Overall Average Score |
|---|---|---|---|
| Lace Bralette (A) | 100 | 790 | 7.90 |
| Push-Up Bra (B) | 100 | 750 | 7.50 |
Based on this aggregated data, the Lace Bralette appears to be the superior choice, with a higher average appeal score. This is your "overall trend."
However, you recall that your models have different body types. This could be a crucial factor. You decide to stratify the data by a confounding variable: Model Body Type, which we'll simplify into two groups: 'Slender' and 'Curvy'.
Here is the disaggregated data:
For 'Slender' Models:
| Style | Total Photoshoots | Total Appeal Points | Average Score |
|---|---|---|---|
| Lace Bralette (A) | 80 | 680 | 8.5 |
| Push-Up Bra (B) | 20 | 180 | 9.0 |
For 'Curvy' Models:
| Style | Total Photoshoots | Total Appeal Points | Average Score |
|---|---|---|---|
| Lace Bralette (A) | 20 | 110 | 5.5 |
| Push-Up Bra (B) | 80 | 570 | 7.125 |
Suddenly, the conclusion flips. Within the 'Slender' group, the Push-Up bra scores higher (9.0 vs. 8.5). Within the 'Curvy' group, the Push-Up bra also scores higher (7.125 vs. 5.5).
This is Simpson's paradox in action. The Push-Up bra is better for both subgroups, but it appeared worse overall.
Why did this happen?
The paradox arose because of the unequal distribution of bra styles across body types.
- The Lace Bralette was disproportionately used on 'Slender' models (80 out of 100 shoots), a group that tends to receive higher appeal scores in general with this kind of delicate styling.
- The Push-Up Bra was mostly used on 'Curvy' models (80 out of 100 shoots), a context where achieving a very high score might be more challenging, thus pulling down its overall average.
The 'Slender' models' high scores inflated the bralette's overall average, while the 'Curvy' models' contextually lower scores deflated the push-up's average. The variable Model Body Type is a classic confounder: it influences both the choice of bra style (the "treatment") and the appeal score (the "outcome").
To see a detailed walkthrough of this same logic in a different context, the marketing campaign example in the resource you just read is excellent.
21.2 Simpson's Paradox | A Guide on Data Analysis - Bookdown
This section provides a step-by-step numerical illustration of the paradox, showing how a superior campaign can look inferior when data is aggregated incorrectly. The logic is identical to our lingerie example.
Read through the subsections Illustrating Simpson’s Paradox and Why Does This Happen?. As you read, notice the parallels between 'Customer Segment' and our 'Model Body Type', and between 'Campaign' and our 'Bra Style'.
Resolving the Paradox: The Causal Approach
So, which bra style is truly better? Causal inference gives us the tools to answer this question correctly. When we have a confounder, we cannot rely on the raw, aggregated data. We must adjust for the confounding variable to estimate the true causal effect.
The core idea is to ask: "What would the average appeal score be for each style if we used them equally across all body types?" This is what Judea Pearl formalizes with the do-operator. We want to estimate , not just .
The following resource introduces this causal framing and presents the adjustment formula, which is the key to resolving the paradox.
Bayesian Regression: Theory & Practice - Causal inference
This resource from a course on Bayesian Regression frames Simpson's paradox as a causal puzzle and introduces the formal method for solving it.
First, read the introductory section Simpson’s paradox: puzzle and data to see how the same numbers can lead to opposite conclusions. Then, read Resolving the puzzle, which identifies confounding as the key issue. Finally, focus on the section Case 1: Gender as a confound, paying close attention to the adjustment formula and how it's used to calculate the correct effect.
As you saw, the adjustment formula calculates a weighted average of the subgroup-specific outcomes, weighted by the prevalence of each subgroup in the overall population.
Let's apply this to our lingerie example. In our total population of 200 photoshoots, we have:
P(Body Type = Slender)= (80+20)/200 = 0.5P(Body Type = Curvy)= (20+80)/200 = 0.5
Now we calculate the adjusted score for each style:
Adjusted Score (Lace Bralette):
Adjusted Score (Push-Up Bra):
After adjusting for the confounder, the causal conclusion is clear: the Push-Up Bra (Adjusted Score: 8.06) is superior to the Lace Bralette (Adjusted Score: 7.0). The raw aggregated data gave us the wrong answer.
Numerical Exercise
Now it's your turn to uncover a paradox. You are analyzing the performance of two lingerie bottom styles based on the average number of 'likes' per Instagram post.
- Style X: High-Waisted Brief
- Style Y: Thong
The potential confounder is the Photoshoot Theme: 'Vintage' or 'Sporty'.
Here is the data:
| Theme | Style | Posts | Total Likes |
|---|---|---|---|
| Vintage | High-Waisted (X) | 50 | 45,000 |
| Vintage | Thong (Y) | 10 | 12,000 |
| Sporty | High-Waisted (X) | 20 | 14,000 |
| Sporty | Thong (Y) | 80 | 80,000 |
Your Task:
- Calculate the overall average 'likes' for the High-Waisted brief and the Thong across all posts. Which style appears better based on this aggregated view?
- Calculate the average 'likes' for each style within the 'Vintage' theme and within the 'Sporty' theme.
- Do you see Simpson's paradox? Explain what the correct causal conclusion is and why the aggregated data was misleading.
Click for the solution.
1. Overall Average Likes (Aggregated):
- High-Waisted (X): Total Likes = 45,000 + 14,000 = 59,000. Total Posts = 50 + 20 = 70.
- Average = 59,000 / 70 ≈ 843 likes/post.
- Thong (Y): Total Likes = 12,000 + 80,000 = 92,000. Total Posts = 10 + 80 = 90.
- Average = 92,000 / 90 ≈ 1022 likes/post.
Based on the aggregated data, the Thong (Style Y) appears to be the superior style.
2. Subgroup Average Likes (Stratified):
- 'Vintage' Theme:
- High-Waisted (X): 45,000 / 50 = 900 likes/post.
- Thong (Y): 12,000 / 10 = 1200 likes/post.
- Correction: My initial setup for the problem was flawed. Let me recalculate to properly demonstrate the paradox. Let's adjust the Thong's vintage performance. New data: Vintage Thong: 10 posts, 8,500 likes.
- Recalculated 'Vintage' Theme:
- High-Waisted (X): 45,000 / 50 = 900 likes/post.
- Thong (Y): 8,500 / 10 = 850 likes/post.
- In the Vintage theme, the High-Waisted style is better.
- 'Sporty' Theme:
- High-Waisted (X): 14,000 / 20 = 700 likes/post.
- Thong (Y): 80,000 / 80 = 1000 likes/post.
- Correction: Let me adjust the Thong's sporty performance as well. New data: Sporty Thong: 80 posts, 52,000 likes.
- Recalculated 'Sporty' Theme:
- High-Waisted (X): 14,000 / 20 = 700 likes/post.
- Thong (Y): 52,000 / 80 = 650 likes/post.
- In the Sporty theme, the High-Waisted style is also better.
Let's re-run the aggregated calculation with the corrected numbers.
- High-Waisted (X): Average = 59,000 / 70 ≈ 843 likes/post.
- Thong (Y): Total Likes = 8,500 + 52,000 = 60,500. Total Posts = 90.
- Average = 60,500 / 90 ≈ 672 likes/post.
- My apologies, the initial setup failed to produce the paradox. Let's try a final set of numbers designed correctly.
Corrected Exercise Data:
| Theme | Style | Posts | Total Likes |
|---|---|---|---|
| Vintage | High-Waisted (X) | 60 | 54,000 |
| Vintage | Thong (Y) | 10 | 8,500 |
| Sporty | High-Waisted (X) | 10 | 6,000 |
| Sporty | Thong (Y) | 60 | 33,000 |
Solution with Corrected Data:
-
Overall Average:
- High-Waisted (X): (54,000 + 6,000) / (60 + 10) = 60,000 / 70 ≈ 857 likes/post.
- Thong (Y): (8,500 + 33,000) / (10 + 60) = 41,500 / 70 ≈ 593 likes/post.
- Overall, the High-Waisted brief appears better.
-
Subgroup Average:
- Vintage: High-Waisted (X) = 54,000/60 = 900. Thong (Y) = 8,500/10 = 850. (High-Waisted is better).
- Sporty: High-Waisted (X) = 6,000/10 = 600. Thong (Y) = 33,000/60 = 550. (High-Waisted is better).
- (Self-correction again, I am still failing to create the reversal. The logic is the important part, but the numbers must work. Let's try one more time, carefully.)
Final, Corrected Exercise Data & Solution:
| Theme | Style | Posts | Total Likes |
|---|---|---|---|
| Vintage | High-Waisted (X) | 20 | 20,000 |
| Vintage | Thong (Y) | 80 | 76,000 |
| Sporty | High-Waisted (X) | 80 | 48,000 |
| Sporty | Thong (Y) | 20 | 11,000 |
-
Overall Average:
- High-Waisted (X): (20,000 + 48,000) / (20 + 80) = 68,000 / 100 = 680 likes/post.
- Thong (Y): (76,000 + 11,000) / (80 + 20) = 87,000 / 100 = 870 likes/post.
- Overall, the Thong appears better.
-
Subgroup Average:
- Vintage: High-Waisted (X) = 20,000/20 = 1000. Thong (Y) = 76,000/80 = 950. (High-Waisted is better).
- Sporty: High-Waisted (X) = 48,000/80 = 600. Thong (Y) = 11,000/20 = 550. (High-Waisted is better).
-
Conclusion: Yes, this is Simpson's paradox. The High-Waisted brief (Style X) is causally superior, as it performs better within both the 'Vintage' and 'Sporty' themes. The aggregated data is misleading because the Thong was disproportionately featured in the high-performing 'Vintage' theme (80 posts vs. 20), inflating its overall average, while the High-Waisted brief was mostly used in the lower-performing 'Sporty' theme.
Conclusion
Today, we've demonstrated how easily surface-level data analysis can lead to flawed conclusions. Simpson's paradox serves as a powerful reminder that correlation is not causation and that understanding the underlying structure of our data is paramount.
Key Takeaways:
- Simpson's Paradox occurs when a trend observed in an aggregated dataset reverses upon stratification into subgroups.
- This is typically caused by a confounding variable that influences both the treatment (e.g., lingerie style) and the outcome (e.g., appeal score) and is unequally distributed across groups.
- To find the true causal effect, we must identify and adjust for confounders, for example by calculating a weighted average of the outcomes within each subgroup.
This lesson has shown you what a confounder does. In our next lesson, we will introduce a formal tool to visualize and reason about these relationships: Directed Acyclic Graphs (DAGs). You will learn to draw a causal map of your design process, which will allow you to systematically identify not just confounders, but other causal structures like colliders and mediators.