Adding a function to compute Bayes’s theorem.