Bayes' theorem

Bayes' theorem is a theorem used to calculate the probability of something being true, false, or a certain way. Bayes' theorem is an extension of logic. It expresses how a belief should change to account for evidence. Bayes' theorem is as follows:

P(A|B) = P(B|A) * P(A) / P(B)