Separating Bot and Human Gaps in Account Action Timing
Last updated: November 29, 2026
Quick Overview
The gaps between consecutive actions from new accounts look like a blend of very fast automated activity and slower human activity. Model the gaps as a mixture of two exponentials, derive the EM algorithm to fit it, and explain how the fitted model supports bot detection on Facebook.
Meta
November 29, 20260
0
0 solved
The gaps between consecutive actions from new accounts look like a blend of very fast automated activity and slower human activity. Model the gaps as a mixture of two exponentials, derive the EM algorithm to fit it, and explain how the fitted model supports bot detection on Facebook.
Meta integrity engineers use timing signals to find automated accounts, and a mixture model is a principled first step. This screen question checks deriving EM for a mixture, implementing it, and turning posteriors into a usable signal with known limits.
What the Interviewer Expects
- Write the two-component exponential mixture likelihood
- Derive E-step responsibilities and closed-form M-step updates
- Implement the algorithm with sensible initialization
- Use posterior responsibilities per gap and aggregate to accounts
- Discuss local optima, label switching and adversarial adaptation
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 you choose between two and three components?
- How would you move from per-gap posteriors to a per-account bot score?
- What happens when bot operators add random delays?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
- Data: gaps in seconds between consecutive actions (likes, friend requests) across new accounts.
- Model: with probability a gap comes from a fast component with mean ,...
Approach
Likelihood: Introduce latent if gap is fast.
- E-step: $w_i = \dfrac{\pi f_f...