5.3 MM's
From various sources I have found the fraction of chocolate M&Ms candies are red. The sources found are the following:
- Source A: 28% of M&Ms are red, 20% of M&Ms are orange.
- Source B: 20% of M&Ms are red, 10% of M&Ms are orange
- Source C: 13% of M&Ms are red, 21% of M&Ms are orange.
From actually counting of a bag of M&Ms I found the following data:
- 3 red M&Ms in 17 total ()
The question is, which source can we trust the most? Here we follow Bayes' recipe,
- Specify the prior probabilities for the models being considered
- Write the top of Bayes' Rule (i.e. likelihood prior) for all models being considered
- Add these values for all models, to get
- Divide each of the values by this sum, , to get the final probabilities
So we are most confident in Source B, although none of them really changed by a lot - there is no clear winner.
Updating with other data
- 5 orange M&Ms in 16 total ()
Again, we follow the same recipe, starting with out posterior probabilities from above as our starting prior probabilities - they are prior to the new data.
- Specify the prior probabilities for the models being considered
- Write the top of Bayes' Rule (i.e. likelihood prior) for all models being considered
- Add these values for all models, to get
- Divide each of the values by this sum, , to get the final probabilities
Given this new data, we update our state of knowledge, and we're much more confident that Source C is the best one. It is clear that Source B is unlikely, with a probability of only about 6.5%. We could extend this example with more data, and more models if we'd like.
Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.