I encountered following question:
Consider that the occurrence of spam attachments in email messages is $1$ in $1500$.
- Your email spam detector will correctly identify a mail as spam $97\%$ of the time.
- Your email spam detector will also correctly identify a mail as non-spam $97\%$ of the time.
- Your email spam detector has just flagged a mail as being spam mail.
What is the probability that the mail is actually not a spam?
I got $0.0667\,\%$ based on my calculation.
Can anyone help me with this and see if I am correct?
Thank you.
Hmm I think you're wrong.
It should be $\frac{P(not\ spam\ but\ reported\ spam)}{P(reported\ spam)}=\frac{0.03*1499/1500}{0.03*1499/1500+0.97*1/1500}$
It might help by drawing a rectangle, let x axis be spam/not spam, y axis be report spam/ not report spam. And then color the corresponding parts and calculate the area.