Answer:
(a) 0.152
(b) 0.789
(c) 0.906
Step-by-step explanation:
Let's denote the events as follows:
<em>F</em> = The word free occurs in an email
<em>S</em> = The email is spam
<em>V</em> = The email is valid.
The information provided to us are:
- The probability of the word free occurring in a spam message is,
- The probability of the word free occurring in a valid message is,
- The probability of spam messages is,
First let's compute the probability of valid messages:
(a)
To compute the probability of messages that contains the word free use the rule of total probability.
The rule of total probability is:
The probability that a message contains the word free is:
The probability of a message containing the word free is 0.152
(b)
To compute the probability of messages that are spam given that they contain the word free use the Bayes' Theorem.
The Bayes' theorem is used to determine the probability of an event based on the fact that another event has already occurred. That is,
The probability that a message is spam provided that it contains free is:
The probability that a message is spam provided that it contains free is approximately 0.789.
(c)
To compute the probability of messages that are valid given that they do not contain the word free use the Bayes' Theorem. That is,
The probability that a message is valid provided that it does not contain free is:
The probability that a message is valid provided that it does not contain free is approximately 0.906.