LO 7.2.3.C
Learning Objective: Calculate the prior probabilities of two classes, given a training set categorized into two categories.
Review:
Assume, we have five text documents and two classes: ‘+’/positive comment and ‘-’/negative comment. The class categorization of the five documents are described in the figure below.
The goal is to classify the text “predictable with no fun” either as ‘+’/positive comment or ‘-’/negative comment.
Thus, the priori probabilities of the class ‘positive comment’ and ‘negative comment’ are given by
Source: Assigned reading