Chapter 8: Q. 9.94 (page 382)
Class Project: Quality Assurance. This exercise can be don individually or, better yet, as a class project. For the pretzel-packagin hypothesis test in Example 9.1 on page 352, the null and alternativ hypotheses are, respectively,
(machine is working properly)
(machine is not working properly).
where is the mean net weight of all bags of pretzels packaged. The net weights are normally distributed with a standard deviation of 7.8g.
a. Assuming that the null hypothesis is true, simulate 100 samples of 25 net weights each.
b. Suppose that the hypothesis test is performed at the significance level. Of the 100 samples obtained in part (a), roughly how many would you expect to lead to rejection of the null hypothesis? Explain your answer.
c. Of the 100 samples obtained in part (a), determine the number that lead to rejection of the null hypothesis.
d. Compare your answers from parts (b) and (c), and comment on any observed difference.
Short Answer
Part (a). We simulate 100 samples of size in the columns, C1 to C100.
Part (b). For 100 samples,the expected number of samples are rejected, is
Part (c). The number of samples that lead to reject the null hypothesis is 3 .
Part (d). The expected value of the number of samples that lead to reject the null hypothesis is greater as compared to the observed value.