In the 2008 GSS, 620 of 809 males and 835 of 978 females indicated a belief in life after death.
a. Construct a 2 × 2 contingency table relating gender of respondent (SEX, categories male and female) as the rows to belief about life after death (POSTLIFE, categories yes and no) as the columns.
b. Find the four expected cell counts for the chi-squared test. Compare them to the observed cell counts, identifying cells having more observations than expected.
c. The data have X2 = 22.36. Set up its calculation by showing how to substitute the observed and expected cell counts you found into its formula.