Step 1 :The problem provides the observed counts of different colors of m&m's and the claimed percentages for each color. The total number of m&m's observed is 117. The observed counts and claimed percentages are as follows: observed = [24, 13, 20, 14, 21, 25] and percentages = [0.13, 0.14, 0.13, 0.24, 0.2, 0.16].
Step 2 :We need to calculate the expected counts for each color. The expected count can be calculated by multiplying the total number of observations by the claimed percentage for each color. The expected counts are: expected = [15.21, 16.38, 15.21, 28.08, 23.4, 18.72].
Step 3 :Next, we calculate the test statistic using the formula for a chi-square goodness-of-fit test: \(\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i}\), where \(O_i\) is the observed frequency and \(E_i\) is the expected frequency.
Step 4 :Substituting the observed and expected counts into the formula, we get \(\chi^2 = 16.698733602579757\).
Step 5 :Finally, we round the test statistic to three decimal places. The value of the test statistic is \(\boxed{16.699}\).