Is a Two Second Session More Likely a Bot or a Person
Last updated: November 29, 2026
Quick Overview
Session lengths for bots on a Meta web surface are roughly Normal(2, 1) seconds and for humans roughly Normal(8, 3) seconds, and 10% of sessions are bots. Compute the posterior probability of a bot for sessions lasting 2 seconds and 4 seconds.
Meta
November 29, 20260
0
0 solved
Session lengths for bots on a Meta web surface are roughly Normal(2, 1) seconds and for humans roughly Normal(8, 3) seconds, and 10% of sessions are bots. Compute the posterior probability of a bot for sessions lasting 2 seconds and 4 seconds.
Integrity ML engineers at Meta combine many weak behavioral signals, and each signal enters a model as a likelihood ratio. The interviewer checks that you can apply Bayes with continuous densities, compute likelihood ratios, and notice when an observation carries almost no information.
What the Interviewer Expects
- Uses densities rather than probabilities of exact values
- Computes likelihood ratios at each observation
- Combines with prior odds to get the posterior
- Notices that 4 seconds is nearly uninformative
- Questions the Normal assumption for durations
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
- Where is the decision boundary at which posterior is 50%?
- Why does the unequal variance create a second boundary far to the right?
- How would you combine session length with request rate if they are correlated?
- Would you model log duration instead?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Bot lengths , human , prior . Exact values have probability zero, so we use density ratios; the cancels. I would flag that durations are posi...
Approach
Posterior odds with . Prior odds are ....