The chi-square goodness-of-fit test provides a method for performing a hypothesis test about the distribution of a variable that has c possible values. If the number of possible values is 2, that is, c = 2, the chi-square goodness-of-fit test is equivalent to a procedure that you studied earlier.
a. Which procedure is that? Explain your answer.
b. Suppose that you want to perform a hypothesis test to decide whether the proportion of a population that has a specified attribute is different from p0. Discuss the method for performing such a test if you use (1) the one-proportion z-test (page 456) or (2) the chi-square goodness-of-fit test.