Consider following dataset. You have to apply Naïve Bayes classifier with complete steps to assign the class label of the given instance. Color Size Action Age Class label yellow small stretch adult true purple small stretch adult true yellow small stretch adult true purple small stretch child false yellow small stretch adult false yellow small dip adult false purple small dip child false yellow small dip child false yellow large stretch adult true yellow large stretch adult true yellow large stretch child false yellow large dip adult false yellow large dip child false purple small stretch adult true purple small dip adult false X = < Color = yellow, Size = small, Action = stretch, Age = child > ---- Class Label? Hint: You have to perform steps for two class labels (True and False) using naïve bayes. These are the formulas. P (Class Label = True | X) = P (X | Class Label = True) * P (Class Label = True) P (Class Label = False | X) = P (X | Class Label = False) * P (Class Label = False) Ignore the denominator part, P(X)
Q: Consider following dataset. You have to apply Naïve Bayes classifier with complete steps to assign the class label of the given instance.
Color |
Size |
Action |
Age |
Class label |
yellow |
small |
stretch |
adult |
true |
purple |
small |
stretch |
adult |
true |
yellow |
small |
stretch |
adult |
true |
purple |
small |
stretch |
child |
false |
yellow |
small |
stretch |
adult |
false |
yellow |
small |
dip |
adult |
false |
purple |
small |
dip |
child |
false |
yellow |
small |
dip |
child |
false |
yellow |
large |
stretch |
adult |
true |
yellow |
large |
stretch |
adult |
true |
yellow |
large |
stretch |
child |
false |
yellow |
large |
dip |
adult |
false |
yellow |
large |
dip |
child |
false |
purple |
small |
stretch |
adult |
true |
purple |
small |
dip |
adult |
false |
X = < Color = yellow, Size = small, Action = stretch, Age = child > ---- Class Label?
Hint: You have to perform steps for two class labels (True and False) using naïve bayes. These are the formulas.
P (Class Label = True | X) = P (X | Class Label = True) * P (Class Label = True)
P (Class Label = False | X) = P (X | Class Label = False) * P (Class Label = False)
Ignore the denominator part, P(X)
Course/Subject: Introduction to Data Science
Step by step
Solved in 2 steps