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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
- Population: posts this week. Strata by classifier score:
- High: , guessed prevalence .
- Medium: , .
- Low: $N_3 = 9.9 \tim...
Approach
With weights , the stratified estimator and its variance are Mini...