in probability theory , bayes ' theorem relates the conditional and marginal probabilities of two random events .
bayes ' theorem relates the conditional and marginal probabilities of two random events .