Surname 5
Using the data in the above table, conduct a chi square goodness of fit test to determine whether
the sample does provide a good match to the known age distribution of Toronto women. Use the
0.05 level of significance.
Hypothesis:
H0: The age distribution of respondents in the sample is the same as the age distribution of
Toronto women, based on the Census.
H1: The age distribution of respondents in the sample differs from the age distribution of women
in the Census.
The frequencies of occurrence of women in each age group are the observed values Oi presented
in the middle column of table above. There are k = 3 categories into which the data has been
grouped so that i = 1; 2; 3
Suppose the age distribution of women in the sample conforms exactly with the age distribution
of all Toronto women as determined from the Census. Then the expected values for each
category, Ei, can be determined. With these observed and expected numbers of cases, the
hypotheses can be rewritten as
H0 : Oi = Ei
H1 : Oi ≠E
i
The test
For these hypotheses, the test statistic is
Χ
2
=
, with the degrees of freedom given as d=k-1