Q: Consider following dataset. You have to apply Nave Bayes classifier with complete steps to assign the
Fantastic news! We've Found the answer you've been seeking!
Question:
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)
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date: