Experiment Design for a Social Sharing Feature with Spillover
Statistics & ExperimentsModel answerLast updated
Plan an experiment for a viewing feature that spreads through friend networks: pick metrics, handle interference, explain SUTVA, run an artwork multivariate test, and estimate segment effects.
Context
A video streaming service is preparing to launch a new feature that lets members recommend and share content with people they know. Because the feature acts on relationships between members, the effect on one person may depend on whether their contacts also have it. Product leadership wants an experiment before deciding on a full rollout.
Questions
Answer each part as you would in a design discussion:
- Metrics. Which primary metric and which guardrail metrics would you pick, and why? Cover how you would define them, the unit of randomization and analysis, how long the test runs, and how you would reduce variance.
- Network threats. What specific problems do social spillovers cause for a standard user-level A/B test, and which design choices would you use to address them?
- SUTVA. State the assumption, explain what breaks when it fails, and say why it matters for this feature in particular.
- Artwork test. The team also wants to compare several versions of the cover image shown for a title. Describe how you would run and interpret a multivariate test on it.
- Heterogeneity. How would you measure whether the feature affects different user segments differently, without producing false discoveries?
State your assumptions, mention edge cases, and explain the trade-offs behind your choices.
Hints
Hint 1
Start from the business goal (subscriber retention) and ask which metric is both sensitive within a few weeks and predictive of that goal. Separate the decision metric, diagnostic metrics, and guardrails.
Hint 2
Think about what happens to a control user whose friends are treated. Which direction does the naive treatment-minus-control estimate move, and what experimental designs (graph clusters, geography, varying saturation) let you measure the spillover directly?
Hint 3
For the artwork test and the segment analysis, the main risks are multiple comparisons and post-hoc slicing. Think about factorial designs, correction methods, pre-specified pre-treatment segments, and interaction or causal-forest style models.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
What a strong answer shows
The goal is a design that is valid, not just significant. A good answer ties metrics to the business goal, notices that a social feature violates standard randomization assumptions, measures spillover rather than ignoring it, and handles multiplicity and heterogeneity honestly.
1. Metrics
Business goal: subscriber retention. It moves slowly and is noisy over a 2-4 week test, so use a proxy that is sensitive in the window and known to predict retention.
- Primary metric: qualified viewing hours per member, or days with at least one qualified play (a play of roughly 6+ minutes). Randomize and analyze at the same level so variance is simple.
- Secondary (diagnostic) metrics: feature adoption, shares sent per member, plays that originate from a share. They explain how the feature works but should not decide launch alone, because high adoption with flat viewing is not a win.
- Guardrails with pre-set tolerances:
- cancellation and churn-intent signals (for example account-page visits for cancelling)
- playback quality: start-up time, rebuffer rate, error rate
- app stability: crashes, time to first play
- trust and safety: notification opt-outs, spam reports, privacy complaints
- support contacts per member
Pre-register the primary metric, minimum detectable effect, power, and duration. Run at least two full weeks to cover weekly seasonality and novelty effects.
Variance reduction
- CUPED: adjust with each member's pre-period viewing; often cuts variance 30-50%.
- Stratified randomization by country, plan, and tenure.
- Winsorize extreme viewers.
- Delta method for ratio metrics.
Randomize by account, not profile, since profiles share a device and recommendation context.
2. Network threats and remedies
Treated members' shares reach control members, so control outcomes change because of treatment.
- Contamination bias. With positive spillover, controls also watch more, so the naive difference understates the global effect. If treated users divert attention from friends, the bias can flip.
- Partial-rollout bias. Value depends on how many contacts have the feature, so a 50% test does not predict 100% behavior.
- Correlated outcomes. Connected users move together, so independence-based standard errors are too small.
Remedies
- Graph-cluster randomization. Partition the sharing graph into communities (Louvain, balanced label propagation), randomize clusters, and use cluster-robust standard errors. Aim to cut few edges while keeping cluster sizes balanced.
- Geo/market randomization if ties are mostly local. Pair markets and use difference-in-differences or synthetic control; variance is high, so use pre-period covariates.
- Randomized saturation (two-stage) design. Assign clusters to saturations (say 0/25/50/75%), then randomize members within clusters. Treated vs. control in the same cluster gives the direct effect; control members in high- vs. low-saturation clusters give the spillover effect. Together they let you extrapolate toward full rollout.
- Interference diagnostic. Run user-level and cluster-level randomization side by side; a material gap indicates interference.
Trade-off: fewer, larger randomization units cut bias but inflate variance. Offset with CUPED, cluster-level covariates, and longer runs. Check power at the cluster count, not the user count.
3. SUTVA
The Stable Unit Treatment Value Assumption has two parts:
- No interference: a unit's outcome depends only on its own assignment, Y_i(Z) = Y_i(Z_i).
- No hidden versions of treatment: the treatment is the same for everyone treated.
Under SUTVA each member has two potential outcomes, and the difference in means is unbiased for the average effect of treating everyone versus no one. A sharing feature violates part 1 by design, since its mechanism is to affect other people. Each member then has up to 2^N potential outcomes, and the simple A/B estimate no longer answers the launch question. Part 2 can also fail if the feature behaves differently depending on how many friends have it. This is why cluster and saturation designs, which define the estimand explicitly (direct, spillover, total), are needed.
4. Artwork multivariate test
Design
- Factorial when varying separable factors (close-up vs. scene, text vs. none, warm vs. cool palette). A 2x2x2 design has 8 cells and estimates main effects and interactions efficiently, since every member contributes to each main effect.
- Multi-arm when variants are distinct whole images.
- Randomize by member with sticky assignment so the image stays consistent across sessions.
Metrics
- Primary: take rate = qualified plays / impressions. Impressions cluster within members, so use the delta method or member-level cluster-robust errors.
- Anti-clickbait guards: completion rate and early abandonment (for example quitting within 10 minutes).
- Cannibalization check: total member viewing. Gains for one title that simply steal from another have zero net value.
Interpretation
- Correct for multiple comparisons (Holm for a few confirmatory arms, Benjamini-Hochberg for many titles).
- Look for novelty decay over time.
- Test interactions before declaring a best combination, and report confidence intervals.
- At scale with many titles and short shelf lives, a contextual bandit (Thompson sampling) reduces regret and personalizes. Keep a small uniformly random holdout for unbiased causal estimates.
5. Heterogeneous treatment effects
- Pre-specify segments using pre-treatment covariates only: tenure, device, region, plan, viewing intensity, social-graph degree. This prevents post-hoc fishing and avoids conditioning on variables the treatment affects.
- Estimate with interaction models: regress the outcome on treatment, segment, and treatment x segment, with cluster-robust errors. Test the interaction, not just within-segment significance.
- Exploratory discovery: causal forests, X-/R-learners, or uplift trees, using honest splitting (separate samples for structure and estimation) and cross-fitting.
- Control false discoveries: correct across segments (BH), or treat exploratory findings as hypotheses to confirm in a follow-up test.
- Network-specific heterogeneity: effects often depend on degree and on the share of treated neighbors, which the saturation design lets you estimate.
- Validate: check that segment sizes give adequate power, and that effect ranking is stable across holdout folds.
Common mistakes
- Randomizing at the user level for a social feature and reporting the result as the global effect.
- Treating adoption as success without a viewing or retention outcome.
- Ignoring clustering in standard errors.
- Slicing by post-treatment variables, or reporting the one significant segment out of twenty.
- Stopping early after peeking, or ending before novelty has faded.
- Randomizing by profile instead of account.
Recommendation structure
Report the direct effect, the spillover estimate, and the extrapolated full-rollout effect with intervals; confirm guardrails are within tolerance; and state which segments, if any, have credible differential effects. Ship broadly if the total effect is positive and guardrails hold, and consider a staged rollout with a persistent holdout to monitor long-run retention.