A Feed change spreads between friends — is your A/B test lying?
Experiment designHardProblem. You're testing a Feed change designed to increase resharing. You randomize users 50/50 and measure reshares. A colleague says the result will be biased. Why might they be right, and how would you design the test properly?
Before you reveal: say your answer out loud, as if you were in the real interview — get your reasoning across clearly first. There is no single correct answer: reading what the interviewer is really after and defending your own thinking is what makes an answer strong.
Clarify the question first
- "Does the feature's effect travel between people — if a treated user reshares more, do their friends (some in control) see and reshare more too?"
- "What's the estimand — the effect if we launched to everyone, or the effect on an isolated individual?"
- "Roughly how connected is the affected population — dense friend clusters or independent users?"
Lay out your approach
- Name the violation. Standard A/B assumes SUTVA: each user's outcome depends only on their own treatment. Resharing breaks it — a treated user's extra reshares land in control friends' feeds, lifting control's reshares too. Control gets partially treated, the measured gap shrinks, and we underestimate the true launch effect.
- Fix it by changing the randomization unit. Randomize clusters of connected users (graph cluster randomization) instead of individuals, so most of a person's friends share their assignment and spillover stays within a cluster rather than leaking across arms.
- Estimate correctly. Define "network exposure" and use an inverse-probability (Horvitz-Thompson) estimator to stay unbiased under interference.
- Accept the cost: clusters are correlated, so effective sample size drops and you need more units/power (often several times more).
Then check in: "The bias is interference — reshares spill from treated users into control friends, shrinking the gap. I'd switch to cluster randomization and an inverse-probability estimator. Want me to work through the bias direction and the estimator?"
Simulate the back-and-forth
Land a clear conclusion
Key summary — what really matters.
- Interference violates SUTVA — treated users' reshares leak into control friends.
- Bias is toward zero for a viral feature — you'd understate the launch effect.
- Graph cluster randomization contains spillover within clusters.
- Inverse-probability (Horvitz-Thompson) estimator stays unbiased under interference.
- Cost is power — correlated clusters shrink effective sample size; size clusters to trade off.
Why control gets contaminated. Let a control user's reshare rate be absent any treatment. With interference, a control user with a fraction of treated friends sees extra reshared content and reshares at for some spillover strength . In a 50/50 user-level split, the average control user has , so measured control is about , not . The naive estimate
subtracts an inflated control mean, so it lands below the true total effect of a full launch. The stronger the network effect , the worse the underestimate.
Graph cluster randomization. Partition the friend graph into clusters, randomize clusters to treatment/control, and define a user as "network exposed" when (say) a high fraction of their neighbors share their assignment. Using exposure probabilities as inverse weights, the Horvitz-Thompson estimator
is unbiased for the average treatment effect provided the exposure model is correct.
The power cost, in numbers. If within-cluster outcomes have intra-cluster correlation and cluster size , the variance inflation (design effect) is . For , , that's the variance — so you need roughly 6× the users for the same power. That is the price of an unbiased effect on a social graph.
| Dimension | What interviewers look for | Below the bar ❌ | Above the bar ✅ |
|---|---|---|---|
| Framing & estimand | Whether you define the launch effect and spot interference. | You treat it as a clean per-user A/B. | You name SUTVA violation and the full-launch estimand. |
| Design validity | Whether you fix the unit of randomization. | You keep user-level randomization. | You cluster connected users to contain spillover. |
| Statistical rigor | Whether you know bias direction and the estimator. | "It's biased somehow." | Bias toward zero; inverse-probability estimator; design effect. |
| Decision & trade-offs | Whether you weigh the power cost. | You ignore the effective-sample-size hit. | You size clusters to trade containment vs power. |
| Communication | Whether you explain interference plainly. | Jargon with no intuition. | Clear "reshares leak into control, so the gap shrinks." |
Strong-answer signal: naming the SUTVA violation, getting the bias direction (toward zero for viral features), switching to cluster randomization with an inverse-probability estimator, and pricing the power cost. Common trap: knowing "network effects are bad for A/B tests" but not the bias direction or the concrete fix.