Skip to main content
← CoursesData Science AppliedModule 4 · Causal Inference & A/B TestingA/B test sample size calculatorwrite63 / 100
💬 Discuss🧪 Playground+125 XP
Task
📝 **Question:** Implement `sample_size(baseline, mde)` returning the per-arm user count required (alpha=0.05, power=0.8). Test on baseline=0.10, mde=0.02 (10% → 12% lift). 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…