Question 3
You are working on a text classification problem using a Naive Bayes classifier to determine whether an email is "Spam" or "Not Spam" . You have trained your model using a dataset of 1000 emails, with 600 of them labeled as "Spam" and 400 labeled as "Not Spam." You've collected statistics on the occurrence of two words, "Won" and "Money" in these emails:
| Keyword | label of email | Probability |
|---|---|---|
| Won | Spam | |
| Won | Not Spam | |
| Money | Spam | |
| Money | Not Spam |
You receive a new email containing both the "Won" and "Money" keywords and want to classify it using Naive Bayes.
Use the Naive Bayes formula to calculate the probability that the new email is classified as "Spam."
Hint: Assume that these are only two possible words (that is there are only two features)