Design a Composite Engagement Score for a Content Feed
Statistics & ExperimentsModel answerLast updated
Design a single metric that captures meaningful user engagement in a ranked content feed, accounting for action heterogeneity, gaming, and long-term health.
Scenario
You are a data scientist at a company that runs a ranked content feed (think short-form articles, videos, and polls). The product team currently measures success with total clicks per session, but leadership suspects this metric is being gamed — low-quality, click-bait posts score well, while genuinely valuable content that earns long reads or saves is undervalued.
You are asked to design a composite engagement score that will:
- Serve as the primary success metric in A/B experiments testing new ranking algorithms.
- Be robust to gaming and short-term manipulation.
- Reflect long-term user value, not just immediate interaction volume.
What is expected
- Define each component of your composite score and justify why it belongs.
- Explain how you would weight the components and what data/analysis informs those weights.
- Describe how you would validate the metric before using it in experiments.
- Identify at least three failure modes or ways the metric could still be gamed or mislead.
- Discuss trade-offs between sensitivity (detecting real changes) and specificity (not triggering on noise or manipulation).
Assume you have full event-logging (every user action timestamped), historical experiment results with qualitative outcome labels ("good launch" / "bad launch"), and 90 days of feed interaction data for ~5 million daily active users.
Hints
Hint 1
Start by listing the raw signals available (clicks, dwell time, shares, saves, explicit ratings, scrolls past) and ask which ones correlate with users returning to the platform a week later — that grounds the weighting in a measurable long-term outcome rather than intuition.
Hint 2
Consider normalizing each action signal at the content-item level (e.g., dwell time relative to item length) before aggregating, so a 3-minute read of a 3-minute article is not unfairly penalized against a 3-minute read of a 30-minute article.
Hint 3
Think about how you would use historical A/B experiments with known qualitative outcomes to calibrate weights — this is an empirical weighting problem, not just a product judgment call.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
1. Why "Total Clicks per Session" Fails
Clicks conflate intent with outcome. A misleading headline earns a click; the user bounces in two seconds and feels deceived. Over time this degrades trust and retention. The metric also has a denominator problem: a session with one deliberate, high-value interaction scores lower than a session with ten reflexive mis-clicks.
A good replacement metric must be:
- Sensitive to real product improvements.
- Robust to surface-level gaming.
- Aligned with a long-term outcome (retention, satisfaction).
2. Building the Composite Score
2a. Candidate Signals
| Signal | Raw form | Concern |
|---|---|---|
| Click | Binary per impression | Easiest to game |
| Dwell time | Seconds on content | Inflated by idle tabs |
| Scroll depth | % of item consumed | Proxy for completion |
| Save / bookmark | Binary | Low-frequency but high-intent |
| Share / forward | Binary | Strong social signal |
| Explicit negative (hide, report) | Binary | Penalty signal |
| Return visit to same creator | Binary within 7 days | Long-term loyalty |
2b. Normalizing Signals
Raw dwell time favors long content. Replace it with normalized dwell ratio (NDR):
NDR = min(actual_dwell / expected_dwell, 1.5)
expected_dwell is estimated from item length (word count for articles, video duration for clips) using a regression on historical 50th-percentile dwell for that content type and length. Capping at 1.5 prevents looping videos from inflating the score infinitely.
Similarly, scroll depth is normalized to [0, 1].
2c. Per-Impression Item Score
For a single user–item interaction:
item_score = w1 * NDR
+ w2 * scroll_depth
+ w3 * save
+ w4 * share
- w5 * negative_action
+ w6 * return_visit_7d
2d. Session-Level and Experiment-Level Aggregation
Average item_score across all impressed items (not just clicked ones) — this penalizes filling the feed with click-bait that earns impressions but no depth.
The experiment metric is the mean session score per user, compared across control and treatment using a t-test or Mann-Whitney U (distribution is skewed; check empirically).
3. Choosing Weights Empirically
This is the crux of the hard problem. Do not pick weights by intuition alone.
Method: Held-out experiment calibration
- Collect the ~20 past A/B experiments with labeled outcomes ("good launch" = retained users + qualitative satisfaction surveys positive; "bad launch" = opposite).
- For each past experiment, compute the treatment–control delta for every candidate metric combination (sweeping weights on a grid or using Bayesian optimization).
- Select the weight vector that maximizes concordance between metric direction and qualitative launch outcome label — i.e., the metric that would have correctly called "ship it" vs. "don't ship" most often.
- Validate on a held-out fold of experiments.
This grounds weights in observed business reality rather than product guesses. Typical findings: save and return-visit signals carry disproportionate weight (3–5x a raw click) despite low frequency, because they are strong retention predictors.
4. Metric Validation
Before deploying as primary metric, run three checks:
4a. Correlation with long-term retention. Compute the Spearman correlation between a user's average weekly composite score and their 30-day and 90-day retention. If the score doesn't predict retention better than raw clicks do, it hasn't solved the core problem.
4b. Sensitivity / MDE analysis. Simulate the score distribution from historical data. Estimate the minimum detectable effect (MDE) at 80% power and α=0.05 for a typical experiment (e.g., 2-week test, 10% traffic split, ~500k users per arm). If the MDE is larger than effects your team considers meaningful (say, <0.5% relative lift), the metric is too noisy to use as primary — you may need to reduce variance via CUPED or stratification.
4c. Novelty / inflation check. Run an A/A test. Confirm the score is not systematically inflated in the first 48 hours (novelty effect), which would cause false positives in short experiments. If inflation exists, exclude the first 2 days from computation or use a stabilization window.
5. Failure Modes and Gaming Risks
1. Dwell-time inflation via autoplay. If the feed auto-advances to the next item, dwell time accumulates passively. Mitigation: distinguish active engagement (scroll events, cursor movement on desktop, touch events on mobile) from passive idle time. Use "active dwell" rather than wall-clock dwell.
2. Save-farming by power users. A small cohort of users who save everything will dominate the save signal. Winsorize or log-transform save rates at the user level before aggregation to prevent outlier distortion.
3. Goodhart's Law on return-visit signal. If ranking engineers know return visits are rewarded, they may optimize for addictive content (cliffhangers, anxiety-inducing posts) that brings users back for the wrong reason. Pair return-visit with a satisfaction survey sample (1-in-200 users post-session NPS) as a qualitative guardrail metric that can block a launch even if the composite score is green.
4. Composition shift masking harm. If an experiment suppresses low-quality content (reducing impressions for click-bait), average item score rises mechanically because bad items are no longer in the denominator. Always report score alongside total engaged sessions and session length distribution to distinguish genuine quality improvement from selection artifact.
6. Trade-offs
| Choice | Sensitivity | Gaming resistance | Complexity |
|---|---|---|---|
| Simple dwell-time average | High | Low | Low |
| Clicks only | High | Very low | Very low |
| Proposed composite | Medium-high | Medium-high | Medium |
| Composite + survey guardrail | Medium | High | High |
The proposed composite is the right balance for a team running weekly experiments at scale. The survey guardrail is worth adding for major ranking overhauls but too slow (requires sampling) for rapid iteration cycles.
Common Mistakes
- Weighting by feel: Assigning w1=0.3, w2=0.3, w3=0.4 without empirical grounding produces a metric that looks principled but may anti-correlate with retention.
- Ignoring variance: A composite with many low-frequency signals (saves, shares) can have very high per-user variance, requiring 3–4x the sample size compared to a simpler metric.
- No guardrails: Shipping a single composite without any secondary health metrics (e.g., report rate, uninstall rate) creates a blind spot for harm the composite doesn't capture.