Sizing an Experiment for a Small Change in Shares per User

Last updated: November 29, 2026

Quick Overview

A product team wants to detect a 1% relative lift in shares per user per day from a new share sheet. Compute the required sample size and explain the inputs you need.

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

0

0

0 solved


A product team wants to detect a 1% relative lift in shares per user per day from a new share sheet. Compute the required sample size and explain the inputs you need.

TikTok phone screens for data scientists often include a quick power calculation. The interviewer checks that you know the formula, which inputs come from historical data, and how the answer changes with the minimum detectable effect.

What the Interviewer Expects
  • Name the inputs: baseline mean, variance, MDE, alpha and power
  • Write the two-sample formula correctly
  • Compute a concrete number and convert it to days of traffic
  • Explain how MDE changes sample size quadratically
  • Mention variance reduction or capping for skewed metrics
Key Topics to Cover
power analysis
sample size
minimum detectable effect
variance
A/B testing
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
  • What changes if you allocate 10% of traffic to treatment?
  • How would you handle users with zero shares?
  • Would you use a one-sided test?
  • How does CUPED change the answer?
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

I need the baseline mean and standard deviation of shares per user per day from recent data, the minimum detectable effect (1% relative), significance level (0.05 two-sided) and power (0.8). I also wa...

Approach

For a difference in means with equal allocation:

nper arm=2(z1−α/2+z1−β)2σ2δ2,δ=MDE×μn_{\text{per arm}} = \frac{2 (z_{1-\alpha/2} + z_{1-\beta})^2 \sigma^2}{\delta^2}, \quad \delta = \text{MDE} \times \mu

Shares per user are spars...


Submit Your Answer
Markdown supported