In this section, we shall learn the Variable Elimination algorithm. In the
VarElim_asia.ipynb IPython Notebook, we shall use the Asia network to understand the details of this algorithm.
The Asia network (http://www.bnlearn.com/bnrepository/#asia) is a toy Bayesian network used for patient diagnosis. The network tries to elicit the possibility of lung cancer or tuberculosis based on factors such as travel to Asia, smoking history, and X-ray results. Further details on the Asia network can be found at http://www.norsys.com/tutorials/netica/secA/tut_A1.htm.
The following is the diagram of the Asia network (courtesy of http://www.bnlearn.com/bnrepository/asia/asia.png):
The goal of this code snippet is to compare ...