There are three cards: one red on both sides, one red and blue, one blue on both sides. A card is drawn at random and its visible face is red. What is the probability the other face is red?
Bayes' theorem inverts a conditional probability: it gives the probability \(P(B_j\mid A)\) of a cause \(B_j\) given an observed effect \(A\), from the probability of the effect given that cause.