Mathematics
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?

answer
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 18:30, travorissteele822
The table shows the relationship between the number of cups of cereal and the number of cups of raisins in a cereal bar recipe: number of cups of cereal number of cups of raisins 8 2 12 3 16 4 molly plotted an equivalent ratio as shown on the grid below: a graph is shown. the title of the graph is cereal bars. the horizontal axis label is cereal in cups. the x-axis values are 0, 20, 40, 60, 80,100. the vertical axis label is raisins in cups. the y-axis values are 0, 10, 20, 30, 40, 50. a point is plotted on the ordered pair 40,20. which of these explains why the point molly plotted is incorrect? (a) if the number of cups of cereal is 40, then the number of cups of raisins will be10. (b)if the number of cups of raisins is 40, then the number of cups of cereal will be10. (c) if the number of cups of cereal is 40, then the number of cups of raisins will be 80. (d) if the number of cups of raisins is 40, then the number of cups of cereal will be 80.
Answers: 1
image
Mathematics, 21.06.2019 19:00, Jesser18
Asap its important using the information in the customer order, determine the length and width of the garden. enter the dimensions. length: feetwidth: feet
Answers: 3
image
Mathematics, 21.06.2019 20:30, NetherisIsTheQueen
What is always true about a positive integer raised to a negative odd power?
Answers: 1
image
Mathematics, 21.06.2019 23:40, genyjoannerubiera
Put the following steps for calculating net worth in the correct order
Answers: 1
Do you know the correct answer?
Suppose we use the Naive Bayes model to predict Play (Yes or No) based on two attributes: Temperatur...

Questions in other subjects:

Konu
Mathematics, 14.05.2021 21:40
Konu
Mathematics, 14.05.2021 21:40