The Word That Cancels the Case

Bayesian InferenceHard+30 XP+30

The Word That Cancels the Case

A Naive Bayes spam filter is trained on a corpus where P(Spam)=0.25P(\text{Spam}) = 0.25P(Spam)=0.25 and P(Ham)=0.75P(\text{Ham}) = 0.75P(Ham)=0.75.

An incoming email contains exactly three indicator words: invoice, urgent, and kitten. The word kitten never appeared in a single spam email during training, so the unsmoothed estimate would have been P(kitten∣Spam)=0P(\text{kitten} \mid \text{Spam}) = 0P(kitten∣Spam)=0. After Laplace smoothing the filter's estimates are:

wordP(w∣Spam)P(w \mid \text{Spam})P(w∣Spam)P(w∣Ham)P(w \mid \text{Ham})P(w∣Ham)
invoice0.400.400.400.200.200.20
urgent0.500.500.500.100.100.10
kitten0.020.020.020.200.200.20

The classifier assumes the three words are conditionally independent given the class.

What is P(Spam∣invoice,urgent,kitten)P(\text{Spam} \mid \textit{invoice}, \textit{urgent}, \textit{kitten})P(Spam∣invoice,urgent,kitten)?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.