Statistical Inference for EveryoneXYZ Homework Edition

⇩ Download ▾

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.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.