Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem# Question B (not in the book) A spam-detection filter is tested on 100 e

ID: 3332182 • Letter: P

Question

Problem# Question B (not in the book) A spam-detection filter is tested on 100 emails that are truly spam, and it flags 78 of them as spam and the others it lets slip by. It's also tested on 1000 emails that are not spam, and it properly lets 950 of them through, flagging only 50 as spam. Suppose that in general, 40% of emails are spam. If an email from this general pool is flagged as spam, what is the probability it's actually spam? Here's some space for work: Answer: Probability it's actually spam = Problem# Question B (not in the book) A spam-detection filter is tested on 100 emails that are truly spam, and it flags 78 of them as spam and the others it lets slip by. It's also tested on 1000 emails that are not spam, and it properly lets 950 of them through, flagging only 50 as spam. Suppose that in general, 40% of emails are spam. If an email from this general pool is flagged as spam, what is the probability it's actually spam? Here's some space for work: Answer: Probability it's actually spam =

Explanation / Answer

P(P|S) = 0.78 and P(P'|S) = 0.22
P(P|S') = 0.05 and P(P'|S') = 0.95
P(S) = 0.4 and P(S') = 0.6

Probability that an email is actual spam,
P(S|P) = P(P|S)*P(S) / (P(P|S)*P(S) + P(P|S')*P(S'))

P(S|P) = 0.78*0.4 / (0.78*0.4 + 0.05*0.6) = 0.9123

Probability it's actually spam = 0.9123

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote