Mathematics (Grade 12 General Sciences, Lebanon) · Chapter 13 · Tutorial exercise
Spam filter and predictive value with a parameter
Conditional probability and total probability · A. Tutorials · level 2
Statement
An e-mail server analyzes incoming messages. A proportion of the messages received are spam (event ) and the others are legitimate e-mails (). The automatic filter places a message in quarantine (event ) with the following performance:
- if a message is spam, it is placed in quarantine with probability ;
- if a message is legitimate, it is placed in quarantine by mistake with probability .
- Express, in terms of , the probability that a message chosen at random is placed in quarantine.
- In this question, assume that . a) Calculate . b) A user notices that a message has been placed in quarantine. What is the probability that this message is nevertheless legitimate (false positive in quarantine)? Round to .
- Determine the values of the proportion for which at least of the messages placed in quarantine are actually spam, that is, .
Solution
- The events and form a partition of the sample space with and . By the total probability formula:
- a) For , we obtain: b) We are looking for the conditional probability . By Bayes' formula: Thus, of the messages placed in quarantine are legitimate messages.
- For every , Bayes' formula gives: Since , the inequality is equivalent to: We deduce: So at least (about ) of the incoming traffic must consist of spam.
Similar exercises
- Characterization of independence, complementary events and incompatibility solved
- Successive draws without replacement and compound probabilities solved
- Partition into three events, total probability and Bayes' formula solved
- Two-stage experiment with a transfer between two urns solved
- Problem: Binary transmission chain and sequences of probabilities solved
The course of the chapter · All the exercises of the chapter