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
November 29, 20260
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
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- 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 QuestionsSample 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:
Shares per user are spars...