Test of Goodness of Fit
Test of Goodness of Fit
(vi) From α and k − 1, a critical value is determined from the chi-square table.
(vii) Reject H0 if χ 2 is larger than the critical value (right-tailed test).
Example 1: Researchers have conducted a survey of 1600 coffee drinkers asking how much
coffee they drink in order to confirm previous studies. Previous studies have indicated that
72% of Americans drink coffee. The results of previous studies (left) and the survey (right)
are below. At α = 0.05, is there enough evidence to conclude that the distributions are the
same?
(i) The null hypothesis H0:the population frequencies are equal to the expected
frequencies (to be calculated below).
(ii) The alternative hypothesis, Ha: the null hypothesis is false.
(iii) α = 0.05.
(iv) The degrees of freedom: k − 1 = 4 − 1 = 3.
(v) The test statistic can be calculated using a table:
Example 2:
A department store, A, has four competitors: B, C, D, and E. Store A hires a consultant to
determine if the percentage of shoppers who prefer each of the five stores is the same. A survey
of 1100 randomly selected shoppers is conducted, and the results about which one of the stores
shoppers prefer are below. Is there enough evidence using a significance level α = 0.05 to
conclude that the proportions are really the same?
(i) The null hypothesis H0:the population frequencies are equal to the expected frequencies
(to be calculated below).
(ii) The alternative hypothesis, Ha: the null hypothesis is false.
(iii) α = 0.05.
(iv) The degrees of freedom: k − 1 = 5 − 1 = 4.
(v) The test statistic can be calculated using a table:
(vii) Is there enough evidence to reject H0? Since χ 2 ≈ 14.618 > 9.488, there is enough
statistical evidence to reject the null hypothesis and to believe that customers do not
prefer each of the five stores equally.