Two Words, One Posterior

A Bernoulli naive Bayes spam filter has p(spam)=0.3p(\text{spam}) = 0.3 and these fitted conditionals:

feature p(⋅∣spam)p(\cdot \mid \text{spam}) p(⋅∣ham)p(\cdot \mid \text{ham})
contains "free" 0.6 0.1
contains "meeting" 0.1 0.5

An email contains both words. Using p(y∣x)∝p(y)∏jp(xj∣y)p(y \mid x) \propto p(y) \prod_j p(x_j \mid y), what is p(spam∣x)p(\text{spam} \mid x)?

A

Undefined without p(x)p(x), since the denominator needs the joint distribution of the two words, which the naive Bayes assumption refuses to model.

B

About 0.34: the class scores are 0.3(0.6)(0.1)=0.0180.3(0.6)(0.1) = 0.018 and 0.7(0.1)(0.5)=0.0350.7(0.1)(0.5) = 0.035, and 0.018/(0.018+0.035)=0.340.018/(0.018 + 0.035) = 0.34.

C

About 0.40: average the two single-feature posteriors, 0.72 for "free" and 0.08 for "meeting", since the features are treated independently.

D

0.6, which is p(free∣spam)p(\text{free} \mid \text{spam}): the model reads off the strongest piece of evidence.