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")