Design an Engagement Metric Set and Watch a Skewed Comment Tail
Statistics & ExperimentsModel answerLast updated
Turn "engagement" into an experiment-ready metric framework, then characterize and monitor a heavy-tailed comment distribution and design a healthy-commenting test.
You are a data scientist on a video product. A PM asks you for two deliverables.
Part A — An engagement metric framework. Define a small set of metrics the team can use to decide whether a change helped: a primary metric (or two), diagnostic metrics that explain movement, and guardrail metrics that catch harm. State the unit of analysis (per user per day, per session, per view), explain how you deal with a small number of very heavy users distorting the average, and explain how you keep the metric from being gamed by low-quality or spam-like activity.
Part B — The comment distribution. Comments are extremely skewed: most users write almost none, while a tiny group writes a great many. Describe which distributions you would compute (with the user, video, and cohort as the unit), which slices you would break out, how you would catch regressions or anomalies (bots, spam, ranking changes), and how you would run an experiment aimed at increasing healthy commenting — including confounders and how you would read the results.
This is a discussion question: precision of definitions, awareness of skew, and sound experiment design matter more than a single number.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
Part A — Engagement metric framework
Unit of analysis. Decide this before anything else. Experiments randomize at the user level, so analyze at the user level too: aggregate each user's behavior over the test window (say "watch minutes per user over 14 days"), then compare arms. Views and sessions are not independent — one enthusiastic user with 200 sessions contributes 200 correlated rows and makes variance look smaller than it is. For ratio metrics (comments per view, shares per session), compute each user's numerator and denominator, form the per-user ratio, and get variance from the delta method or a user-level bootstrap. Never ratio two global sums and treat that as one observation.
Primary metric. Optimize value, not raw activity. I would propose qualified watch time per user: count a view only after ~3 seconds, cap each view at the video's length times a small rewatch allowance. This removes autoplay noise and accidental taps. Pair it with a co-primary engaged-user rate — share of users with at least one meaningful action (like, share, follow, or a healthy comment) in the window. The rate is slower-moving but is dominated by no single user, so together they answer "did we grow value?" and "was the growth broad?".
Diagnostics. Decompose: watch time = active users × sessions/user × views/session × watch time/view. Add interaction rates per view (like, comment, share, follow), completion and rewatch rates, the feed funnel (impression → click → start → complete), and distribution diagnostics such as p50/p90/p99 of watch time per user plus treatment effects split by tenure and by prior-activity bucket. Diagnostics never decide the launch; they tell you why the primary moved.
Guardrails. Retention (D1/D7/D28 return rate), negative feedback (hides, "not interested", reports, unfollows, notification opt-outs), integrity (spam/removed-comment rate per 1,000 comments, harassment reports), ecosystem health (creator post rate, concentration of views — Gini across creators), and performance (video start failures, crash rate). A lift in watch time bought with a rise in reports is not a win.
Heavy users and skew. We optimize the mean, because total engagement = mean × users and the total is what the business collects. Medians are uninformative for sparse actions — for comments the median user is exactly 0. Instead: report quantiles so you can see the shape; winsorize per-user values at a pooled p99.9 computed on both arms combined and fixed before unblinding, which kills a lot of variance and stops one bot or superfan from deciding the outcome; use log(1+x) only for a robust directional check, and label it as such — it estimates roughly a geometric-mean shift, not "+X% total engagement." Apply CUPED with the pre-period value of the metric; for engagement metrics this routinely cuts variance 30–60%, i.e. a large sample-size discount.
Anti-gaming. Count only qualified engagement: drop comments flagged by integrity classifiers, near-duplicate text, links, bursts from brand-new accounts, and self-engagement on your own content. Cap per-user daily credit for interaction metrics. Optionally weight by a quality signal — the comment got a reply or like from another user, or survived 48 hours without removal. Finally, validate the metric against long-term outcomes: keep a small long-horizon holdout and check that moving the metric actually predicts better retention, otherwise you are optimizing a proxy.
Part B — Comment distribution
What to compute. Per user over a 28-day window: share with 0, 1, 2–5, 6–20, >20 comments; p50/p90/p99/p99.9; the complementary CDF on log-log axes (a straight tail suggests power-law behavior); and a Lorenz curve / Gini plus "share of all comments written by the top 1% of commenters." Per video: comments per 1,000 views, share of videos with zero comments, and the fraction of comments landing on the top 1% of videos. Per comment: length, replies received, likes, report/removal rate. Per signup cohort: time to first comment, ever-commented share by day N, and a month-over-month transition matrix across activity buckets — that shows whether light commenters graduate or churn.
Slices. New vs returning and account age; category, creator size, language/geo; platform (iOS/Android/web) and entry surface (feed, search, profile); verified vs unverified.
Monitoring and anomaly detection. Track the shape daily — commenter rate, p50/p90/p99, top-1% share — against the same weekday last week to absorb weekly seasonality, with control limits on the log scale. A rising top-1% share while the commenter rate is flat is the classic bot/spam signature. Bot signals: posting velocity and sub-second bursts, near-duplicate text, link density, clusters of fresh accounts, shared device/IP, machine-regular timing, comments with no preceding view. Join anomalies to deploy and experiment logs, and check whether the shift is localized to one surface or category. Always do a mix-shift decomposition before calling a regression: a drop in comments per user can be pure composition (an influx of new users who comment less) — without splitting within-segment and mix effects you risk Simpson's paradox.
The experiment. Treatment example: a "top comments" preview under the video plus a lightweight reply prompt. Pre-define healthy comment (not removed or reported within 48 hours, not classifier-flagged, from an account past an age/velocity threshold) and make healthy comments per active user the primary, with total comments as a diagnostic so you can see whether you bought volume with junk. Randomize users, analyze per user, pre-register CUPED and winsorization. Key confounders: interference — showing comments changes what control users see, so consider a cluster/creator-level or two-sided design rather than pure user randomization; novelty (a short test overstates a UI change); seasonality (run whole weeks); selection of who comments at all. Read results as: primary lift with confidence interval → is it broad or concentrated in the top 1%? → did guardrails (reports, retention, spam rate) move? → does the long-horizon holdout confirm the metric predicts retention? Only then launch.
Common mistakes: treating views as independent observations; reporting a log-scale lift as a percent lift in totals; not capping outliers; calling a raw totals drop a regression without decomposing mix; and shipping on comment volume without an integrity guardrail.