Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started

Design Control and Treatment for Homepage Test

MediumStatistics & Probability00:00
Practice interviewer
In session
5 left
00:00

Whenever you're ready, walk me through how you'd approach this.

You need to log in / sign up to chat or submit.

Problem

Business Context

StreamCart, a grocery delivery app, wants to test a new homepage layout intended to increase first-order conversion. The product manager asks how to design control and treatment groups so the experiment is valid and adequately powered.

Problem Statement

Design the experiment and quantify whether the proposed sample split is sufficient to detect the target lift. Assume the current conversion rate is 18.0%, and the team wants to detect an absolute lift of 1.5 percentage points with 80% power at a 5% significance level.

Given Data

MetricValue
Baseline conversion rate18.0%
Minimum detectable effect1.5 percentage points
Target treatment conversion rate19.5%
Significance level0.05
Desired power0.80
Planned total sample size20,000 users
Proposed allocation50% control / 50% treatment

Requirements

  1. Define the control and treatment groups and explain the randomization unit.
  2. State the null and alternative hypotheses for the conversion metric.
  3. Calculate the required sample size per group for a two-sided two-proportion test.
  4. Determine whether the planned 20,000 total users are enough.
  5. Briefly explain why a 50/50 split is typically preferred here.
  6. List key design safeguards to avoid bias in the control and treatment groups.

Assumptions

  • Randomization is at the user level, and each user appears once.
  • Users are independently assigned to groups.
  • No major seasonality or marketing shocks occur during the test window.
  • The primary metric is binary conversion, so a two-proportion normal approximation is appropriate.