KatInterview

Measuring and Experimenting on Spam Without a Label Table

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsmetric-designexperiment-designspam

Last updated

Design proxy metrics to monitor spam and user experience, diagnose a drop in report rate, and build a valid A/B test when spammers are rare.

Scenario

A product team wants to roll out anti-spam changes to a messaging feature. No classifier or labeled spam table exists yet. Your job is to design the measurement layer from scratch and think through the experiment.

Questions

Part 1 — Proxy metrics With no classifier output available, what behavioral signals would you track to monitor spam volume and to protect normal user experience? Be specific about what you measure, how you normalize it, and why each signal captures what you claim.

Part 2 — Diagnosing a metric drop After an anti-spam launch, the team notices that the report rate has fallen. Walk through the possible explanations. What additional metrics would you pull to tell a real improvement apart from a measurement artifact or an adversarial shift?

Part 3 — Experiment design with rare bad actors You want to run an A/B test on a new anti-spam intervention. Spammers make up a very small fraction of all senders. How do you set up the test so that the few high-risk accounts are distributed evenly, the required sample size stays manageable, and the guardrail metrics for normal users remain meaningful?

Explain your reasoning at each step, call out trade-offs, and state any assumptions you make.

Hints

Hint 1

Report rate has two parts — numerator and denominator. Before concluding spam dropped, ask what changed on each side and whether the denominator shifted for reasons unrelated to spam.

Hint 2

When spammers are rare, including all users in your analysis dilutes the signal dramatically. Think about which users the treatment could actually affect, and restrict your primary analysis to them.

Hint 3

Pairing every spam metric with a matching user-harm guardrail keeps the analysis honest — an intervention that harms normal senders may still look good on spam-only metrics.