The theorem gives the probability Bj, when the probability A is known. The quantity Pr(Bj) is called the a priori probability, and Pr(Bj|A) the a posteriori probability. The relationship between prior and posterior probabilities is given by the formula