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,
H0:μ=454g (machine is working properly)
H0:μ454g (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 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.

Short Answer

Expert verified

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 0.05

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.

Step by step solution

01

Part (a) Step 1. Given information

It is given that the null and alternative hypotheses are stated as follows:
H0:μ=454g(Machine is working properly.)
Versus
H0:μ454g (Machine is not working properly)
Here the mean net weight of all bags of pretzels package is given asμ .
Also it is given that the net weights are normally distributed with a standard deviation of7.8g.
That means σ=7.8g

02

Part (a) Step 2. Assuming that the null hypothesis is true, simulate 100 samples of 25 net weights each. 

Using MINITAB, we simulate 100 samples of 25 net weights each by assumingH0is true as follows:
Step 1: CalcRandom dataNormal
Step 2: enter the given data as follows:
Step 3: Click OK.
From the above three steps, we simulate 100 samples of size in the columns, C1 to C100.

03

Part (b) Step 1. Given information

It is given that the null and alternative hypotheses are stated as follows:
H0:μ=454g(Machine is working properly.)
Versus
H0:μ454g(Machine is not working properly)
Here the mean net weight of all bags of pretzels package is given asμ .
Also it is given that the net weights are normally distributed with a standard deviation of7.8g.
That means σ=7.8g

04

Part (b) Step 2. 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. 

Here we have informed that the hypothesis test is performed at5% significance level. That means, we have
Thus, the probability of rejecting the null hypothesis is0.05. That means,
Therefore for 100 samples,the expected number of samples are rejected, is0.05

05

Part (c) Step 1. Given information

It is given that the null and alternative hypotheses are stated as follows:
H0:μ=454g(Machine is working properly.)
Versus
H0:μ454g(Machine is not working properly)
Here the mean net weight of all bags of pretzels package is given asμ.
Also it is given that the net weights are normally distributed with a standard deviation of7.8g.
That means σ=7.8g

06

Part (c) Step 2. Of the 100 samples obtained in part (a), determine the number that lead to rejection of the null hypothesis. 

Using MINITAB, we obtain the95% confidence interval for the 100 samples simulated in part
(a), as follows:
1 Store the data in a column named Cadmium level.
2 Choose Stat ? Basic Statistics ?1-Sample Z. .
3 Select the Samples in columns option button.
4 Click in the Samples in columns text box and specify C1-C2.
5 Click in the Standard deviation text box and type 78
6 Click the Options ... button.
7 Type 95 in the Confidence level text box.
8 Click the arrow button at the right of the Alternative drop-down list box and select greater than.
9 Click OK twice.

As per the requirement, we observe the number of samples for which the 95%confidence interval does not contain the value of mean

Therefore, we obtained the number of samples that lead to reject the null hypothesis is 3 .
07

Part (d) Step 1. Given information

It is given that the null and alternative hypotheses are stated as follows:
H0:μ=454g(Machine is working properly.)
Versus
role="math" localid="1651256756555" H0:μ454g(Machine is not working properly)
Here the mean net weight of all bags of pretzels package is given asμ .
Also it is given that the net weights are normally distributed with a standard deviation of7.8g.
That means σ=7.8g

08

Part (d) Step 2. Compare your answers from parts (b) and (c), and comment on any observed difference. 

From the parts (b) and (c), we observe that the expected value of the number of samples that lead to reject the null hypothesis is greater as compared to the observed value.
Therefore, we fail to reject the null hypothesis and hence we conclude that the machine is working properly.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Testing Claims About Proportions. In Exercises 9–32, test the given claim. Identify the null hypothesis, alternative hypothesis, test statistic, P-value, or critical value(s), then state the conclusion about the null hypothesis, as well as the final conclusion that addresses the original claim. Use the P-value method unless your instructor specifies otherwise. Use the normal distribution as an approximation to the binomial distribution, as described in Part 1 of this section.

Medication Usage In a survey of 3005 adults aged 57 through 85 years, it was found that 87.1% of them used at least one prescription medication (based on data from “Use of Prescription Over-the-Counter Medications and Dietary SupplementsAmong Older Adultsin the United States,” by Qato et al., Journal of the American Medical Association,Vol. 300,No. 24). Use a 0.01 significance level to test the claim that more than 3/4 of adults use at least one prescription medication. Does the rate of prescription use among adults appear to be high?

Technology. In Exercises 9–12, test the given claim by using the display provided from technology. Use a 0.05 significance level. Identify the null and alternative hypotheses, test statistic, P-value (or range of P-values), or critical value(s), and state the final conclusion that addresses the original claim.

Body Temperatures Data Set 3 “Body Temperatures” in Appendix B includes 93 body temperatures measured at 12 ²³ on day 1 of a study, and the accompanying XLSTAT display results from using those data to test the claim that the mean body temperature is equal to 98.6°F. Conduct the hypothesis test using these results.

Critical Values. In Exercises 21–24, refer to the information in the given exercise and do the following.

a. Find the critical value(s).

b. Using a significance level of = 0.05, should we reject H0or should we fail to reject H0?

Exercise 18

Confidence interval Assume that we will use the sample data from Exercise 1 “Video Games” with a 0.05 significance level in a test of the claim that the population mean is greater than 90 sec. If we want to construct a confidence interval to be used for testing the claim, what confidence level should be used for the confidence interval? If the confidence interval is found to be 21.1 sec < μ< 191.4 sec, what should we conclude about the claim?

P-Values. In Exercises 17–20, do the following:

a. Identify the hypothesis test as being two-tailed, left-tailed, or right-tailed.

b. Find the P-value. (See Figure 8-3 on page 364.)

c. Using a significance level of = 0.05, should we reject H0or should we fail to reject H0?

The test statistic of z = -1.94 is obtained when testing the claim that p=38 .

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free