1 Problem


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:

  • Christmas bag of M&Ms:
    • Green: 30%
    • Red: 40%
    • White: 30%

  • Standard bag of M&Ms:
    • Green: 20%
    • Orange: 19%
    • Blue: 19%
    • Red: 15%
    • Yellow: 14%
    • Brown: 13%

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?

2 Solving Problem


2.1 Baye’s Theorem

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)} \]

  • Event A = Red M&M
  • Event B = Standard Bag
  • P(A) = (0.5 * 0.4) + (0.5 * 0.15) = 0.275
  • P(B) = 0.5

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.