Question

Question 4 (3 points)

We have extracted how often the words "Hot" and "Sweet" appear in a collection of articles. The articles

are either about Cooking or Music. The following probabilities describe the data.

o P(Cooking = 1) = 0.5 (when Cooking = 0, the article is about Music)

o P(Hot 1|Cooking = 1) = 0.25

o P(Sweet = 1|Cooking = 1) = 0.35

o P(Hot = 1|Cooking = 0) = 0.25

o P(Sweet = 1|Cooking = 0) = 0.25

We have a new article from the collection and it contains both of the words ("Sweet" and "Hot"). Use the

Naïve Bayes algorithm to classify whether this article is about Cooking or Music. Show all work.

(Answer Box)

Question image 1