Size an Experiment for a Small Prime Sign-Up Lift

Last updated: November 29, 2026

Quick Overview

A redesigned Prime trial banner is expected to raise sign-up conversion from 4.0% by about 2% relative. Compute the sample size needed per arm and discuss whether the test is worth running.

Amazon
Analytics & Experimentation
Data Scientist
Amazon
November 29, 2026
Data Scientist
Phone Screen
Analytics & Experimentation
Easy

0

0

0 solved


A redesigned Prime trial banner is expected to raise sign-up conversion from 4.0% by about 2% relative. Compute the sample size needed per arm and discuss whether the test is worth running.

A standard Amazon phone screen question for Data Scientist and BI roles. The interviewer checks that you can run a power calculation from first principles and then make a judgment about duration and traffic cost.

What the Interviewer Expects
  • Translate relative lift into an absolute effect
  • State alpha, power, and a two-sided test
  • Apply the two-proportion sample size formula correctly
  • Convert sample size into test duration using traffic
  • Discuss options if the test is too long
Key Topics to Cover
Power analysis
Minimum detectable effect
Two-proportion test
Test duration
Variance reduction
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • How does the answer change if the expected lift is 5%?
  • What if the banner is only seen by 20% of visitors?
  • Would you use a one-sided test here?
  • How can variance reduction such as CUPED help?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Analytics Questions
Sample Answer
Clarify

Baseline p0=0.040p_0 = 0.040, expected p1=0.0408p_1 = 0.0408, so the absolute difference is δ=0.0008\delta = 0.0008. Use α=0.05\alpha = 0.05 two-sided and 80% power. The unit is a unique visitor who sees the banner....

Approach

For two proportions:

n≈(z1−α/22pˉ(1−pˉ)+z1−βp0(1−p0)+p1(1−p1))2δ2n \approx \frac{(z_{1-\alpha/2}\sqrt{2\bar p(1-\bar p)} + z_{1-\beta}\sqrt{p_0(1-p_0)+p_1(1-p_1)})^2}{\delta^2}

with z0.975=1.96z_{0.975}=1.96 and z0.8=0.84z_{0.8}=0.84....


Submit Your Answer
Markdown supported