(a) min{1, 2} = 1
(b) (1/2)(1) + (1/2)(3) = 2
(c) (3/4)(2) + (1/4)(2) = 7/4
(d) min{2, 7/4} = 2
(a) H(1+,3-) = -(1/4) log2(1/4) - (3/4) log2(3/4) = 0.8113 (b) H(4+,0-) = 0 (c) H(1+,1-) = 1 [This is the highest entropy can be] (d) H(1-,2+) = .9183
The equations come directly from the Naive Bayes net structure; probabilities come from the empirical conditional probability tables (which come from just counting using the data in the table): P(W=G|H=0)P(S=P|H=0)P(H=0) = (3/5)(1/5)(5/8) = 3/40 P(W=G|H=1)P(S=P|H=1)P(H=1) = (1/3)(3/3)(3/8) = 1/8 = 5/40
The equations come directly from MAP over the two hypotheses (H=0 vs. H=1) using Bayes' Rule. The probabilities are determined emprically from the table (by simple counting): P(W=G, S=P, N=O |H=0)P(H=0) = (0/5)(5/8) = 0 P(W=G, S=P, N=O |H=1)P(H=1) = (1/3)(3/8) = 1/8
Recall the nodes are independent of non-descendents given their parents
P(C) = P(C|E)P(E) + P(C|not E)P(not E)
= (0.3)(0.5) + (0.8)(0.5)
= 0.15 + 0.40
= 0.55
P(B|A) = P(B|A,C)P(C) + P(B|A, not C)P(not C)
= (0.6)(0.55) + (0.1)(0.45)
= 0.33 + 0.045
= 0.375
Uπ0(S1) = 10 + γ 10 + γ2 10 + γ3 10 + ...
= 10 (1 + γ + γ2 + γ3 + ... )
= 10 ( Σi=0 to +inf γi )
= 10 1/(1-γ)
= 10 1/(1-0.9)
= 10 1/(0.1)
= 100
U1(S1) = R(1) = 10
U1(S2) = R(2) = -10
U1(S3) = R(3) = 20
Now, doing just sub-part 1, we obtain
U2(S1) = R(S1) + γ maxi=1,2 { U(s'(S1, ai) }
= 10 + (0.9) maxi=1,2 { U1(S1>), U(S2>) }
= 10 + (0.9) maxi=1,2 { U1(S1>), U1(S2>) }
= 10 + (0.9) maxi=1,2 { 10, -10 }
= 10 + (0.9) { 10 }
= 10 + 9
= 19
There are seven transitions in the trials: AAAB, AAB, AB, AB AA appears 3 times --> 3/7 AB appears 4 times --> 4/7