The Bayes’ theorem is the following equation about the conditional probability of events:
is the conditional probability of A given B. It is also called the posterior probability. is the conditional probability of B given A. and are known as prior probability or marginal probability