PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Amazon

Calculate A/B sample size, CI, decision rules

Last updated: Mar 29, 2026

Quick Overview

This question evaluates skills in experimental design and statistical inference, including sample size calculation, hypothesis testing, confidence interval interpretation, multiple comparison control, variance reduction techniques, and operational considerations for A/B testing.

  • medium
  • Amazon
  • Statistics & Math
  • Data Scientist

Calculate A/B sample size, CI, decision rules

Company: Amazon

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Onsite

Design and analyze an A/B test for a signup funnel. Setup: Baseline conversion p0 = 0.040. Minimum detectable effect (absolute) = 0.004 (i.e., target p1 = 0.044). Two-sided α = 0.05, power = 0.80. 1) Sample size: Compute required sample size per arm for a two-proportion z-test. Show the formula you use and the numeric result. 2) CI and p-value: Suppose after launch you observe Control nC=50,000, xC=2,150 (4.30%) and Treatment nT=49,500, xT=2,090 (4.22%). Compute the p-value for the difference in proportions (both pooled and unpooled variants) and a 95% CI for (pT - pC). Interpret practically. 3) Design choices: Specify primary vs. guardrail metrics and how you would correct for multiple comparisons if you track cancellation rate and latency as guardrails. 4) Power/variance reduction: Explain how you’d use CUPED or stratification to reduce variance and how that changes required sample size. 5) Operational risks: Discuss sequential peeking and how to control type-I error (e.g., alpha-spending). What do you do if traffic is heterogeneous and the global average obscures segment-level reversals?

Quick Answer: This question evaluates skills in experimental design and statistical inference, including sample size calculation, hypothesis testing, confidence interval interpretation, multiple comparison control, variance reduction techniques, and operational considerations for A/B testing.

Related Interview Questions

  • Compute an A/B test p-value by hand - Amazon (medium)
  • Compute and interpret quantile loss vs RMSE - Amazon (medium)
  • Compute CIs, power, and multiple testing - Amazon (medium)
  • Plan and analyze an A/B test - Amazon (hard)
  • Compute p-values, CIs, and adjust multiples - Amazon (Medium)
Amazon logo
Amazon
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Statistics & Math
5
0

A/B Test Design and Analysis: Signup Funnel

You are designing and analyzing a two-arm A/B test for a signup funnel. Assume 1:1 traffic split and independent user observations.

Given:

  • Baseline conversion p0 = 0.040
  • Minimum detectable effect (absolute) = 0.004 → target p1 = 0.044
  • Two-sided α = 0.05, power = 0.80

Tasks

  1. Sample Size
    • Compute the required sample size per arm for a two-proportion z-test. Show the formula and the numeric result.
  2. CI and p-value
    • After launch you observe: Control nC = 50,000, xC = 2,150 (4.30%) and Treatment nT = 49,500, xT = 2,090 (4.22%).
    • Compute the p-value for the difference in proportions using both pooled and unpooled standard errors.
    • Compute a 95% confidence interval for (pT − pC) and interpret practically.
  3. Design Choices
    • Specify primary vs. guardrail metrics.
    • If you track cancellation rate and latency as guardrails, explain how you would correct for multiple comparisons.
  4. Power / Variance Reduction
    • Explain how to use CUPED or stratification to reduce variance and how that changes required sample size.
  5. Operational Risks
    • Discuss sequential peeking and how to control type-I error (e.g., alpha-spending).
    • What if traffic is heterogeneous and the global average obscures segment-level reversals?

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Amazon•More Data Scientist•Amazon Data Scientist•Amazon Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.