Probability, random variables, and distributions - Probability rules and Bayes' theorem