Calculates the posterior probability using Bayes' theorem.
The prior probability of A (i.e. P(A))
The probability of B given A (i.e. P(B|A))
The probability of B given not A (i.e. P(B|!A))
Calculates the posterior probability using Bayes' theorem.