subject
Mathematics, 26.03.2020 16:51 celeste5364

Suppose we use the Naive Bayes model to predict Play (Yes or No) based on two attributes: Temperature and Humidity. Let H denote the event that Play is yes. Let P(H) be the probability that Play is Yes. Let E be the following instance:

Temp Humidity Play
Cool High ?

That is, E denotes (Temp=Cool AND Humidity=High).
Hence, P(E) = P(Temp=Cool AND Humidity=High) is the probability of having cool temp and high humidity.
P(E | H=yes) = P(Temp=Cool AND Humidity=High | H=yes) is the conditional probability of having cool temp. and high humidity given the outcome is Yes.

1) P(E | H=yes) can be computed by P(Temp=Cool | H=yes) * P(Humidity=High | H=yes), i. e. the product of two individual probabilities, only if which of the following (naive) assumption is true?

a. Given the outcome is Yes, Temperature and Humidity are mutually exclusive.
b. Given the outcome is Yes, Temperature and Humidity are dependent.
c. Given the outcome is Yes, Temperature and Humidity are independent.
d. Given the outcome is Yes, Temperature and Humidity are not mutually exclusive.

2) Following the above question, suppose there are 200 instances in the training data:
* 100 instances with outcome Play=yes, among which 20 instances have Temp=Cool, 50 instances have Temp=Mild, 30 instances have Temp=Hot;
* 100 instances with outcome Play=no, among which 50 instances have Temp=Cool, 40 instances have Temp=Mild, 10 instances have Temp=Hot;
What is the conditional probability P(Temp=Cool | H=yes), the probability of having Cool temperature given outcome is Yes?

3) Suppose there are 200 instances in the training data:
* 100 instances with outcome Play=yes, among which 30 instances have Humidity=High and 70 instances have Humidity=Low;
* 100 instances with outcome Play=no, among which 60 instances have Humidity=High and 40 instances have Humidity=Low;
What is the conditional probability P(Humidity=High | H=yes), the probability of having High humidity given outcome is Yes?

4) Given data in the above two questions, what is P(H=yes), the (overall) probability of having outcome Yes?

5) According to Bayes Theorem (rule):
P(H|E) = P(E|H) * P(H) / P(E)
With the above weather data:
P(H=yes | E), i. e. the probability of (predicting) Yes given evidence, can be computed by P(E|H=yes) * P(H=yes) / P(E)
Likewise,
P(H=no | E), i. e. the probability of (predicting) No given evidence, can be computed by P(E|H=no) * P(H=no) / P(E)
Please discuss/answer the following questions:
5.a) How can results from the above questions be used to compute P(H=yes | E) and P(H=no | E)? Show steps and plug in the numbers if you can. Use the Naive Bayes model.
5.b) Discuss whether P(E) matters in the final prediction of Yes vs No. Does it make a difference? Why?

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 14:00
Bruce is getting materials for a chemistry experiment his teacher gives him a container that has 0.25 liter of liquid in it.bruce need to use 0.4 of this liquid for the experiment. how much liquid will bruce use?
Answers: 3
question
Mathematics, 21.06.2019 17:00
Simone claims the initial value and y-intercept are the same thing on a graph. is she correct? if you know that a line has a slope of and a y-intercept of 7, what is the equation for that line in slope-intercept form?
Answers: 1
question
Mathematics, 21.06.2019 19:40
The cross-sectional areas of a right triangular prism and a right cylinder are congruent. the right triangular prism has a height of 6 units, and the right cylinder has a height of 6 units. which conclusion can be made from the given information? the volume of the triangular prism is half the volume of the cylinder. the volume of the triangular prism is twice the volume of the cylinder. the volume of the triangular prism is equal to the volume of the cylinder. the volume of the triangular prism is not equal to the volume of the cylinder.
Answers: 1
question
Mathematics, 21.06.2019 19:50
Is it greater than or less than7*3_9*2
Answers: 2
You know the right answer?
Suppose we use the Naive Bayes model to predict Play (Yes or No) based on two attributes: Temperatur...
Questions
question
Mathematics, 07.12.2020 22:00
question
Mathematics, 07.12.2020 22:00
question
Spanish, 07.12.2020 22:00
question
History, 07.12.2020 22:00
Questions on the website: 13722359