How Precise Is a Flag from the Hate Speech Classifier

Last updated: November 29, 2026

Quick Overview

A Facebook hate speech classifier catches 90% of violating posts and wrongly flags 2% of benign posts. If 0.5% of posts violate policy, what share of flagged posts actually violate, and what does that mean for review queues?

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

0

0

0 solved


A Facebook hate speech classifier catches 90% of violating posts and wrongly flags 2% of benign posts. If 0.5% of posts violate policy, what share of flagged posts actually violate, and what does that mean for review queues?

Integrity teams at Meta work with very low base rates, and this Bayes question checks whether a candidate can reason about precision versus recall when prevalence is tiny. Interviewers want the calculation and the operational implication for human review.

What the Interviewer Expects
  • Sets up Bayes rule with prevalence, recall, and false positive rate
  • Computes precision correctly
  • Explains why precision is low despite a good-looking classifier
  • Translates the result into reviewer workload
  • Suggests how to raise precision such as thresholds or a second stage
Key Topics to Cover
Bayes theorem
Base rates
Precision and recall
Content moderation
Thresholds
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 is needed for 50% precision?
  • How would precision change for a group where prevalence is 5%?
  • How would you estimate recall in production when you do not know which posts were missed?
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

Let VV = post violates, FF = flagged. Given P(V)=0.005P(V) = 0.005, P(F∣V)=0.90P(F \mid V) = 0.90 (recall), P(F∣¬V)=0.02P(F \mid \neg V) = 0.02 (false positive rate). We want P(V∣F)P(V \mid F), the precision....

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)}...


Submit Your Answer
Markdown supported