Are candy color pieces uniformly distributed?
In a 2 ounce bag of Skittles, there are green, red, yellow, orange and purple pieces. Ideally, each bag should have the same amount of pieces for each color (so colors/categories are equally likely.)
PROJECT: Pick (or Google a picture of) a bag of candy (Skittles, M&Ms or Mike & Ikes, etc) that fulfills the requirements listed below and perform a goodness of fit test for uniform distribution (use a 0.05 significance level.)
Requirements
Please include in your project:
The hypothesis being tested is:
H0: The candy colors are uniformly distributed
Ha: The candy colors are not uniformly distributed
observed | expected | O - E | (O - E)² / E |
6 | 10.000 | -4.000 | 1.600 |
15 | 10.000 | 5.000 | 2.500 |
9 | 10.000 | -1.000 | 0.100 |
12 | 10.000 | 2.000 | 0.400 |
8 | 10.000 | -2.000 | 0.400 |
50 | 50.000 | 0.000 | 5.000 |
5.00 | chi-square | ||
4 | df | ||
.2873 | p-value |
The chi-square test statistic is 5.00.
The p-value is 0.2873.
Since the p-value (0.2873) is greater than the significance level (0.05), we fail to reject the null hypothesis.
Therefore, we have insufficient evidence to conclude that the candy colors are uniformly distributed.
Get Answers For Free
Most questions answered within 1 hours.