Question: 2. Consider the following training set, which contains 3 binary attributes X, X, andX3. There are 50 examples in the training set, with equal

2. Consider the following training set, which contains 3 binary attributes X, X, andX3. There are 50 examples

2. Consider the following training set, which contains 3 binary attributes X, X, andX3. There are 50 examples in the training set, with equal number of positive and negative examples. X 1 1 0 0 0 X2 X3 1 0 0 1 0 1 1 1 1 0 Number of positive training examples 5 10 5 0 5 Number of negative training examples 0 10 5 10 0 (a) Compute the class conditional probabilities P(X = 1]+), P(X = 1|), P(X = 1|+), P(X = 1|-), P(X3 = 1|+), and P(X3 = 1|-) (b) Use the class conditional probabilities given in the previous question to predict the class label of each example with the feature set given in the training set above. Use your results to compute the training error rate of the nave Bayes classifier.

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To compute the class conditional probabilities well start with part a Given there are an equal number of positive and negative examples and the total ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!