Posterior probability is calculated using Bayes' Theorem. The formula is:
\[ P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)} \]
Where: - \( P(A|B) \) is the posterior probability of event A occurring given that B is true. - \( P(B|A) \) is the likelihood of observing event B given that A is true. - \( P(A) \) is the prior probability of event A. - \( P(B) \) is the probability of observing event B.