Bayesian Networks and Causal Inference