Handling spillover effects in social network A/B tests
This tests your grasp of SUTVA violations in networked experiments. A great answer explains how user-level randomization causes spillover, then proposes graph cluster randomization to assign entire communities to treatment or control, minimizing…
What's really being asked
This question probes your understanding of the limitations of standard A/B testing, specifically the failure of the Stable Unit Treatment Value Assumption (SUTVA) in connected systems. The interviewer is testing if you can diagnose why user-level randomization is statistically invalid in a social network context and if you can propose a more sophisticated and appropriate experimental design. It distinguishes candidates who only know basic randomization from senior engineers who grasp the nuances of causal inference in complex environments.
The full answer
First, define the problem: user-level randomization violates SUTVA because a user's outcome is influenced by the treatment assignment of their peers. Second, explain the mechanism of this 'spillover' or 'interference': a user in the treatment group shares content or takes an action visible to their friends in the control group, thus 'contaminating' the control. Third, state the impact: this contamination artificially inflates the metric in the control group, leading to a systematic underestimation of the true treatment effect. You might discard a valuable feature. Fourth, propose a solution: graph cluster randomization. You partition the social graph into communities (clusters) and then randomize entire clusters into treatment or control. This minimizes the network edges between A and B, containing the spillover. For a top answer, mention this requires advanced analysis like a Horvitz-Thompson estimator to produce an unbiased effect estimate.
The mistakes people make
A major red flag is suggesting randomization techniques that don't account for the network structure. For example, randomizing by user ID hash, geographic location, or sign-up date. While these are valid segmentation strategies for other problems, they do nothing to prevent friends from being in different experimental groups. Another weak answer is being vague about the impact, saying results will be 'messy' or 'inaccurate' without specifying that the effect will be consistently underestimated. Finally, suggesting a switchback or time-based randomization is incorrect for this problem; it addresses different issues (like marketplace liquidity) and is vulnerable to temporal confounds while not solving user-to-user interference.
What usually comes next
Expect questions like, 'How would you technically implement graph clustering? What algorithms?' (e.g., Louvain, Girvan-Newman). Another common follow-up is, 'What are the downsides of this approach?' (e.g., increased variance, requiring larger sample sizes or effect sizes for significance; much higher implementation complexity). You might also be asked about choosing the cluster size, which involves a trade-off between reducing bias (larger clusters are better) and minimizing variance (more, smaller clusters are better).
A concrete example
Imagine testing a new recommendation algorithm on a social feed. With user-level randomization, User A (treatment) sees and shares a post from the new algorithm. Their friend, User B (control), now sees this shared post in their own feed. User B's engagement is now influenced by the treatment, contaminating the control group. The measured lift in engagement for the new algorithm will be diluted because the control group's engagement is artificially higher than a true baseline. Using graph cluster randomization, we would identify a community of strongly connected users and place them all in the same group (A or B), preventing User A's activity from directly spilling over to User B.
Interview question
What is the primary statistical issue with user-level randomization in social network A/B tests?
- a.It causes the treatment effect to be overestimated due to network amplification.
- b.It makes it impossible to isolate treatment effects from temporal confounds without complex time-series analysis.
- c.It significantly increases the variance of the outcome metrics, making results unreliable.
- d.It violates SUTVA by allowing peer influence to contaminate the control group, leading to an underestimation of the true effect.Correct
Why? this is the answer
The card explicitly states that user-level randomization violates SUTVA because peer influence (spillover) contaminates the control group, artificially inflating control metrics and causing a systematic underestimation of the true treatment effect. Option A describes the opposite bias, while Option C focuses on variance, which is a secondary issue compared to the bias from SUTVA violation. Option B addresses temporal confounds, a different problem not directly related to SUTVA in networks.
Just read this? Test yourself on what you have been reading.
Read the original → arxiv.org
- #a/b testing
- #experimentation
- #causal inference
- #network effects
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on a/b testing — each one lists the topics its interview covers.
See open roles