Idea
Bayes' theorem gives a mathematical rule for inverting conditional probabilities, allowing us to find the probability of a cause given its effect.
Theorem
The theorem is stated mathematically as the following equation:
And can be simply proven from the definition of conditional probability: