Chance a Flagged Video Actually Violates Community Guidelines

Last updated: November 29, 2026

Quick Overview

An automated classifier flags 95% of videos that violate community guidelines and wrongly flags 2% of videos that do not. If 0.5% of uploads actually violate guidelines, what fraction of flagged videos are true violations?

TikTok
Statistics & Math
Data Scientist
TikTok
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

0

0 solved


An automated classifier flags 95% of videos that violate community guidelines and wrongly flags 2% of videos that do not. If 0.5% of uploads actually violate guidelines, what fraction of flagged videos are true violations?

Base-rate questions are a quick filter in TikTok data science and trust and safety phone screens. The interviewer wants Bayes' rule applied cleanly with natural frequencies, then a practical takeaway for how moderation queues should use the flag.

What the Interviewer Expects
  • Writes Bayes' rule with prior, likelihood and evidence
  • Computes about 19% correctly
  • Explains the result with natural frequencies
  • Draws the operational conclusion for human review
  • Mentions how precision changes with prevalence
Key Topics to Cover
Bayes' theorem
base rate fallacy
precision and recall
conditional probability
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What false positive rate would be needed for precision of 50%?
  • How does precision change for a sub-population where 5% of uploads violate?
  • If a second independent classifier also flags the video, what is the probability now?
  • How would you estimate the true prevalence if you only see flagged videos?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Prevalence P(V)=0.005P(V) = 0.005, sensitivity P(F∣V)=0.95P(F \mid V) = 0.95, false positive rate P(F∣¬V)=0.02P(F \mid \neg V) = 0.02. We want precision, P(V∣F)P(V \mid F). I assume these rates hold uniformly across uploads....

Approach

Bayes' rule: P(V∣F)=P(F∣V)P(V)P(F∣V)P(V)+P(F∣¬V)P(¬V)P(V \mid F) = \frac{P(F \mid V) P(V)}{P(F \mid V)P(V) + P(F \mid \neg V)P(\neg V)}. I also translate it to counts per 100,000 uploads, which is easier to explain to a policy team....


Submit Your Answer
Markdown supported