Why is calculating sample size before launching an A/B test important, and what happens if you skip this step?

Quick Overview

Asks why an A/B test needs a sample size calculation before launch and what goes wrong when the step is skipped. Tests understanding of statistical power, minimum detectable effect, fixed stopping rules and the false positive inflation caused by peeking.

Why is calculating sample size before launching an A/B test important, and what happens if you skip this step?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

Why is calculating sample size before launching an A/B test important, and what happens if you skip this step? ```hint Two kinds of error Think about which error rate the sample size controls, and which one a fixed end date protects. ``` ```hint Inputs to the calculation List what you need to know before you can compute the number, and what the result tells you about whether the test is even feasible. ``` ### What a Strong Answer Covers - The link between sample size, statistical power and the minimum detectable effect, and the inputs the calculation needs. - How a pre-committed sample size works as a stopping rule, and why peeking without one inflates the false positive rate. - The consequences of an underpowered test, including inconclusive results and exaggerated effect estimates when a result does reach significance. - The cost of an oversized test and the feasibility check against available traffic. ### Follow-up Questions - How would you size a test on revenue per session when the randomization unit is the user? - The product team insists on checking results every day. How would you design the test so those interim looks do not inflate the false positive rate? - How does the required sample size change if you test three variants against control instead of one? - The calculation says the test needs 12 weeks of traffic. What are your options?

Overview: Asks why an A/B test needs a sample size calculation before launch and what goes wrong when the step is skipped. Tests understanding of statistical power, minimum detectable effect, fixed stopping rules and the false positive inflation caused by peeking.

Nov 24, 2026
mediumData ScientistOtherAnalytics & Experimentation
0
0

Why is calculating sample size before launching an A/B test important, and what happens if you skip this step?

What a Strong Answer Covers Guidance

  • The link between sample size, statistical power and the minimum detectable effect, and the inputs the calculation needs.
  • How a pre-committed sample size works as a stopping rule, and why peeking without one inflates the false positive rate.
  • The consequences of an underpowered test, including inconclusive results and exaggerated effect estimates when a result does reach significance.
  • The cost of an oversized test and the feasibility check against available traffic.

Follow-up Questions Guidance

  • How would you size a test on revenue per session when the randomization unit is the user?
  • The product team insists on checking results every day. How would you design the test so those interim looks do not inflate the false positive rate?
  • How does the required sample size change if you test three variants against control instead of one?
  • The calculation says the test needs 12 weeks of traffic. What are your options?