HYPOTHESIS TESTING Z Test 1
HYPOTHESIS TESTING Z Test 1
Situation B
A chemist invents an additive to increase the life of an automobile battery. The mean
lifetime of the automobile battery without the additive is 36 months.
Ho: The mean lifetime of the automobile battery without the additive is not equal to 36
months
µ ≠ 36
Ha: The mean lifetime of the automobile battery without the additive is equal to 36 months
µ = 36
What are the two errors that can be found while performing the null Hypothesis test?
While performing the null hypothesis test there is a possibility of occurring two types of
errors,
• Type-1: The type-1 error. It is the rejection of the true null hypothesis.
• Type-2: The type-2 error. The false null hypothesis is not rejected.
Claim
When a researcher conducts a study, he or she is generally looking for evidence to
support a claim. Therefore, the claim should be stated as the alternative hypothesis, or
research hypothesis.
A claim, though, can be stated as either the null hypothesis or the alternative hypothesis;
however, the statistical evidence can only support the claim if it is the alternative
hypothesis. Statistical evidence can be used to reject the claim if the claim is the null
hypothesis.
These facts are important when you are stating the conclusion of a statistical study.
3. Calculate the test statistic: Gather sample data and calculate a test
statistic where the sample statistic is compared to the parameter value.
The test statistic is calculated under the assumption the null hypothesis
is true and incorporates a measure of standard error and assumptions
(conditions) related to the sampling.
For example, the test statistic for a Z-test is the Z-statistic, which has
the standard normal distribution under the null hypothesis. Suppose
you perform a two-tailed Z-test with an α of 0.05, and obtain a Z-
statistic (also called a Z-value) based on your data of 2.5. This Z-value
corresponds to a p-value of 0.0124.
We will follow these six steps for the remainder of this Lesson. In the future
Lessons, the steps will be followed but may not be explained explicitly.
H0: µ = 8 kg
Ha: µ ≠ 8 kg
0.01/2 = 0.005
(find 0.005 on z-table, since there is no value of 0.005 on column C,
page 329, we must find a value that is lower than 0.005. We have a
value of 0.0049)
Find horizontally the Z critical value using 0.0049 on the table, page
329.
Z(crit) = ±2.58
x̄ −µ 7.8−8
Z= Z= = -2.83
𝛔÷√n 0.5÷√50
x̄ = 7.8 σ = 0.5
µ=8 n = 50
Calculated z - value
Rejection Region
Critical Value
• we have to reject the null hypothesis since the calculated z-value enters the rejection region.
H0: µ = 70 years
Ha: µ > 70 years
1-0.05=0.95
(find 0.95 on z-table, since there is no value of 0.95 on column B,
page 328, we must find a value that is lower than 0.95. We have a
value of 0.9495)
Find horizontally the Z critical value using 0.9495 on the table, page
328.
Find horizontally the Z critical value using 0.9495 on the table, page
328.
Z(crit) = +1.64
Since it is one-tailed test (indicate by a symbol > based on
the Alternative hypothesis), we have to use positive sign (+).
4. Test statistic:
x̄ −µ 71.8−70 1.8
Z= Z= = =2.02
𝛔÷√n 8.9÷√100 0.89
x̄ = 71.8 σ = 8.9
µ = 70 n = 100
Calculated z - value
0 +1.64
+2.02
Critical Value
Rejection Region
• we have to reject the null hypothesis since the calculated z-value enters the rejection region.
5. Decision: Reject H0(Null Hypothesis)
6. Conclusion: The average life span today is greater than 70 years.
Page 328.
Page 329.
Page 330.
• Column B is for One-tailed test, either least than (<) or greater than (>)
Alternative hypothesis
• Column C is for Two-tailed test, indicated by the symbol not equal (≠)
Alternative Hypothesis