Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started