Question
Q: Consider following dataset. You have to apply Nave Bayes classifier with complete steps to assign the class label of the given instance. Color Size
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)
Step by Step Solution
3.34 Rating (160 Votes )
There are 3 Steps involved in it
Step: 1
The posterios probability can be calculated by first construc...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