INTERMEDIATECore Topic 4 min read 2 views
A/B Testing Power Analysis, Simpson’s Paradox & Correlation vs Causality Traps
Sample size scaling in online A/B experiments, Bonferroni multiple-testing correction, Pearson linear vs Spearman rank correlation, Anscombe’s quartet, and Simpson’s confounding paradox.
1. Online Controlled Experiments (A/B Testing) & Multiple Comparisons
- Statistical Power (): Probability of correctly rejecting when a real effect exists (standard industry target: , Power ).
- Multiple Testing (-Hacking) Trap: Testing independent metrics at when all null hypotheses are true gives family-wise false positive probability:
- Bonferroni Correction: Test each individual hypothesis at to guarantee Family-Wise Error Rate (or use Benjamini-Hochberg to control False Discovery Rate).
2. Classic Correlation & Aggregation Traps
- Zero Correlation Independence: and independent , EXCEPT the converse is FALSE! Example: equally likely and , so even though is determined by ! (Exception: For Bivariate Normal , Independent!)
- Pearson () vs Spearman (): For strictly monotonic non-linear , Spearman rank correlation is , whereas Pearson .
- Simpson’s Paradox: A trend present inside every subgroup ( beats in both Easy and Hard patient cohorts) reverses direction when groups are aggregated because a confounder affects both treatment assignment and base outcome rate!
Key Formulas Summary
Sample Size Scaling for Two-Sample A/B Test (Minimum Detectable Effect delta)
Note: Halving the Minimum Detectable Effect (delta -> delta/2) requires 4x as many users per variant!
Pearson Linear vs Spearman Rank Correlation
Note: If Y = X^2 on symmetric X ~ Uniform(-1, 1), Cov(X,Y) = 0 => r_XY = 0 despite exact deterministic dependence!
#Data Science#A/B Testing#Statistical Power#Pearson#Spearman#Simpson Paradox
Practice Questions on This Chapter (1)
Q1GATE DA A/B TestingMCQMEDIUM
+2M • -0.67
In an online A/B test with fixed significance and power , you decide to detect a Minimum Detectable Effect (MDE) half as small (). How does the required sample size per variant change?
⚡ Click an option above to verify instantly