Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!