KatInterview

Cluster-randomized experiment design for a social feature with network effects

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsexperiment-designnetwork-interferencecausal-inference

Last updated

Design a cluster-based A/B test for a friend-invitation feature when user-to-user influence breaks SUTVA, covering partitioning, estimation, and spillover validation.

Scenario

You work as a data scientist at a large social platform. The team wants to evaluate a new notification that prompts users to bring friends into their communities (groups). The catch: when one member of a group gets the notification, their increased activity may rub off on friends who were never assigned to treatment. Because of this interference, randomizing at the individual level would contaminate the control group and bias the measured effect downward (or in unpredictable directions).

Your job is to design the end-to-end experiment.

Deliverables

  1. Randomization plan. How do you construct randomization clusters so that cross-arm interference is minimized without destroying statistical power? Be precise about what constitutes a cluster and why.
  2. Estimation. Give an estimator for the average treatment effect on group engagement, and explain how you compute valid standard errors given that outcomes within a cluster are correlated.
  3. Post-hoc checks. Describe concretely how you would demonstrate, after the fact, that spillovers were actually reduced by your design.

Setting and constraints

  • 10 million monthly active users spread over 500,000 groups.
  • You have historical engagement logs and the full friendship graph.
  • Discuss the fundamental tension: bigger clusters reduce contamination but inflate variance.

Write your answer as a design document a reviewer could critique: state assumptions, justify choices with numbers, and flag weaknesses. There is no single correct answer; you are judged on rigor and trade-off reasoning.

Hints

Hint 1

Connected components of a 10M-node social graph collapse into one giant blob — you need balanced graph partitioning (METIS, Leiden with size caps), not components.

Hint 2

Work at the group level: nodes are the 500k groups, edge weights reflect shared members and interaction frequency; the fraction of edge weight cut by the partition is your proxy for residual bias.

Hint 3

Cluster-robust standard errors at the randomization unit, plus a design-effect calculation DE = 1 + ((1+CV²)m̄ − 1)ρ, tell you how much power clustering costs.

Hint 4

A two-level randomization (cluster-randomized arm vs. individually randomized arm run simultaneously) gives a direct statistical test for interference.