📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

A spam filter flags 90% of spam and 5% of genuine mail as spam. If 20% of mail is spam, what is P(spam | flagged)?

A. 0.90
B. 0.82 ✅
C. 0.20
D. 0.50

Correct Answer: B. 0.82

Explanation

P(flag and spam)=0.9x0.2=0.18; P(flag)=0.18+0.05x0.8=0.22; posterior=0.18/0.22=0.82.