Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Naive Bayes with data below to predict whether a player will play golf or not if there is no wind (windy = false). Extra
Use Naive Bayes with data below to predict whether a player will play golf or not if there is no wind (windy = false). Extra credit: Also predict whether a player will play golf or not if the weather is cool and windy.
Bayes' theorem P(classdata)= (P(dataclass)*P(class))/(P(data))
Temp | Windy | Class Label(play) |
hot | false | No |
hot | true | No |
hot | false | Yes |
hot | false | Yes |
cool | false | Yes |
cool | true | No |
cool | true | No |
mild | false | No |
cool | true | Yes |
mild | false | Yes |
mild | true | Yes |
hot | false | Yes |
mild | true | No |
If multiple features: data = {d1, d2,, dn} P(dataclass)= P(d_1class)* P(d_2class)** P(d_nclass)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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