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:
Claim: My bag of skittles has 50 whole pieces: 12 purple, 10 yellow, 13 green, 9 orange & 11 red.
The hypothesis being tested is:
H0: The candy colours are uniformly distributed
Ha: The candy colours are not uniformly distributed
observed | expected | O - E | (O - E)² / E |
12 | 11.000 | 1.000 | 0.091 |
10 | 11.000 | -1.000 | 0.091 |
13 | 11.000 | 2.000 | 0.364 |
9 | 11.000 | -2.000 | 0.364 |
11 | 11.000 | 0.000 | 0.000 |
55 | 55.000 | 0.000 | 0.909 |
.91 | chi-square | ||
4 | df | ||
.9233 | p-value |
The p-value is 0.9233.
Since the p-value (0.9233) is greater than the significance level (0.05), we fail to reject the null hypothesis.
Therefore, we can conclude that the candy colours are uniformly distributed.
Get Answers For Free
Most questions answered within 1 hours.