Z Test
Z Test
Z Test
Statistical Hypothesis
is a conjecture about the population parameter. This conjecture may/may
nit be true.
2 TYPES OF STATISTICAL HYPOTHESIS
1. Null Hypothesis
-symbolized by Ho
-shows that there is no difference between the 2 population means( or
parameter)
2. Alternative Hypothesis
-symbolized by Hi
-it shows that there is a difference between 2 population means
HYPOTHESIS TESTING: FOR ONE
SAMPLE MEAN
We perform the One-Sample z-Test when we want to
compare a sample mean with the population mean
HYPOTHESIS TESTING: FOR ONE
SAMPLE MEAN
Ẋ= sample mean
n= sample size
HYPOTHESIS TESTING: FOR ONE
SAMPLE MEAN
Step 4 Calculate the critical value
• if the sample size is greater than or equal to 30,
then used z-table
• if the sample is less than 30, then used t-table
HYPOTHESIS TESTING: FOR ONE
SAMPLE MEAN
Step 5 Draw the conclusion.
• Accept or Reject the Null Hypothesis
Let’s try!
A manufacturer of cellular phone batteries claims
that when fully charged, the mean life of his
products last for 26 hours with a standard deviation
of 5 hours. Mr. Mikes, a regular distributor,
randomly picked and tested 35 of the batteries. His
test showed that the average life of his sample is
24.3 hours. Is there a significant difference between
the average life of all the manufacturer’s batteries
and the average battery life of his sample.
Given:
Ho: µ= 26 hrs.
Ha: µ ≠ 26 hrs.
24 . 3 − 26 −1 . 7 −1 .7
¿ ¿
5 5 ¿
0 . 845154 ¿ −2 . 01
√ 35 5 . 916079
Z= 2.01
Z= -2.01
CONCLUSION:
Since the test statistic falls under the rejection area, the null
hypothesis has been rejected and alternative hypothesis is
accepted which means there is a significance difference
between the average life of all manufacturers batteries and the
battery life of his sample.
EXAMPLE :
(ONE-TAILED TEST)
A principle claims that the students in his school are above average intelligence. A random sample of 30
IQ scores have a mean of 112.5. Is there sufficient evidence to support the principal’s claim? The mean
population IQ is 100 with a standard deviation of 15. Use .05 level of significance.
Given:
Ho: µ= 100
112.5 − 100
1.645
¿
Z= 4.56
15 ¿ 4.56
√3 0
Conclusion:
Since the test statistic falls under the rejection
area, the null hypothesis has been rejected and
alternative hypothesis is accepted. We are 95%
confident to conclude that the students in the
school are above average intelligence.
HYPOTHESIS TESTING: FOR TWO
SAMPLE MEAN
What is z-test for two sample mean test?
The z-test for two sample mean test is another parametric
test used to compare the means of two independent groups
of samples drawn from a normal population, if there are
more than 30 samples for every group.
HYPOTHESIS TESTING: FOR TWO
SAMPLE MEAN
Ho: x̅1 = x̅2 (There is no significant difference between the two groups)
Ha: x̅1 ≠ x̅2 (There is a significant difference between the two groups)
-this is a two-tailed test
90 − 85 5 5 5
𝑧= ¿ ¿ ¿
√
5.774
√ 40
+
35
100 100
75
100
√ . 75 . 866
Z= -5.744 Z= 5.744
Conclusion:
Since the z-computed value of 5.774 is greater than the z-
tabular value of 2.575 at .01 level of significance, the null
hypothesis is rejected and the alternative hypothesis is accepted
which means there is a significance difference between the
two groups.
Difference between ONE and TWO sample
Z hypothesis test
The one-sample z-test is to tests the difference between a
single group and the hypothesized population value whereas
the two-sample z-test is to test the difference between means
of two groups.
Basic Concepts: