In: Statistics and Probability
A manufacturer of colored candies states that 13% of the candies in a bag should be brown, 14% yellow, 13% red, 24% blue, 20% orange, and 16% green. A student randomly selected a bag of colored candies. He counted the number of candies of each color and obtained the results shown in the table. Test whether the bag of colored candies follows the distribution stated above at the alpha=0.05 level of significance.
Determine the null and alternative hypotheses.
Compute the expected counts for each color.
Color | Observed Count | Expected Count |
Brown | 63 | |
Yellow | 64 | |
Red | 56 | |
Blue | 59 | |
Orange | 81 | |
Green | 63 |
What is the test statistic?
What is the P-value of the test?