Allocating a Fixed Labeling Budget to Estimate Hate Speech Prevalence

Last updated: November 29, 2026

Quick Overview

You have 10,000 human labels per week to estimate the prevalence of hate speech among a billion Facebook posts, with posts bucketed by classifier score into high, medium and low strata. Derive the optimal allocation of labels across strata and compare its precision with simple random sampling.

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

0

0

0 solved


You have 10,000 human labels per week to estimate the prevalence of hate speech among a billion Facebook posts, with posts bucketed by classifier score into high, medium and low strata. Derive the optimal allocation of labels across strata and compare its precision with simple random sampling.

Meta reports prevalence of violating content in its transparency reports, and estimating rare prevalence cheaply is a core integrity data science skill. This onsite question checks stratified estimation, Neyman allocation, and the realization that most violating content may sit in the low-score stratum.

What the Interviewer Expects
  • Write the stratified estimator and its variance
  • Derive Neyman allocation n_h proportional to N_h S_h
  • Compute allocations and standard errors for realistic strata
  • Compare against proportional and simple random sampling
  • Explain why the low stratum still needs most labels and how to improve further
Key Topics to Cover
stratified sampling
Neyman allocation
prevalence estimation
variance reduction
rare events
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
  • How would the allocation change if labeling high-score posts costs more because reviewers take longer?
  • What if the classifier is retrained mid-quarter and strata boundaries shift?
  • How would you sample by views instead of by posts?
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
  • Population: N=109N = 10^9 posts this week. Strata by classifier score:
    • High: N1=106N_1 = 10^6, guessed prevalence p1=0.30p_1 = 0.30.
    • Medium: N2=9×106N_2 = 9 \times 10^6, p2=0.03p_2 = 0.03.
    • Low: $N_3 = 9.9 \tim...
Approach

With weights Wh=Nh/NW_h = N_h / N, the stratified estimator and its variance are p^=∑hWhp^h,Var(p^)=∑hWh2Sh2nh,Sh2=ph(1−ph).\hat p = \sum_h W_h \hat p_h, \qquad \text{Var}(\hat p) = \sum_h \frac{W_h^2 S_h^2}{n_h}, \quad S_h^2 = p_h(1-p_h). Mini...


Submit Your Answer
Markdown supported