Bayesian Artificial Intelligence, Second Edition