0% found this document useful (0 votes)
28 views2 pages

M&Ms Project!!

statistics project

Uploaded by

breagabe100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

M&Ms Project!!

statistics project

Uploaded by

breagabe100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

‭Math 140 – Prof.

Simpson‬

‭Name: _____Gabriel Brea_________________‬

‭ ccording to their website, Mars Inc. (the maker of M&M’s) claims that each package of‬
A
‭M&M’s should have the following distribution:‬

‭ 3% Brown‬
1
‭14% Yellow‬
‭13% Red‬
‭24% Blue‬
‭20% Orange‬
‭16% Green‬

‭ ne way one can determine if the Mars Inc. claim is true is to sample M&M’s and to‬
O
‭perform a goodness-of-fit test. This test will help determine if any differences between‬
‭our observed measurements from our sample and our expected values are simply due‬
‭to chance (sample error) or some other reason.‬

‭1. Obtain a sample of M&Ms.‬

‭ . Determine the number of M&Ms in your sample and the number of M&Ms‬
2
‭of each color. List your results in the spaces below:‬

‭ rown‬
B ‭ _9_____‬
_
‭Yellow‬ ‭____6___‬
‭Red‬ ‭___7____‬
‭Blue‬ ‭___15____‬
‭Orange‬ ‭___10____‬
‭Green‬ ‭__9_____‬
‭Total‬ ‭_____56__‬

‭3. Determine the expected frequencies:‬

‭ rown‬
B ‭ ___7.28___‬
_
‭Yellow‬ ‭_____.7.84__‬
‭Red‬ ‭____7.28___‬
‭Blue‬ ‭______11.20_‬
‭Orange‬ ‭____11.20___‬
‭Green‬ ‭_____8.96`__‬
‭4. Perform the‬‭χ‬‭2‬‭goodness-of-fit using‬‭α‬‭=‬‭.05‬‭level of significance. Make sure to write‬
‭ ut your hypotheses and make a conclusion once the test has been performed.‬
o
‭Rejecting (or failing to reject) the null hypothesis is‬‭not‬‭enough.‬
‭H0= the M&M distribution in the sample matches Mars.inc s claim of how the colors are‬
‭to be distributed‬
‭Ha: the M&M color distribution in the sample does not match the color distribution claim‬
‭from Mars inc.‬

‭color‬ ‭brown‬ ‭yellow‬ ‭red‬ ‭blue‬ ‭Orange‬ ‭green‬

‭ bserved‬
O ‭9‬ ‭6‬ ‭7‬ ‭15‬ ‭10‬ ‭9‬
‭frequency‬

‭ xpected‬
E .‭13(56) =‬ .‭14(56)=‬ .‭13(56) =‬ .‭20(56)=‬ .‭20(56)=‬ .‭16(56)=‬
‭frequency‬ ‭7.28‬ ‭7.84‬ ‭7.28‬ ‭11.2‬ ‭11.2‬ ‭8.96‬

‭(O-E)‬ ‭1.72‬ ‭-1.84‬ ‭-.28‬ ‭3.8‬ ‭-1.2‬ ‭.04‬

‭[(O-E)^2]/E‬ [‭1.72^2]/‬ [‭(-1.84)^2]/‬ [‭(-.28)^2]/‬ [‭(3.8)^2]/‬ [‭(-1.2)^2]/‬ [‭(.04)^2]/‬


‭7.28=.406‬ ‭7.84=0.432‬ ‭7.28=0.01‬ ‭11.2=1.289‬ ‭11.2=0.129‬ ‭8.96=‬
‭0.0179‬
‭ est statistic: .406+.432+.01+1.289+.129+.0179=2.2839‬
T
‭With a 5 degrees of freedom and at a significance level of a=.05, the value on the chi squared‬
‭probability table is 11.070‬
‭We fail to reject the null hypothesis as the test statistic does not fall within the right tail (past‬
‭11.070).‬
‭Conclusion: we have reason to believe that the color distribution of M&M’s in our sample is a‬
‭reasonable fit relative to the distribution that was claimed by MARS.‬

You might also like