PracHub
QuestionsLearningGuidesInterview Prep
|Home/Analytics & Experimentation/Walmart Labs

Calculate Sample Size for Effective A/B Test Design

Last updated: Mar 29, 2026

Quick Overview

This interview question evaluates metric design, causal reasoning, experiment setup, diagnostics, SQL/statistical checks, and recommendations in a realistic interview setting. A strong answer for Calculate Sample Size for Effective A/B Test Design states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  • medium
  • Walmart Labs
  • Analytics & Experimentation
  • Data Scientist

Calculate Sample Size for Effective A/B Test Design

Company: Walmart Labs

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Onsite

##### Scenario Designing an A/B test for a marketing feature rollout. ##### Question How do you calculate the required sample size for an A/B test? What techniques can improve the statistical power of the experiment? ##### Hints Use power analysis (effect size, alpha, beta); improve power with variance reduction, stratification, larger samples, longer tests.

Quick Answer: This interview question evaluates metric design, causal reasoning, experiment setup, diagnostics, SQL/statistical checks, and recommendations in a realistic interview setting. A strong answer for Calculate Sample Size for Effective A/B Test Design states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Related Interview Questions

  • Evaluate Last-Mile Product Metric Changes - Walmart Labs (medium)
|Home/Analytics & Experimentation/Walmart Labs

Calculate Sample Size for Effective A/B Test Design

Walmart Labs logo
Walmart Labs
Aug 4, 2025, 10:55 AM
mediumData ScientistOnsiteAnalytics & Experimentation
4
0

Calculate Sample Size for Effective A/B Test Design

A/B Test Planning: Sample Size and Power

Scenario

You are planning an online A/B test to evaluate a new marketing feature. The primary success metric is a user-level conversion rate (binary: converted vs. not). You need to determine the required sample size and ways to maximize the test's statistical power under realistic constraints.

Questions

  1. How do you calculate the required sample size for an A/B test?
  2. What techniques can improve the statistical power of the experiment?

Constraints & Assumptions

  • Preserve the scope, facts, inputs, and requested outputs from the prompt above.
  • If the prompt leaves a detail unspecified, state a reasonable assumption before relying on it.
  • Keep the answer interview-ready: concise enough to present, but concrete enough to implement or evaluate.

Clarifying Questions to Ask Guidance

  • Clarify the business objective, unit of analysis, time window, exposure definition, and primary metric.
  • State assumptions about instrumentation, randomization, sample size, and data quality.
  • Separate descriptive analysis from causal claims.

What a Strong Answer Covers Guidance

  • A metric framework with primary, guardrail, and diagnostic metrics.
  • A credible analysis or experiment design with clear assumptions and bias checks.
  • SQL/statistical logic for segmentation, variance, confidence, and data validation where relevant.
  • An actionable recommendation that explains trade-offs and next steps.

Follow-up Questions Guidance

  • What sanity checks would you run before trusting the result?
  • How would you handle novelty effects, seasonality, or selection bias?
  • What decision would you make if metrics disagree?
Loading comments...

Browse More Questions

More Analytics & Experimentation•More Walmart Labs•More Data Scientist•Walmart Labs Data Scientist•Walmart Labs Analytics & Experimentation•Data Scientist Analytics & Experimentation

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

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

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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.