Bayes' rule can be used to identify and filter spam emails and text messages. This question refers to a large collection of real SMS text messages from participating cellphone users.1 In this collection, 747 of the 5574 total messages () are identified as spam. The word "text" (or "txt") is contained in of all messages, and in of all spam messages. What is the probability that a message is spam, given that it contains the word "text" (or "txt")? Round your answer to three decimal places.

Respuesta :

Answer:

0.134 = 13.4% probability that a message is spam, given that it contains the word "text" (or "txt")

Step-by-step explanation:

We use the conditional probability formula to solve this question. It is

[tex]P(B|A) = \frac{P(A \cap B)}{P(A)}[/tex]

In which

P(B|A) is the probability of event B happening, given that A happened.

[tex]P(A \cap B)[/tex] is the probability of both A and B happening.

P(A) is the probability of A happening.

In this question:

Event A: Contains the word "text", or "txt".

Event B: Spam message.

The word "text" (or "txt") is contained in of all messages, and in of all spam messages.

This means that [tex]P(A) = 1[/tex]

747 of the 5574 total messages () are identified as spam. The word "text" (or "txt") is contained in all of them. So

[tex]P(A \cap B) = \frac{747}{5574} = 0.134[/tex]

Then

[tex]P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.134}{1} = 0.134[/tex]

0.134 = 13.4% probability that a message is spam, given that it contains the word "text" (or "txt")

ACCESS MORE