Bayesian Networks and Graphs - Solutions Chapter 1
Bayesian Networks and Graphs - Solutions Chapter 1
(second edition)
September 6, 2007
A ∩ B0 = ∅ , (1)
A ∪ B0 = A ∪ B , (2)
and
(A ∩ B) ∪ B 0 = B . (3)
From (1), we have
(A ∩ B) ∩ B 0 = ∅ . (4)
From (3), Axiom 3, and (4) we have
1
5 1
Probabilities for SA : PA (1) = · · · = PA (4) = 24 and PA (5) = PA (6) = 12 .
1
Probabilities for SB : PB (t1) = · · · = PB (t6) = 12 and PB (h1) = · · · =
PB (h4) = 18 .
7
PA (3) + PA (5) = 24 .
7
PB (t3) + PB (t5) + PB (h3) = 24 .
2
Solution for exercise 1.8
Sample space (r stands for “red”, and b for “blue”):
1 1 1
P (r1b1) = P (r1b2) = P (r1b3) = P (r2b1) = · = P (r6b3) = 6 · 12 = 72 .
1 1 1
P (r1b4) = P (r1b5) = P (r1b6) = P (r2b4) = · = P (r6b6) = 6 · 4 = 24 .
P (Cab ) = P (Ca ∩ Cb )
P (Cab ) P (Ca ∩ Cb )
⇔ =
P (Cb ) P (Cb )
P (Cab )
⇔ = P (Ca | Cb )
P (Cb )
⇔P (Cab ) = P (Ca | Cb )P (Cb ).
As this is valid for any choice of states a and b, the fundamental rule holds for
variables.
(i) 0.996
3
(ii) 0.498
(i) P (B, c1 ) = (0.02, 0.08), P (B, c2 ) = (0.18, 0.72), P (B) = (0.2, 0.8)
4
5