in R please provide the code for the following Goodness of Fit Test: a. The distribution of the colors in any bag of regular skittles should be approximately uniformly distributed. There are 5 flavors/colors in a regular mix bag of skittles; yellow, orange, green, purple, and red. b. Many experiments have been done to count the number of skittles in each color from a variety of package sizes. One such experiment has the following count information: Yellow Orange Green Purple Red 575 602 590 610 588 c. Conduct a chi-squared goodness of fit test in R to determine if the experiment confirms that the distribution of skittles colors is uniform. i. Create vectors of the observed counts and expected probability (p as it is described in the help for chisq.test function) ii. Use the chisq.test function to conduct the test iii. Clearly state the hypotheses, conclusion, and justification
in R please provide the code for the following Goodness of Fit Test:
a. The distribution of the colors in any bag of regular skittles should be approximately uniformly distributed. There are 5 flavors/colors in a regular mix bag of skittles; yellow, orange, green, purple, and red.
b. Many experiments have been done to count the number of skittles in each color from a variety of package sizes. One such experiment has the following count information:
Yellow Orange Green Purple Red
575 602 590 610 588
c. Conduct a chi-squared goodness of fit test in R to determine if the experiment confirms that the distribution of skittles colors is uniform.
i. Create vectors of the observed counts and expected probability (p as it is described in the help for chisq.test function)
ii. Use the chisq.test function to conduct the test
iii. Clearly state the hypotheses, conclusion, and justification
Step by step
Solved in 3 steps with 1 images