Answer:
There is a 13.40% probability that a message is spam, given that it contains the word "text" (or "txt").
Step-by-step explanation:
The problem states that
There are 5574 messages.
There are 747 messages that are spam.
Every message contains the word text.
Bayes rule:
What is the probability of B, given that A?
In this problem, we have that
A is containing the word text. So
So
is containing the word text and being a spam message. So:
There is a 13.40% probability that a message is spam, given that it contains the word "text" (or "txt").