68.6k views
5 votes
A company claims they produce their mixed bag of candies so that, of the candies in the bag, 20 percent are dark chocolate, 60 percent are milk chocolate, and 20 percent are white chocolate. In a random sample of candies of size 50, the counts are as follows: 6 dark, 32 milk, and 12 white. Assuming the conditions for inference are met, what is the test statistic for a chi-square goodness-of-fit test to investigate whether the distribution of the sample is consistent with the company’s claim?

1 Answer

5 votes

Answer: D: x^2=(6-10)^2/10 + (32-30)^2/30 + (12-10)^2/10

Step-by-step explanation: The formula for the chi-squared test is summation: (observed-expected)^2/expected. The observed value in this case would be the counts we received from the random sample (6 dark, 32 milk, 12 white). The expected value can be calculated by taking the percentages given in the problem and multiplying them by 50 (0.20x50=10 dark , 0.60x50=30 milk , 0.20x50=10 white).

User JunYoung Gwak
by
3.8k points