Compute the average of P(A | B, ~E), P(C | B, ~E) and P(D | B, ~E) based on the 5 estimates computed in the above steps (for both logic sampling and likelihood weighting). Compare this average with the exact results produced by GeNIe.

Repeat Problem 1 with sample sizes of 400, 600, 800 and 1000.

Draw a graph where the x-axis shows the sample size while the y-axis shows the difference between the average probabilities (produced by both sampling techniques) and the exact probabilities produced by GeNIe.