Probability and bayes theorem