📈 Data ScientistID: ds-sample-size-formula-mde-derivation
Sample Size Derivation & MDE Budget
样本量公式严格推导与 MDE 估算
🎯Core Definition
The A/B Test Minimum Sample Size Formula & MDE Derivation establishes the exact sample requirements per variant under significance α and power 1−β; for continuous mean metrics, equating critical Z-score thresholds under H0 and H1 yields the closed-form sample size formula: n=δ2(zα/2+zβ)2⋅2σ2 (where δ=∣μT−μC∣ is target effect size, σ2 metric variance); for binomial ratio metrics (CTR/CVR with baseline probability p), substituting σ2=pˉ(1−pˉ) derives: n=δ2(zα/2+zβ)2⋅2pˉ(1−pˉ); inverted under fixed traffic constraints, it computes the Minimum Detectable Effect: MDE=(zα/2+zβ)n2σ2.
💡Use Cases
Pre-experiment traffic budgeting, duration scheduling, and statistical sensitivity audits.
⚡Key Problems Solved
Underpowered tests miss real wins due to noisy variance, while overpowered tests waste valuable user traffic and delay product deployment cycles.
🎯5 High-Frequency Exam Points
1
Derive the step-by-step mathematical proof of sample size n=δ2(zα/2+zβ)2⋅2σ2 from normal distribution quantile critical boundaries?
2
Explain why halving the target effect size δ quadruples (4×) required sample size due to the inverse-square law?
3
Derive effective sample size neff=nT+nC2nTnC under skewed 90/10 traffic splits and quantify statistical power loss?
4
Why must online experiments run for integer weekly cycles (7 or 14 days) regardless of reaching sample size early to absorb weekly seasonality?
5
How to resolve sample size explosions on heavy-tailed revenue metrics via Winsorization, log transforms, or CUPED variance reduction?
🔗Foundational Prerequisite Cards (Click to Review)