Graphical Models:  Assignment 6
Due April 3, 2017

  1. Consider the fragment shown below of a Markov model for cold progression.
    1. Construct a junction tree for this BN with belief tables for the cliques and separators.
    2. Absorb both directions to obtain clique and separator marginals for each clique. 
    3. Enter a finding of sneezing on Day 2.  Absorb both directions to obtain clique and separator marginals for each clique.
Cold BN
  1. Agent Hydziz I. Dennity's contact classification model includes the PersonType, Gender, and HairLength random variables (as well as other random variables not considered in this assignment).  Agent Dennity defines a completely connected Bayesian network for these three random variables, as shown in the figure below, and assigns a uniform prior distribution for each of these local distributions: PersonType (1 distribution with four states), Gender given PersonType (4 distributions with 2 states each), and HairLength given PersonType and Gender (8 distributions with 2 states each).  What is the prior distribution for the probability that a contact is a government agent? 
DennityBN
  1. To estimate the probability distributions in his contact classification model, Agent Dennity collected a sample of 200 individuals whose type and features were known.  The sample was collected in such a way that Agent Dennity is confident in treating the observations as a random sample from the population of Depravians. The data he collected is provided here.  
    1. Find the posterior distribution for each of the local distributions in Agent Dennity's Bayesian network.  State the type of distribution and the parameters.
    2. Find the mean and variance of each probability in Agent Dennity's Bayesian network.
    3. Find a 90% interval for each probability.  That is, find the 5th and 95th percentile of each probability.  (Hint: You can do this with Excel's BETAINV function or R's qbeta function.)
  2. Repeat Problem 3, but assume that (i)  the gender distribution for government agents is the same as the gender distribution for dissidents; (ii) the hair length distribution is the same for all women; (iii) the hair length distributions are the same for male government agents, male government supporters, and apolitical males.  Compare these results to Problem 3 and comment on the differences.  If you were advising Agent Dennity on whether to estimate the probabilies using the method of Problem 3 or Problem 4, what would you recommend?  Justify your recommendation.