Bayes’ theorem is a rule of probability theory that can be used to calculate the probability of an event given prior knowledge and new evidence. It is as follows:
\(P(A|B) = \frac{P(B|A)P(A)}{P(B)}\)
Notice that given \(P(B|A)\) (and of course \(P(B)\) and \(P(A)\)), you can deduce \(P(A|B)\), which may not be information you have access to otherwise.