Adloun

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 .
  1. Express, in terms of , the probability that a message chosen at random is placed in quarantine.
  2. 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 .
  3. Determine the values of the proportion for which at least of the messages placed in quarantine are actually spam, that is, .

Solution

  1. The events and form a partition of the sample space with and . By the total probability formula:
  1. 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.
  1. 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

The course of the chapter · All the exercises of the chapter