Confidence Interval For Detector Precision From Analyst Review
Last updated: November 29, 2026
Quick Overview
Analysts reviewed a random sample of 400 messages that a new detector quarantined last week and confirmed 388 were malicious. Give a 95% confidence interval for the detector's precision, explain which interval you chose, and say how large a sample you need for a margin of plus or minus one percentage point.
Abnormal Security
November 29, 20260
0
0 solved
Analysts reviewed a random sample of 400 messages that a new detector quarantined last week and confirmed 388 were malicious. Give a 95% confidence interval for the detector's precision, explain which interval you chose, and say how large a sample you need for a margin of plus or minus one percentage point.
Detection teams at Abnormal routinely size and interpret analyst review samples before trusting a new detector in production. The interviewer checks binomial basics, awareness that the normal approximation struggles near 0 or 1, and practical sample sizing.
What the Interviewer Expects
- Frames precision as a binomial proportion over sampled flags
- Computes a Wald interval and explains its weakness near 1
- Computes or describes the Wilson interval
- Derives the sample size formula for a target margin
- Mentions that the sample must be random over flagged messages, not cherry-picked
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
- What if all 400 were confirmed malicious?
- The flags come from many campaigns. Is the binomial assumption still fine?
- How would you report precision separately for small and large tenants?
- How does analyst labeling error affect the interval?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Unit: one quarantined message. , , . The sample is assumed uniformly random from last week's quarantines, and analyst labels are treated as ground truth....
Approach
The Wald interval is . Near it is too narrow and can exceed 1. The Wilson interval inverts the score test and behaves well there: