Login
📚 Statistical Inference for Everyone
Chapters ▾

5.3 MM's

From various sources I have found the fraction of chocolate M&Ms candies are red. The sources found are the following:

From actually counting of a bag of M&Ms I found the following data:

The question is, which source can we trust the most? Here we follow Bayes' recipe,

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

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.

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.