Bayes Theorem in Artificial Intelligence