Suppose you have two different bags of M&Ms, one is a special Christmas edition while the other is a standard bag of M&Ms. The Christmas edition contains only red, green, and white M&Ms while the standard bag contains the full color offering. The distributions of drawing a given color are below:
You are given an M&M from each bag, but you do not know which M&M came from which bag. One M&M is Red and one is Green. What is the probability that the Red M&M came from the Standard bag?
In statistics and probability theory, the Bayes’ theorem (also known as the Bayes’ rule) is a mathematical formula used to determine the conditional probability of events. Essentially, the Bayes’ theorem describes the probability of an event based on prior knowledge of the conditions that might be relevant to the event.1
\[ P(A \mid B)=\frac{P(B \mid A) \cdot P(A)}{P(B)} \]
P(Red M&M \Standard Bag) = 0.15 * 0.275 / 0.5 = 0.0825
The probability that the Red M&M came from the Standard bag is 0.0825.