# Question: This exercise can be done individually or better yet as

This exercise can be done individually or, better yet, as a class project. For the pretzel packaging hypothesis test in Example 9.1 on page 342, the null and alternative hypotheses are, respectively, H0: μ = 454 g (machine is working properly) Ha: μ ≠ 454 g (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.8 g.

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 5% 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.

The net weights are normally distributed with a standard deviation of 7.8 g.

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 5% 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.

**View Solution:**## Answer to relevant Questions

As we mentioned on page 368, the following relationship holds between hypothesis tests and confidence intervals for one-mean z-procedures: For a two-tailed hypothesis test at the significance level α, the null hypothesis ...Two-tailed test, n = 17, and t = −2.733 a. Use Table IV in Appendix A to estimate the P-value. b. Based on your estimate in part (a), state at which significance levels the null hypothesis can be rejected, at which ...In each part, we have given the value obtained for the test statistic, z, in a one-mean z-test. We have also specified whether the test is two tailed, left tailed, or right tailed. Determine the P-value in each case and ...Refer to Problem 24. The following table provides last year's cheese consumption, in pounds, for 35 randomly selected Americans. a. At the 10% significance level, do the data provide sufficient evidence to conclude that last ...In the paper "Housing Values Near New Sporting Stadiums" (Land Economics, Vol. 81, Issue 3, pp. 379-395), C. Tu examined the effects of construction of new sports stadiums on home values. Suppose that you want to use a ...Post your question