Question: Consider the data set shown in Table 5.1 Table 5.1. Data set for Exercise 7. (a) Estimate the conditional probabilities for P(A|+), P(B|+), P(C|+), P(A|),

Consider the data set shown in Table 5.1
Table 5.1. Data set for Exercise 7.
Consider the data set shown in Table 5.1
Table 5.1. Data

(a) Estimate the conditional probabilities for P(A|+), P(B|+), P(C|+), P(A|ˆ’), P(B|ˆ’), and P(C|ˆ’).
Answer:
P(A = 1|ˆ’) = 2/5 = 0.4, P(B = 1|ˆ’) = 2/5 = 0.4,
P(C = 1|ˆ’) = 1, P(A = 0|ˆ’) = 3/5 = 0.6,
P(B = 0|ˆ’) = 3/5 = 0.6, P(C = 0|ˆ’) = 0; P(A = 1|+) = 3/5 = 0.6,
P(B = 1|+) = 1/5 = 0.2, P(C = 1|+) = 2/5 = 0.4,
P(A = 0|+) = 2/5 = 0.4, P(B = 0|+) = 4/5 = 0.8,
P(C = 0|+) = 3/5 = 0.6.
(b) Use the estimate of conditional probabilities given in the previous question to predict the class label for a test sample (A = 0,B = 1, C = 0) using the na¨Ä±ve Bayes approach.
Answer:
Let P(A = 0,B = 1, C = 0) = K.
P(+|A = 0,B = 1, C = 0)

Consider the data set shown in Table 5.1
Table 5.1. Data
Consider the data set shown in Table 5.1
Table 5.1. Data

= 0.4 × 0.2 × 0.6 × 0.5/K
= 0.024/K.
P(ˆ’|A = 0,B = 1, C = 0)

Consider the data set shown in Table 5.1
Table 5.1. Data
Consider the data set shown in Table 5.1
Table 5.1. Data

(c) Estimate the conditional probabilities using the m-estimate approach, with p = ½ and m = 4.
Answer:
P(A = 0|+) = (2 + 2)/(5 + 4) = 4/9,
P(A = 0|ˆ’) = (3+2)/(5 + 4) = 5/9,
P(B = 1|+) = (1 + 2)/(5 + 4) = 3/9,
P(B = 1|ˆ’) = (2+2)/(5 + 4) = 4/9,
P(C = 0|+) = (3 + 2)/(5 + 4) = 5/9,
P(C = 0|ˆ’) = (0+2)/(5 + 4) = 2/9.
(d) Repeat part (b) using the conditional probabilities given in part (c).
Answer:
Let P(A = 0,B = 1, C = 0) = K

Table 5.1. Data set for Exercise7 ass 6 101- 10 P(A = 0, B = 1, C = 0|-) x P(-)

Step by Step Solution

3.30 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a P A 1 2 5 0 4 P B 1 2 5 0 4 P C 1 1 P A 0 3 5 0 6 P B 0 ... View full answer

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

Document Format (1 attachment)

Word file Icon

908-M-S-D-A (8634).docx

120 KBs Word File

Students Have Also Explored These Related Statistics Questions!