KatInterview

Testing a New Home-Feed Ranker: Experiment Design and Causal Methods

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingpower-analysisguardrail-metrics

Last updated

Design an experiment for a new content-ranking model aimed at raising time spent: hypotheses, metrics, sample size, health checks, a mid-test dip, and a non-randomized geographic rollout.

Scenario

A consumer social app has built a new ranking model for its home feed. The team's goal is to increase the average number of minutes users spend actively using the app each day. You are asked to plan and interpret the evaluation.

Questions

a) Hypotheses and metrics. Write the null and alternative hypotheses for the experiment. Choose a primary metric and a set of guardrail metrics, and explain what the randomization unit should be.

b) Effect size and sample size. Decide how to set the minimum detectable effect (MDE). Then compute the number of users needed per arm for 95% power with a two-sided significance level of 0.05. State and justify any assumptions you make about the baseline and variance.

c) Monitoring a live test. Once the test is running, a dashboard plots average active minutes per day for each arm. What would you check to be confident the experiment is healthy? If you see a sudden dip in the middle of the test, how would you interpret it and what would you do?

d) No randomization. Suppose the new ranker can only be rolled out by geography (for example, some countries get it first) and users cannot be randomly assigned. How would you estimate its causal effect, and what assumptions and checks would you rely on?

Answer as you would in a live discussion: be structured, give concrete numbers where useful, and call out trade-offs.

Hints

Hint 1

Match the randomization unit to the analysis unit, and pick the MDE from the smallest lift the business would actually care about, not from what is statistically convenient.

Hint 2

For sample size, the per-arm formula is n = 2(z_{1-α/2} + z_{1-β})² σ² / δ². Engagement time is right-skewed, so think about a realistic σ, and about variance-reduction tools such as using pre-experiment behavior.

Hint 3

For the dip, first ask whether it appears in both arms or only one, then segment by platform, region and app version. For the geographic rollout, think about comparing changes over time between treated and untreated regions, and how you would defend the parallel-trends assumption.