You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(f"Male Purchasers: ATE = ${ate_women_male:.4f}")
383
-
print(f"Female Purchasers: ATE = ${ate_women_female:.4f}")
382
+
print(f"Men's Merch. Purchasers: ATE = ${ate_women_male:.4f}")
383
+
print(f"Women's Merch. Purchasers: ATE = ${ate_women_female:.4f}")
384
384
print("\nMen's Email Campaign:")
385
-
print(f"Male Purchasers: ATE = ${ate_men_male:.4f}")
386
-
print(f"Female Purchasers: ATE = ${ate_men_female:.4f}")
385
+
print(f"Men's Merch. Purchasers: ATE = ${ate_men_male:.4f}")
386
+
print(f"Women's Merch. Purchasers: ATE = ${ate_men_female:.4f}")
387
387
388
388
Expected output::
389
389
390
390
Average Treatment Effects by Subgroup:
391
391
392
392
Women's Email Campaign:
393
-
Male Purchasers: ATE = $0.2564
394
-
Female Purchasers: ATE = $0.5442
393
+
Men's Merch. Purchasers: ATE = $0.2564
394
+
Women's Merch. Purchasers: ATE = $0.5442
395
395
396
396
Men's Email Campaign:
397
-
Male Purchasers: ATE = $0.8966
398
-
Female Purchasers: ATE = $0.8412
397
+
Men's Merch. Purchasers: ATE = $0.8966
398
+
Women's Merch. Purchasers: ATE = $0.8412
399
399
400
400
These results reveal important patterns:
401
401
402
-
- **Women's Email Campaign**: Shows 2× stronger effect for female purchasers ($0.54) vs male purchasers ($0.26)
402
+
- **Women's Email Campaign**: Shows 2× stronger effect for women's merchandise purchasers ($0.54) vs men's merchandise purchasers ($0.26)
403
403
- **Men's Email Campaign**: Demonstrates consistent strong effects across both segments ($0.84-$0.89)
404
404
405
405
While these averages provide a useful summary, they don't tell us *how* customer spending distributions change. The distributional and probability treatment effect analyses that follow reveal the complete picture of campaign effectiveness.
@@ -411,13 +411,13 @@ Beyond the average effects, let's examine how the Women's Email campaign shifts
@@ -460,7 +460,7 @@ Beyond the average effects, let's examine how the Women's Email campaign shifts
460
460
:width:800px
461
461
:align:center
462
462
463
-
**Key Finding for Women's Email Campaign**: The distributional treatment effects reveal that women's email campaigns are significantly more effective for the female purchaser segment (right panel) compared to the male purchaser segment (left panel). The DTE curves show that women's emails reduce the probability of low spending levels (negative DTE at lower thresholds) for female purchasers, indicating a shift toward higher spending. In contrast, the male purchaser segment shows minimal or non-significant effects across most of the spending distribution, with confidence intervals overlapping zero.
463
+
**Key Finding for Women's Email Campaign**: The distributional treatment effects reveal that women's email campaigns are significantly more effective for the women's merchandise purchaser segment (right panel) compared to the men's merchandise purchaser segment (left panel). The DTE curves show that women's emails reduce the probability of low spending levels (negative DTE at lower thresholds) for women's merchandise purchasers, indicating a shift toward higher spending. In contrast, the men's merchandise purchaser segment shows minimal or non-significant effects across most of the spending distribution, with confidence intervals overlapping zero.
464
464
465
465
Distribution Treatment Effects: Men's Email Campaign
@@ -507,7 +507,7 @@ Now let's examine how the Men's Email campaign affects spending distributions:
507
507
:width:800px
508
508
:align:center
509
509
510
-
**Key Finding for Men's Email Campaign**: In contrast to women's email campaigns, men's email campaigns show consistent effectiveness across both purchase history segments. The DTE curves in both panels show similar patterns, with negative values at lower spending levels indicating reduced probability of low spending for both male and female purchasers. This suggests that men's emails have broad appeal regardless of whether customers historically purchased men's or women's merchandise.
510
+
**Key Finding for Men's Email Campaign**: In contrast to women's email campaigns, men's email campaigns show consistent effectiveness across both purchase history segments. The DTE curves in both panels show similar patterns, with negative values at lower spending levels indicating reduced probability of low spending for both male and women's merchandise purchasers. This suggests that men's emails have broad appeal regardless of whether customers historically purchased men's or women's merchandise.
511
511
512
512
Probability Treatment Effects: Women's Email Campaign
@@ -558,7 +558,7 @@ While DTE shows how cumulative distributions shift, Probability Treatment Effect
558
558
:width:800px
559
559
:align:center
560
560
561
-
**Interval-Specific Insights**: The PTE bar charts reveal the mechanism behind the average treatment effect. For female purchasers (right panel), women's emails significantly reduce the probability of zero spending (non-purchasers converting to purchasers), which is the primary driver of the positive ATE. However, no significant increase in high spending categories is observed. For male purchasers (left panel), the effects are much smaller and less consistent, confirming the limited impact suggested by the ATE and DTE analyses.
561
+
**Interval-Specific Insights**: The PTE bar charts reveal the mechanism behind the average treatment effect. For women's merchandise purchasers (right panel), women's emails significantly reduce the probability of zero spending (non-purchasers converting to purchasers), which is the primary driver of the positive ATE. However, no significant increase in high spending categories is observed. For men's merchandise purchasers (left panel), the effects are much smaller and less consistent, confirming the limited impact suggested by the ATE and DTE analyses.
562
562
563
563
Probability Treatment Effects: Men's Email Campaign
@@ -607,7 +607,7 @@ Let's examine which spending categories are most affected by men's email campaig
607
607
:width:800px
608
608
:align:center
609
609
610
-
**Interval-Specific Insights**: Men's email campaigns show similar PTE patterns across both segments (left and right panels). The key mechanism is twofold: (1) significant reduction in zero spending probability (converting non-purchasers to purchasers), and (2) increased probability in the $40-100 spending range. This dual effect—both purchase conversion and mid-range spending increases—occurs consistently across both male and female purchaser segments, confirming the broad effectiveness of men's campaigns.
610
+
**Interval-Specific Insights**: Men's email campaigns show similar PTE patterns across both segments (left and right panels). The key mechanism is twofold: (1) significant reduction in zero spending probability (converting non-purchasers to purchasers), and (2) increased probability in the $40-100 spending range. This dual effect—both purchase conversion and mid-range spending increases—occurs consistently across both male and women's merchandise purchaser segments, confirming the broad effectiveness of men's campaigns.
611
611
612
612
Key Insights from Subgroup Analysis
613
613
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -616,29 +616,29 @@ Combining Average Treatment Effects (ATE), Distribution Treatment Effects (DTE),
- For women's emails, the female purchaser segment shows negative DTE at lower spending thresholds, indicating a systematic shift away from low-spending behavior
626
-
- Male purchasers show minimal distributional changes from women's emails, with confidence intervals overlapping zero at most thresholds
625
+
- For women's emails, the women's merchandise purchaser segment shows negative DTE at lower spending thresholds, indicating a systematic shift away from low-spending behavior
626
+
- Men's merchandise purchasers show minimal distributional changes from women's emails, with confidence intervals overlapping zero at most thresholds
627
627
- Men's emails produce similar distributional patterns across both segments, confirming broad effectiveness
628
628
629
629
**3. Spending Category Changes (from PTE)**
630
630
631
631
- PTE analysis reveals *which specific spending intervals* change in response to campaigns, particularly identifying the mechanisms behind average effects
632
-
- **Women's emails**: For female purchasers, the primary effect is converting non-purchasers to purchasers (significant reduction in zero spending probability). No significant increase in high spending categories was observed.
632
+
- **Women's emails**: For women's merchandise purchasers, the primary effect is converting non-purchasers to purchasers (significant reduction in zero spending probability). No significant increase in high spending categories was observed.
633
633
- **Men's emails**: Show a dual mechanism across both segments: (1) converting non-purchasers to purchasers (zero spending reduction), and (2) increasing purchases in the $40-100 range
634
634
- PTE enables identification of behavioral change mechanisms that are invisible in average treatment effects alone—specifically revealing that lift comes primarily from purchase conversion (0→1 effect) rather than spending increases among existing purchasers
635
635
636
636
**4. Strategic Implications**
637
637
638
638
Based on these findings, several practical implications emerge:
639
639
640
-
- **For Women's Campaigns**: Target customers with history of purchasing women's merchandise to maximize ROI. The PTE analysis reveals that effectiveness comes primarily from converting non-purchasers to purchasers among female purchaser segments, rather than increasing spending among existing buyers.
641
-
- **For Men's Campaigns**: Deploy broadly as they produce consistent positive effects across diverse customer segments. Both male and female purchasers show both purchase conversion and mid-range spending increases, suggesting broader appeal.
640
+
- **For Women's Campaigns**: Target customers with history of purchasing women's merchandise to maximize ROI. The PTE analysis reveals that effectiveness comes primarily from converting non-purchasers to purchasers among women's merchandise purchaser segments, rather than increasing spending among existing buyers.
641
+
- **For Men's Campaigns**: Deploy broadly as they produce consistent positive effects across diverse customer segments. Both male and women's merchandise purchasers show both purchase conversion and mid-range spending increases, suggesting broader appeal.
642
642
- **Resource Allocation**: One practical implication is to prioritize precise targeting for gender-specific content (women's emails) but invest confidently in broad deployment for broadly appealing content (men's emails).
0 commit comments