KatInterview

Measuring User Exposure to Policy-Violating Posts

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsmetric-designcontent-safetyexperimentation

Last updated

Design a metric framework for how often users see harmful content: definitions, timing rules, north-star choice, uncertainty-aware alerts, and an A/B test under delayed labels.

You are the data scientist for a social platform where users post content, and moderation combines automated classifiers with human reviewers. Leadership wants a trustworthy way to track how much policy-violating content people actually see, and a plan to bring that number down.

Answer the following.

  1. Core metrics. Give exact formulas for three daily metrics and their 7-day rolling versions:

    • the share of all views that land on violating content,
    • the share of sessions that contain at least one violating view,
    • the number of violating views per daily active user.
  2. What counts as a violating view. Write precise inclusion and exclusion rules under two timing regimes: ex-ante (only violations already known when the view happened) and ex-post (the final decision after all reviews). Say how you treat late-arriving labels, appeals, deleted content, repeat views, and bot traffic.

  3. Choosing a north-star. Is the view-share metric a good north-star? Compare it with:

    • the fraction of newly created items that turn out to be violating, and
    • the fraction of daily active users who were exposed at least once.

    Discuss detection lag, denominator gaming, shifts in classifier precision and recall, Simpson's paradox across countries and surfaces, and Goodhart's law.

  4. Weekly alerting. Propose an alerting method with thresholds that accounts for uncertainty (for example Wilson or Bayesian beta-binomial intervals). List the guardrail metrics you would pair with it, such as wrongly actioned content, creator churn, and review-queue SLA.

  5. Experiment. Sketch an A/B test intended to reduce the view-share metric. State the primary metric, key segments (country, surface, creator cohort), power assumptions, and how you correct for label latency and selection bias when violations are only discovered after they were seen.

Expect a structured answer with concrete definitions, trade-offs, and rough numbers where they help.

Hints

Hint 1

Define a 'view' first (visibility threshold, deduplication, eligible non-bot viewer). Then use ratio-of-sums for rolling windows, not an average of daily ratios.

Hint 2

Labels come from the enforcement system you are evaluating, so counting only removed items measures recall, not exposure. Think about an independent, probability-sampled, blind human-rated measurement and how to reweight it.

Hint 3

For alerting, remember views are clustered by item, so a plain binomial interval is too narrow; adjust for design effect and multiple segments. For the A/B test, think about a fixed maturity window and a nowcast so late labels do not bias arms differently.

Hint 4

Separate the ex-ante number (enforcement leakage, immutable at view time) from the ex-post number (ground truth at a fixed maturity window), and report both.