Method of approximation for variable elimination implemented in python
Randomly choosing A,C or D then sampling based on the posterior distribution
of their Markov blanket. The convergence of the sampling procedure is shown
in the figure below. The red line represents the value gained from variable elimination for