Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/ib/paper-3/8c/b/solution

Use the Pearson chi-squared test of homogeneity for two multinomial samples. Under equal preference distributions, estimate the common probabilities from pooled counts, giving . With row totals forty and sixty, the expected table is
The Pearson chi-squared statistic for contingency tables is
There are degrees of freedom, after fitting the common category probabilities. All expected counts exceed five. Thus
At five percent, do not reject the common preference distribution. These data are consistent with that hypothesis; failure to reject does not prove equality. This conclusion differs from part a because a common nonuniform distribution, especially an overall preference for chocolate, is allowed here.

New to topics? Read the docs here!