Bayesian Networks and Influence Diagrams: A Guide to