Chapter 7: Problem 8
In Exercises 7.5 to 7.8 , the categories of a categorical variable are given along with the observed counts from a sample. The expected counts from a null hypothesis are given in parentheses. Compute the \(\chi^{2}\) -test statistic, and use the \(\chi^{2}\) -distribution to find the p-value of the test. $$ \begin{array}{l} \hline \begin{array}{l} \text { Category } \\ \text { Observed } \\ \text { (Expected) } \end{array} & \begin{array}{c} \mathrm{A} \\ 38(30) \end{array} & \begin{array}{c} \mathrm{B} \\ 55(60) \end{array} & \begin{array}{c} \mathrm{C} \\ 79(90) \end{array} & \begin{array}{c} \mathrm{D} \\ 128(120) \end{array} \\ \hline \end{array} $$