Description
1. A graph with no links is a trivial D-Map. True/False [5 Points]
2. Consider the Bayesian network given below [5 Points]
a. Is A conditionally independent of D give {B,C}.
b. Is E marginally independent of F
c. Which edge would you delete to make A independent of C.
3. Evaluate the distribution p(a), p(b|c) and p(c|a) corresponding to the joint distribution given in
the Table. Hence show by direct evaluation that p(a,b,c) = p(a) p(c|a) p(b|c). Draw the
corresponding directed graph. [10 Points]
a b c p(a, b, c)
0 0 0 0.192
0 0 1 0.144
0 1 0 0.048
0 1 1 0.216
1 0 0 0.192
1 0 1 0.064
1 1 0 0.048
1 1 1 0.096
4. Consider the directed graphical model in following figure with 4 binary variables.
[10 Points]
a. Write down the expression for P(S=1|V=1) in terms of Ξ±, Ξ², Ο, ππ.
b. Write down the expression for P(S=1|V=0) . Is it the same or different to P(S=1|V=1? Explain why.
c. Find the maximum likelihood estimate of Ξ±, Ξ², Ο using the following dataset, where each row is a
training case.
V G R S
1 1 1 1
1 1 0 1
1 0 0 0
5. Hidden variables in DGMs: [10 Points]
a. Consider the following graphical model, where we number nodes left to right, top to bottom.
The graph defines the joint as
ππ(ππ1,ππ2, ππ3,ππ4, ππ5, ππ6)
= οΏ½ππ(ππ1)ππ(ππ2)ππ(ππ3)ππ(π»π» = β|ππ1ππ2ππ3)ππ(ππ4|π»π» = β)ππ(ππ5|π»π» = β)ππ(ππ6|π»π» = β)
β
where we have marginalized over the hidden variable H.
Assuming all nodes are binary, how many parameters does this model have?
b. Consider the following graph and its joint distribution ( again we number nodes from left to right
and from top to bottom)
ππ(ππ1,ππ2, ππ3,ππ4, ππ5,ππ6)
= ππ(ππ1)ππ(ππ2)ππ(ππ3) ππ(ππ4|ππ1, ππ2,ππ3)ππ(ππ5|ππ1, ππ2,ππ3, ππ4)ππ(ππ6|ππ1,ππ2, ππ3, ππ4,ππ5)
Assuming all nodes are binary, how many parameters does this model have?
6. What is the complexity of computing ππ(πΈπΈ = ππ) using variable elimination in the following
Bayesian network along the ordering (π΄π΄, π΅π΅, πΆπΆ,π·π·) The edges in the Bayesian network are π΄π΄ β
π΅π΅, π΄π΄ β πΆπΆ, π΅π΅ β πΆπΆ, πΆπΆ β π·π· ππππππ π·π· β πΈπΈ. [5 Points]
7. What is the complexity of computing ππ(πΈπΈ = ππ) using variable elimination in the following
Bayesian network along the ordering (π΅π΅, πΆπΆ,π·π·, π΄π΄). The edges in the Bayesian network are π΄π΄ β
π΅π΅, π΅π΅ β πΆπΆ, πΆπΆ β π·π· ππππππ π·π· β πΈπΈ. [5 Points]