This assignment will be collected at the beginning of Wednesday's class. Please bring a hard copy to turn in. Your assignments can be hand-written or typed.
- AIMA 13.8 (Note: Uppercase words are random variables, lowercase words are values)
- AIMA 13.15
- AIMA 14.4a (Note: "numerical semantics" means to use the mathematical definition of independence whereas "topological semantics" means to use the d-separation algorithm)
- Suppose that the joint probability distribution of
four variables {X, Y, Z, W} can be factorized as: p(x,y,z,w) =
p(x)p(y|x)p(z|x)p(w|y,z). Draw the Bayesian network that corresponds
to this factoring of the joint distribution. Use
d-separation to determine whether or
not each of the following independencies holds:
- X is independent of W given Y
- X is independent of W given Z
- X is independent of W given {Y, Z}
- Y is independent of Z given {X, W}
- Assume X, Y, Z, and W are binary random variables. How many probabilities must be specified
for the conditional distributions of the Bayesian network?
- Consider the WetGrass Bayesian network shown in
Figure 14.12a in AIMA. Assume we observe
WetGrass=false.
- Compute the exact posterior probabilities
p(Cloudy|WetGrass=false), p(Sprinkler|WetGrass=false), and
p(Rain|WetGrass=false).
- Show how to generate a sample using rejection
sampling. (In other words, illustrate the different steps required)
- Generate 10 samples using rejection sampling. Please show the 10 samples you generated. How many
samples do you get where WetGrass=false and how many do
you have to reject? Estimate posterior probabilities for
Cloudy, Sprinkler, and Rain based on those 10
samples.
- Show how to generate a sample
using likelihood weighting
- Generate 10 samples using likelihood
weighting. Show the weights for each sample. Estimate
posterior probabilities for Cloudy, Sprinkler, and Rain
based on those 10 samples.
Note: To generate a random double between [0,1] you can either use Java (java.lang.Math or java.util.Random) or you can find an online random number generator.
|