Sign In
In order to make a decision, test the hypothesis. The null hypothesis is a statement of equality to be tested. The alternative hypothesis is a statement of inequality that is the complement of the null hypothesis. In order to decide whether or not to reject the null hypothesis, find the critical region.
Hypotheses: H_0: μ = 20 and H_a: μ ≠20
Claim: μ = 20
Decision: Reject the H_0.
Conclusion: The manufacturer should not place the label on the package.
Explanation: See solution.
In order to decide whether the manufacturer should place a label on the package promising exactly 20 chips on every cookie, we need to test the appropriate hypothesis. Let's perform the following steps.
Let's do these steps one at a time.
A hypothesis test is used to asses a specific claim about the mean of a population.
| Typical Claims About the Mean | ||
|---|---|---|
| The mean is equal to a specific value. | The mean is greater than a specific value. | The mean is less than a specific value. |
There are two parts to a hypothesis test — the null hypothesis and the alternative hypothesis.
A claim can be part of the null or alternative hypothesis. With the above facts in mind, let's consider the problem given in the exercise.
|
Should the manufacturer place a label on the package promising exactly 20 chips on every cookie? |
Notice that the question contains equality, since it considers the exact number of chocolate chips. Therefore, we can relate the claim with the null hypothesis. The alternative hypothesis will be the complement.
| Null Hypothesis | Alternative Hypothesis |
|---|---|
| The mean is equal to 20 chips on every cookie (claim). H_0:μ = 12 |
The mean is not equal to 20 chips on every cookie. H_a:μ ≠12 |
We want to decide whether the manufacturer should place a label on the package, therefore we need to check whether to reject the null hypothesis. Let's start by finding the critical region. The critical region is identified depending on the desired significance level α and the inequality sign of the alternative hypothesis. These are known as tests of significance.
In our case, the alternative hypothesis is μ ≠20, so this is a two-tailed test. We are not told at what percent of significance to test, so we can assume our own significance level. Let it be 1 %, since the lower it is, the more sure we are about our decision.
Significance level: 1 %
While we are testing at 1 % significance, so we need to identify the z-value that corresponds with lower and upper 0.5 % of the distribution. To find it, we will use the calculator. We push 2nd, then VARS, and choose the third option, invNorm(.
Since we want to identify the z-value corresponding to the lower and upper 0.5 % of the distribution, we have to consider two values: 0.005 and 0.995. Having entered the first value, we push ENTER until we get a result.
Let's repeat the procedure for the second value. Once again we push 2nd, then VARS, and choose the third option. Then we enter the second value 0.995, and push ENTER until we get a result.
We are ready to state the critical region.
The obtained critical region is the range of values that suggests a significant enough difference to reject the null hypothesis.
We can obtain the z-statistic for the sample data using the following formula. z = x - μ/ssqrt(n) We consider a sample of 40 random cookies, therefore the sample size n = 40. We stated that the null hypotheses is H_0 : μ = 20, which consequently means μ = 20 in the formula. However, we do not know yet the sample mean and the standard deviation.
Let's start by finding the sample mean. The mean of a data set is the sum of the values divided by the total number of values in the set. Let's start by calculating how many times each of the values repeat in the data set.
| Value | Frequency |
|---|---|
| 17 | 6 |
| 18 | 6 |
| 19 | 12 |
| 20 | 8 |
| 21 | 7 |
| 22 | 1 |
This enables us to quickly find the sum of the values in the set. 6 * 17 + 6 * 18 + 12 * 19 + 8 * 20 + 7 * 21 + 1 * 22 = 767 There are 40 values in our set, so we have to divide the sum by 40. x = 767/40= 19.175
We can move on to finding the standard deviation. The standard deviation of a set of data is the average amount by which each individual value deviates or differs from the mean. Standard Deviation sqrt((x_1-x )^2+(x_2-x )^2+... +(x_n-x)^2/n) In the above formula, x_1, ... ,x_n are the values of the set of data, x is the sample mean, and n is the number of values. Let's apply the formula to each value in the set.
| x_n | x_n-x | (x_n-x)^2 |
|---|---|---|
| 17 | 17- 19.175=- 2.175 | (- 2.175)^2 ≈ 4.73 |
| 18 | 18- 19.175=- 1.175 | (- 1.175)^2 ≈ 1.38 |
| 19 | 19- 19.175=- 0.175 | (- 0.175)^2 ≈ 0.03 |
| 20 | 20- 19.175=0.825 | 0.825^2 ≈ 0.68 |
| 21 | 21- 19.175=1.825 | 1.825^2 ≈ 3.33 |
| 22 | 22- 19.175=2.825 | 2.825^2 ≈ 7.98 |
We already know how many times each value repeats in the data set, therefore we are ready to calculate the standard deviation.
Substitute values
We substitute all obtained values into the formula and find the z-statistic.
Substitute values
Subtract term
a/b/c= a * c/b
Use a calculator
Round to 2 decimal place(s)
After identifying the critical region and the z-statistic, we can decide whether to reject or fail to reject the null hypothesis.
|
If the statistic falls within the critical region, the null hypothesis H_0 is rejected. |
Let's compare the obtained critical region with the z-statistic value.
The z-statistic falls within the critical region, therefore we reject the null hypothesis H_0. Therefore, the manufacturer should not place the label on the package.