Bayes' theorem
We can now calculate the temporary variables, according to Bayes' theorem: