Explain how a metric's variance, statistical power and required sample size relate in an A/B test

Quick Overview

Asks how a metric's variance, the target power and the minimum detectable effect together set the sample size of an A/B test. Tests whether you can reason with the sample size formula and explain why variance reduction shortens experiments.

Explain how a metric's variance, statistical power and required sample size relate in an A/B test

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: easy

Interview Round: Other

Explain the fundamental relationship between a metric's variance, statistical power, and the required sample size for an A/B test. ```hint Start from the standard error Write the standard error of the difference in means between two groups of size $n$, then ask how large $n$ must be for the true effect to sit far enough from zero relative to that error. ``` ### What a Strong Answer Covers - The per-group sample size formula for a two-sample test and what each term means. - How sample size scales with the metric's variance and with the minimum detectable effect. - How power, significance level and sample size trade off when one of them is held fixed. - Why variance reduction techniques shorten experiments, with at least one concrete method. ### Follow-up Questions - You apply CUPED with a pre-period covariate whose correlation with the metric is 0.7. Roughly how much does the required sample shrink? - Your metric is revenue per user with heavy outliers. What would you do to the metric before sizing the test, and what does each option cost? - You randomize by user but the metric is clicks per session. How does that change the variance you plug into the formula? - Why is computing power after the test from the observed effect not informative?

Overview: Asks how a metric's variance, the target power and the minimum detectable effect together set the sample size of an A/B test. Tests whether you can reason with the sample size formula and explain why variance reduction shortens experiments.

Nov 25, 2026
easyData ScientistOtherAnalytics & Experimentation
0
0

Explain the fundamental relationship between a metric's variance, statistical power, and the required sample size for an A/B test.

What a Strong Answer Covers Guidance

  • The per-group sample size formula for a two-sample test and what each term means.
  • How sample size scales with the metric's variance and with the minimum detectable effect.
  • How power, significance level and sample size trade off when one of them is held fixed.
  • Why variance reduction techniques shorten experiments, with at least one concrete method.

Follow-up Questions Guidance

  • You apply CUPED with a pre-period covariate whose correlation with the metric is 0.7. Roughly how much does the required sample shrink?
  • Your metric is revenue per user with heavy outliers. What would you do to the metric before sizing the test, and what does each option cost?
  • You randomize by user but the metric is clicks per session. How does that change the variance you plug into the formula?
  • Why is computing power after the test from the observed effect not informative?