Back to Data Scientist Mind Map
中文·English
📈 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 α\alpha and power 1β1 - \beta; for continuous mean metrics, equating critical ZZ-score thresholds under H0H_0 and H1H_1 yields the closed-form sample size formula: n=(zα/2+zβ)22σ2δ2n = \frac{(z_{\alpha/2} + z_\beta)^2 \cdot 2\sigma^2}{\delta^2} (where δ=μTμC\delta = |\mu_T - \mu_C| is target effect size, σ2\sigma^2 metric variance); for binomial ratio metrics (CTR/CVR with baseline probability pp), substituting σ2=pˉ(1pˉ)\sigma^2 = \bar{p}(1-\bar{p}) derives: n=(zα/2+zβ)22pˉ(1pˉ)δ2n = \frac{(z_{\alpha/2} + z_\beta)^2 \cdot 2 \bar{p}(1-\bar{p})}{\delta^2}; inverted under fixed traffic constraints, it computes the Minimum Detectable Effect: MDE=(zα/2+zβ)2σ2n\text{MDE} = (z_{\alpha/2} + z_\beta) \sqrt{\frac{2\sigma^2}{n}}.
💡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=(zα/2+zβ)22σ2δ2n = \frac{(z_{\alpha/2} + z_\beta)^2 \cdot 2\sigma^2}{\delta^2} from normal distribution quantile critical boundaries?
2
Explain why halving the target effect size δ\delta quadruples (4×4\times) required sample size due to the inverse-square law?
3
Derive effective sample size neff=2nTnCnT+nCn_{\text{eff}} = \frac{2 n_T n_C}{n_T + n_C} 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)
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Sample Size Derivation & MDE Budget"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardHypothesis Testing, Type I/II & PowerNext CardP-hacking, Peeking & mSPRT Sequential

🔗 More Data Scientist Knowledge Cards

Multiple Comparisons: FWER vs FDR-BHBootstrap Resampling & Empirical CICUPED Variance Reduction DerivationSRM Detection & Chi-Square Diagnostics