Evaluate a Geo-Social Feature Launch with Causal Rigor
Statistics & ExperimentsModel answerLast updated
Design an experiment to measure whether a community-content feature drives meaningful engagement, accounting for geographic interference, opt-in bias, and clustering effects.
Background
A neighborhood-based social platform is rolling out a Verified Community Updates feature, which lets credentialed local contributors publish geo-tagged posts directly into residents' feeds. Your team wants to know whether this feature genuinely lifts user engagement, or whether it just reshuffles existing behavior.
You've been asked to own the measurement strategy end-to-end.
Your Task
Address each of the following components in your answer:
1. Metric Design
Propose one primary success metric and at least one guardrail metric. For each, explain what it captures, why it's the right choice, and what failure mode it protects against.
2. Randomization Unit
Should the experiment randomize at the individual user level or the geographic community level? Walk through the interference risks that inform your decision, and describe how you'd handle communities that are geographically adjacent to one another.
3. Selection Bias
The feature is only offered to communities whose members actively sign up for the pilot. How does this create a causal interpretation problem, and what design or analytical technique would you use to recover a valid estimate?
4. Experiment Sizing and Duration
Describe how you'd determine how long to run the experiment. What structural factors — including the social nature of the product and seasonal variation in news consumption — affect your power calculation and timeline?
What a Strong Answer Looks Like
A strong response is structured and walks through each component in order. It names specific metrics and explains the reasoning behind them, addresses the core statistical challenges directly (interference, clustering, self-selection), and gives enough detail on power analysis that a collaborating data scientist could act on it. Trade-offs and failure modes should be called out explicitly, not glossed over.
Hints
Hint 1
The platform's geographic structure means users in the same community share a feed — think about what that implies for whether one user's treatment status can affect a neighbor's outcome before you pick a randomization unit.
Hint 2
An opt-in pilot pool isn't a random sample of communities. Before reaching for matching or regression, ask whether you can randomize *within* the pool itself — and what causal quantity that gives you versus randomizing the invitation.
Hint 3
Your naive sample size formula assumes independent observations, but community-level assignment clusters users together. Look up the design effect formula and what inputs you need — particularly the intraclass correlation — before committing to a duration.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing the Problem
The platform is geographic and social at the same time: users share a feed with their physical neighbors. That single structural fact should drive every decision here — the metric scope, the randomization unit, the bias correction strategy, and the power calculation. Name it early and carry it through.
1. Metric Design
Primary metric: community engaged-user rate
This is the proportion of weekly active users in a community who take at least one substantive action — post, comment, react, share, or reply — anywhere in their feed during the measurement week. It is measured feed-wide, not just on Verified Community Updates posts.
Why this formulation:
- A narrow metric like "feature clicks" is trivially inflated in the treatment arm because control users cannot click something that doesn't exist. It also hides substitution: if residents read contributor posts instead of commenting on neighbor posts, a narrow metric looks great while total value is flat or negative.
- A rate per user is robust to variation in community size, which matters when randomizing at the community level.
- It maps directly onto the business question: does the platform become more useful to residents?
Guardrail metrics
- Negative feedback rate: hide, mute, and report actions per 1,000 feed impressions. Contributor content carries a credibility signal, but residents may still perceive it as intrusive in a feed they think of as peer-to-peer. A rise here is a warning sign even if engagement goes up overall.
- Organic post volume per community: the number of resident-generated posts per week. If professional content crowds out neighbors talking to each other, the long-term content supply degrades even when short-term engagement metrics look healthy.
- 28-day retention and notification opt-out rate: engagement boosts that accelerate churn or notification fatigue are not wins.
Pre-register directional thresholds before launch — for example, "do not ship if the hide rate rises more than 5% relative" — so these guardrails have teeth.
2. Randomization Unit
Randomize at the community level, not the user level.
User-level randomization violates the stable unit treatment value assumption (SUTVA): one resident's outcomes must not depend on another resident's treatment assignment. Here it clearly would. A treated user comments on a road-closure update; their control-group neighbor sees that conversation thread, learns about the feature indirectly, or hears about it offline. Control users absorb part of the treatment, treated users lose some of the network benefit because their neighbors can't fully engage, and the estimate is biased — typically toward zero. More fundamentally, the product being tested is a shared community feed, so the natural unit of analysis is the community.
Assign whole communities to treatment or control and analyze with cluster-robust standard errors.
Handling adjacent communities
Local news is regional by nature, and the platform surfaces nearby content. Two neighboring communities assigned to different arms may still influence each other. Address this by:
- Randomizing geographic clusters of adjacent communities (e.g., by zip region or metro area) rather than individual communities, or
- Designating buffer communities between arms and excluding them from the analysis.
The cost of cluster-level randomization is a higher variance estimate. The effective sample size shrinks by the design effect: DE = 1 + (m − 1) · ICC, where m is the average number of users per community and ICC is the intraclass correlation of the outcome within communities. With m = 500 and ICC = 0.02, DE ≈ 11 — meaning you need roughly eleven times the user count you'd calculate from a naive formula. This is the single most common mistake in experiments on social or geographic products: ignoring the design effect and ending up badly underpowered.
Mitigate variance inflation by stratifying or pair-matching communities on size, baseline engagement rate, and urban/rural classification before randomizing.
3. Selection Bias from Opt-In Pilots
Communities that volunteer for the pilot are systematically different — likely more civically active, better served by engaged local contributors, and already higher on baseline engagement. A direct comparison of opt-in communities to the general population confounds the feature's effect with community character. The estimate is not causal.
Three approaches, ranked by validity:
-
Randomize within the opt-in pool (waitlist design). Collect all communities that express interest, then randomly assign half to launch immediately and half to a delayed launch. The comparison is clean within the opt-in population. State the external-validity caveat: the effect will likely be larger here than in a general rollout, because these communities are predisposed to value the feature.
-
Randomize the invitation (encouragement design). Randomly select which communities receive an invitation to join the pilot. Comparing all invited communities to all non-invited gives the intent-to-treat (ITT) effect — unbiased and directly interpretable as the effect of the rollout policy. Dividing ITT by the opt-in rate among invited communities yields the complier average causal effect (CACE), the effect specifically for communities that adopt when offered access. This requires the standard IV assumptions: the invitation affects outcomes only through adoption, and a portion of communities comply.
-
Observational matching. Use propensity matching on pre-period engagement and demographics, combined with difference-in-differences. Treat the result as suggestive rather than causal; it cannot rule out unobserved confounders.
The key question to answer before choosing: are you measuring "what happens if we roll this out to everyone" (ITT) or "what does the feature do in places that actually use it" (CACE)? Both are legitimate; pick deliberately.
4. Experiment Sizing and Duration
Power calculation steps:
- Set α = 0.05, power = 80%, and a minimum detectable effect (MDE) grounded in business value, not statistical convenience. For a platform with a 30% baseline engaged-user rate, a 1 percentage-point lift might be the threshold worth shipping for.
- Compute the naive per-arm user count: approximately 16 · p(1 − p) / δ² ≈ 33,600 users per arm for the numbers above.
- Multiply by the design effect. With DE ≈ 11, that becomes ~370,000 users per arm, or roughly 740 communities per arm at 500 WAU each.
- Apply CUPED (regression adjustment on each community's pre-period engaged-user rate) and stratified assignment to reduce residual variance. Together these typically cut variance by 30–50%, meaningfully reducing the required duration.
Duration rules:
- Always run whole weeks to account for weekday/weekend behavioral differences.
- Run at least 4–6 weeks minimum. Shorter windows risk capturing novelty effects rather than sustained behavior change, and local news cycles vary — one big local story can dominate a single week's signal.
- Concurrent control handles seasonality bias (both arms experience the same election week or holiday), but seasonality raises variance and generalizability concerns. Avoid running the experiment exclusively during an atypical period; if you must, document it.
- Pre-register the end date and do not peek. If early stopping is operationally necessary, use a sequential testing method with appropriate error-spending boundaries.
Common Mistakes
- Choosing a feature-specific metric like "contributor post clicks" as the primary metric.
- Randomizing by user and ignoring spillover between neighbors.
- Skipping the design effect calculation and launching an underpowered test.
- Comparing opt-in communities to the general population and calling the result causal.
- Using user-level standard errors when assignment happened at the community level.