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