Bayes' Theorem says that if event B has a non-zero probability of occurring, then when it does occur, we can compute the probability that event A also happened as follows:

• $P(A|B)=\frac{P(B|A).P(A)}{P(B)}$
This gives a sort of "inverse probability" calculation.