Bayesian Update When Outlook Flags an Email as Phishing

Last updated: November 29, 2026

Quick Overview

Defender for Office 365 flags emails as phishing. About 1% of incoming emails are phishing, the filter catches 95% of phishing emails, and it wrongly flags 2% of legitimate ones. If an email is flagged, what is the probability it is really phishing, and what if a second, independent model also flags it?

Microsoft
Statistics & Math
Data Scientist
Microsoft
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


Defender for Office 365 flags emails as phishing. About 1% of incoming emails are phishing, the filter catches 95% of phishing emails, and it wrongly flags 2% of legitimate ones. If an email is flagged, what is the probability it is really phishing, and what if a second, independent model also flags it?

A Bayes rule question in Microsoft data science screens with direct product relevance to Outlook and Defender. The interviewer checks base-rate reasoning, a clean calculation, and a sound view of what the number means for user-facing actions like quarantine versus warning banners.

What the Interviewer Expects
  • Write Bayes' rule with prior, sensitivity and false positive rate
  • Compute the posterior correctly
  • Explain why the posterior is low despite a good classifier
  • Chain a second independent signal
  • Question the independence assumption and link to product decisions
Key Topics to Cover
Bayes theorem
base rates
precision
conditional independence
security
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • The phishing rate doubles during a campaign. How does the posterior change?
  • What false positive rate would you need for the posterior to reach 90%?
  • How would you estimate these rates in production when labels are scarce?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

I would confirm the numbers are a prior P(phish)=0.01P(\text{phish}) = 0.01, sensitivity P(flag∣phish)=0.95P(\text{flag} \mid \text{phish}) = 0.95 and false positive rate P(flag∣legit)=0.02P(\text{flag} \mid \text{legit}) = 0.02, and that the ...

Approach

Use Bayes' rule: posterior equals true positive mass divided by all flagged mass. For two flags, multiply the likelihoods, or equivalently update the odds twice....


Submit Your Answer
Markdown supported