PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Analytics & Experimentation/Meta

Design an A/B test for comments UI

Last updated: Mar 29, 2026

Quick Overview

This question evaluates experimental design, causal inference, statistical power calculation, variance-reduction techniques, sequential monitoring, and operational rollout considerations for A/B testing a UI change.

  • hard
  • Meta
  • Analytics & Experimentation
  • Data Scientist

Design an A/B test for comments UI

Company: Meta

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Onsite

You will A/B test a new threaded comments UI aimed at increasing weekly unique commenters by 5% without reducing median session length by more than 1%. (a) Define precise hypotheses (primary and guardrail metrics), including measurement windows and denominators. Specify the unit of randomization (user vs. session), handling cross-device users and logged-out traffic, and how to prevent contamination. (b) Given a baseline weekly commenter rate of 8% per user, target relative lift of 5%, two-sided α=0.05, power=0.8, and expected weekly user sample of 2M, outline the sample size formula/inputs you’d use (no need to compute exact N) and whether you’d use CUPED or pre-experiment covariates to reduce variance. Include which covariates and why. (c) Propose a ramp plan with sequential monitoring that controls Type I error (e.g., group sequential or alpha spending). Describe stopping rules for efficacy/futility and how you’d handle novelty effects and learning effects over time. (d) List at least three guardrails (e.g., abuse reports, latency p95, session length) and define actionable thresholds. Explain what you’d do if the primary metric improves but a guardrail degrades. (e) If network effects (users replying across treatments) create interference, describe a cluster- or geo-based randomization design and its trade-offs versus individual-level randomization.

Quick Answer: This question evaluates experimental design, causal inference, statistical power calculation, variance-reduction techniques, sequential monitoring, and operational rollout considerations for A/B testing a UI change.

Related Interview Questions

  • Measure scheduled posts feature success - Meta (medium)
  • Estimate ads ranking revenue impact - Meta (medium)
  • How should you evaluate unconnected content? - Meta (medium)
  • Should WhatsApp launch group calls? - Meta (medium)
  • How would you grow Meta products? - Meta (medium)
Meta logo
Meta
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Analytics & Experimentation
2
0
Loading...

A/B Test Design: Threaded Comments UI

Context: You are designing an online controlled experiment for a new threaded comments UI on a large consumer platform. The goal is to increase weekly unique commenters without harming key user experience metrics. Assume a logged-in ecosystem with some logged-out traffic and multi-device usage.

Objectives

  • Primary objective: Increase weekly unique commenters per user by 5% relative.
  • Guardrail: Do not reduce median session length by more than 1% relative.

Tasks

(a) Define precise hypotheses for the primary and guardrail metrics, including:

  • Measurement windows and denominators.
  • Unit of randomization (user vs. session).
  • Handling cross-device users and logged-out traffic.
  • How to prevent contamination/crossover.

(b) Given: baseline weekly commenter rate = 8% per user; target relative lift = 5%; two-sided α = 0.05; power = 0.8; expected weekly user sample = 2M.

  • Outline the sample size formula and inputs you would use (no need to compute exact N).
  • State whether you would use CUPED or pre-experiment covariates to reduce variance, which covariates, and why.

(c) Propose a ramp plan with sequential monitoring that controls Type I error (e.g., group sequential or alpha spending). Describe stopping rules for efficacy/futility and how you would handle novelty effects and learning effects over time.

(d) List at least three guardrails (e.g., abuse reports, latency p95, session length) and define actionable thresholds. Explain what you would do if the primary metric improves but a guardrail degrades.

(e) If network effects (users replying across treatments) create interference, describe a cluster- or geo-based randomization design and its trade-offs versus individual-level randomization.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Meta•More Data Scientist•Meta Data Scientist•Meta Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 8,000+ 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.