

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The third homework assignment for cs498, a graduate course in computer science at the university of illinois at urbana-champaign. The assignment covers topics in bayesian networks, graphical models, probabilistic inference, and undirected graphical models. Students are required to complete various problems related to drawing bayesian networks, calculating probabilities, and proving theoretical results.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


(a) Draw the Bayesian network that describes these relationships. (b) Draw a triangulated version of this network. Is it moralized? (c) In this graph, are are Homer, M arge, d-separated by Bart? (d) Are Homer, M arge, d-separated by Bart, Lisa, M aggie? (e) Are Homer, M arge, d-separated by P at, Bart, Lisa, M aggie? (f) Are Homer, M arge independent? (g) Are Homer, M arge independent given John?
(a) Calculate the size of the table P (A, B, C, D = d 1 ). (b) In the calculation P (A|E = e 1 ) the variables have been marginalized in the following order: B, C, D, F, G, H. Calculate the size of each table produced in the process, and sum the sizes up. (c) Find an elimination order that yields a smaller sum of table sizes than the one you achieved in 1b. (d) Construct a junction tree for this network.
(a) Calculate P (A|D = y), P (B|D = y), P (C|D = y).
A
B
C
D
E
F G^ H
Figure 1: Bayesian network.
B y n C y n D y,y y,n n,y n,n y 0.2 0.6 y 0.1 0.5 y 0.3 0.9 0.2 0. n 0.8 0.4 n 0.9 0.5 n 0.7 0.1 0.8 0.
P (B|A) P (C|A) P (D|B, C)
Figure 2: BN Potentials
(b) Calculate P (B|C = y).
A,B,C f^ (A, B)f^ (B, C) =^
A,B (f^ (A, B)^
C f^ (B, C))), provided the factors are non-negative (which holds for potentials representing probability distributions). A similar commutativ- ity holds for the max function, namely, maxA,B,C f (A, B)f (B, C) = maxA,B (f (A, B) maxC f (B, C))). Create an algorithm for finding the most likely configuration of a set of random variables, C, given some evidence, E, and marginalizing over the rest of the random variables, R. This is called MPE (Most Probable Explanation), and is defined formally as argmaxC P r(C, E, R). Prove that your algorithm is correct.
(a) Represent this problem with a generative model Bayesian network (i.e., an object is at a position and size with some prior, and generates pixel values with some distribution as a result). (b) Download the Bayes Net Toolbox for Matlab (from Kevin Murphy: http://www.ai.mit.edu/ mur- phyk/Software/BNT/bnt.html) and use any sampling algorithm from those in the package (e.g.,