How to solve Bayes’ theorem problems with a tree diagram
If you roll a six, would that make you more likely to think you picked a weighted die? Bayes’ theorem lets us put a number on that change. We’ll work through the calculation and see the same answer in a tree diagram.
Reverse the conditional probability
The notation means the probability of given . It can be different from , which switches the roles of the two events. If and , Bayes’ theorem gives
The numerator is the probability that both events happen. The denominator is the probability of the event we already know happened, so it keeps only the outcomes we’re conditioning on.
Example: Which die was more likely to roll the six?
Choose one of two dice at random. One is fair and rolls a six with probability . The other is biased and rolls a six with probability . You roll the chosen die once and get a six. We want .
Multiply along each path. The biased die and a six has probability . The fair die and a six has probability . A six can come from either die, so add those two probabilities.
Compare the biased path with all paths that end in six
Now we can divide the probability of the biased-and-six path by the probability of rolling a six.
Before the roll, each die was equally likely. After seeing a six, the biased die is more likely because it rolls six three times as often as the fair die does. The tree keeps track of that difference with probabilities on its branches. All the outcomes other than six can share one branch for each die.