KatInterview

Design an Experiment to Measure a New Feature's Effect on Engagement

Statistics & ExperimentsModel answer
MediumModel answerStatistics & ExperimentsA/B testingexperimentationmetrics

Last updated

Plan a controlled experiment to test whether a recommendation feature increases engagement, including metric selection, sample sizing, and bias mitigation.

You work at a consumer app company that has built a personalized recommendation feature. Before launching it to everyone, leadership wants proof that it meaningfully increases user engagement without negative side effects.

Your task is to design a controlled experiment that answers this question. Specifically:

  1. Define the metrics: What should you measure as the primary signal of success? What guardrails should you monitor to catch unintended harm?

  2. Determine sample requirements: How many users do you need in each group, and how long should the test run?

  3. Identify risks: What experimental design flaws, measurement issues, or behavioral confounds could invalidate your results?

Assume you have access to instrumentation that logs user activity, and you can randomly assign users to see or not see the feature.

Hints

Hint 1

Choose metrics that align with the randomization unit and avoid conditioning on post-treatment events

Hint 2

Calculate sample size based on the smallest effect size that matters to the business, not just statistical significance

Hint 3

Watch for novelty effects, logging inconsistencies between arms, and population dilution