Evaluating a People-You-May-Know Feature Rollout
Statistics & ExperimentsModel answerLast updated
Design the full measurement plan for a new connection-suggestion algorithm: metrics, experiment setup, a mixed-results decision, revenue translation, and post-launch monitoring.
Your team has built a new algorithm for suggesting potential connections to users on a social platform. It is currently hidden behind a feature flag and you are ready to run a controlled experiment. Your job is to design the full measurement and decision process from start to finish.
Address each of the following:
1. Metrics Pick at most three primary metrics and at most three guardrail metrics. For each, write a precise definition that includes a 14-day attribution window anchored to first qualified exposure. Explain why you chose each one.
2. Experiment setup Define your experimental unit and explain how you will handle network interference — the fact that a request sent by a treated user lands in a control user's inbox. Describe at least two concrete mechanisms for dealing with this.
3. Interpreting a specific set of results After 14 days you observe:
- Monthly active users: +5% (p < 0.05)
- Engagement per user: −3% (p < 0.05)
- Confirmed connections per DAU (your primary metric): +2% (p = 0.07)
State a pre-registered decision rule and apply it to these numbers. Give a launch or no-launch recommendation with quantitative justification.
4. Revenue translation Under reasonable assumptions, convert the observed +2% lift in confirmed connections per DAU into an estimated annual revenue and profit delta. Then derive the minimum lift that would be worth a full rollout given your cost structure.
5. Post-launch monitoring Describe how you will monitor the feature after it goes live, including specific automatic rollback triggers with thresholds.
Hints
Hint 1
A friend request crosses treatment boundaries: the sender may be in treatment while the recipient is in control. Think about what this does to your effect estimates and how cluster-based randomization addresses it — and what you give up by using it.
Hint 2
p = 0.07 on your primary metric is not a simple pass or fail. Compute the confidence interval, check whether the lower bound clears zero, and then ask whether the engagement drop is a real harm or a composition artifact caused by newly reactivated light users pulling down the average.
Hint 3
To turn a percentage lift into dollars you need an elasticity: how much does a 1% increase in confirmed connections translate to a change in long-run revenue? State that assumption explicitly, then work backward from your infrastructure cost to find the minimum lift that justifies full rollout.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Approach
A strong answer has five parts that flow into each other: a tight metric set, an experiment design that accounts for interference, a pre-registered decision rule applied honestly to messy data, a revenue model, and a living monitoring plan. Interviewers penalize candidates who pick too many metrics, ignore network effects, or reason backward from the result they want.
1. Metrics
A qualified exposure is a recommendation card that is at least 50% visible for at least one second. Each user's 14-day window starts at their first qualified exposure after assignment. This anchor prevents distortion from users who see the feature on day 12 and look artificially low.
Primary metrics
| Metric | Definition |
|---|---|
| Confirmed connections per DAU (OEC) | All new mutual connections confirmed in days 0–14, divided by the user's active days in that window. Count all new connections, not just algorithm-sourced ones — otherwise you reward cannibalizing other discovery surfaces like search. |
| Request acceptance rate | Requests sent in days 0–14 that are accepted within 14 days of sending, divided by total requests sent. This is a precision signal: a spammy algorithm sends more requests but converts fewer. |
| Qualified exposures per DAU | A diagnostic confirming the treatment actually changed what users saw. If this does not move, the experiment was not properly delivered. |
Guardrail metrics
| Metric | Definition |
|---|---|
| Spam / "I don't know this person" reports per 1,000 requests received | Measured on the recipient side within 14 days. Network interference makes this especially important — control users receive requests from treated users. |
| Recommendation dismiss/hide rate | Hides divided by qualified exposures. Rising dismissals signal that suggestion quality is degrading. |
| Engagement per user on a stable cohort | Time spent per DAU, evaluated only on users who were active in the 28 days before the experiment began. This removes composition effects from newly reactivated users and isolates true behavioral change. |
2. Experiment setup and interference
Randomization unit: individual users, hashed into a dedicated recommendation-ranking experiment layer that is orthogonal to other product layers.
The interference problem: a treated user sends more requests, which land in the inboxes of control users. Control users gain unexpected connections and receive more notifications. This biases the connection-per-DAU estimate toward zero (understating the treatment effect) and hides recipient-side harms.
Two mechanisms to address it:
-
Graph-cluster randomization. Partition the social graph into ~10,000–100,000 communities (using a method like Louvain modularity) and randomize whole clusters. Cross-cluster requests still happen, but they are much rarer. Run a user-level arm in parallel: the difference between the user-level and cluster-level estimates quantifies the interference bias.
-
Long-term holdout. Keep 2–5% of clusters out of the rollout for at least six months. Connections compound — new friends generate feed content, which drives more engagement — so a 14-day window systematically understates the long-run effect. The holdout measures the true steady-state lift.
A staggered ramp (1% → 5% → 25% → 50%) also helps surface novelty effects: if the lift decays sharply when plotted by days-since-first-exposure, the observed effect is inflated.
3. Applying the decision rule to the 14-day results
Sanity checks first. Run a sample-ratio mismatch (SRM) test. A chi-square p < 0.001 means the assignment pipeline is broken and the results are uninterpretable.
Decompose the engagement drop. Total engagement = active users × engagement per user ≈ 1.05 × 0.97 ≈ +1.85%. The per-user drop may be a composition artifact: newly reactivated users are light engagers who pull down the average. The stable-cohort guardrail resolves this. If stable-cohort engagement is flat, the −3% is not a real harm.
Quantify OEC uncertainty. p = 0.07 two-sided gives z ≈ 1.81, so SE ≈ 2% / 1.81 ≈ 1.1%. The 95% CI is approximately [−0.2%, +4.2%]. The lower bound includes zero.
Pre-registered decision rule — launch only if all conditions hold:
| Condition | Threshold |
|---|---|
| OEC point estimate | ≥ minimum economically meaningful effect (MEE, derived below: 1%) |
| OEC 95% CI lower bound | > 0 |
| Stable-cohort engagement | Non-inferior at −1% margin (lower CI bound > −1%) |
| Recipient spam reports | Upper CI bound < +10% relative |
| Hide rate | Upper CI bound < +15% relative |
Recommendation: do not launch yet — extend the experiment.
The OEC point estimate clears the 1% MEE, but the 95% CI lower bound is −0.2%, which fails the second condition. The engagement guardrail is ambiguous until the stable-cohort analysis runs. The right move is to extend the ramp to a larger allocation for 28 days with cluster randomization. If the stable-cohort engagement lower bound then clears −1% and the OEC lower bound clears 0, launch.
Common mistake: treating p = 0.07 as a near-miss that "basically passed." The pre-registered rule exists precisely to prevent that reasoning.
4. Revenue translation
State assumptions explicitly.
| Assumption | Value |
|---|---|
| Affected DAU | 1 billion |
| ARPU | $50 / user / year |
| Revenue elasticity to confirmed connections | 0.10 (i.e., +1% connections → +0.10% long-run revenue, estimated from the long-term holdout or historical natural experiments) |
| Contribution margin | 40% |
+2% lift:
- ΔRevenue = 1B × $50 × 0.10 × 0.02 = $100M / year
- ΔProfit = $100M × 0.40 = $40M / year
Cross-check against the engagement guardrail. If the −3% engagement drop is real, the revenue cost is 1B × $50 × 0.03 = $1.5B. That dwarfs the upside, which is why resolving the composition question is not optional.
Minimum economically meaningful effect (MEE):
- Ongoing serving and maintenance cost: ~$10M / year. Apply a 2× safety factor → require $20M in incremental profit.
- Profit per 1% of lift = 1B × $50 × 0.10 × 0.40 × 0.01 = $20M.
- Therefore MEE = 1% lift.
Power check: to detect a 1% lift at 80% power, given SE ≈ 1.1% at current sample size, you need roughly (2.8 × 1.1 / 1)² ≈ 9–10× the current sample, plus a design-effect multiplier for cluster randomization (typically 1.5–3×).
5. Post-launch monitoring and rollback
After launch, keep a 2–5% holdout. Use always-valid confidence intervals (e.g., mixture sequential probability ratio tests, mSPRT) for continuous monitoring — repeated peeking with fixed-horizon tests inflates false positives.
Automatic rollback triggers (flag flips off and on-call is paged if any fire):
| Trigger | Condition |
|---|---|
| SRM | Chi-square p < 0.001 |
| Spam reports per 1k requests | ≥ +10% vs. holdout, mSPRT p < 0.01, on 2 consecutive days |
| Hide rate | ≥ +15% vs. holdout, on 2 consecutive days |
| Stable-cohort engagement | Below −1% vs. holdout, mSPRT p < 0.01, on 3 consecutive days |
| Surface latency / error rate | p99 latency +50 ms or error rate +0.5 pp sustained for 1 hour |
Slower reviews:
- Weekly: plot OEC lift by days-since-launch. If the trend line projects below the 1% MEE by week 6, escalate for a re-launch review.
- Quarterly: re-run the holdout analysis to capture the compounding friendship effect and update the elasticity estimate.