The Z-Test
The Z-Test
The z-test is a parametric test which requires the normality of the distribution. It utilizes the two population
parameters µ and σ. It is used to compare two means, the sample mean, and the perceived population mean. It is
also used to compare the two sample means taken from the same population. It is used when the samples are
equal or greater than 30. The z-test can be applied in two ways: the One-Sample Mean Test and the Two-Sample
Mean Test.
The tabular value of z-test at .01 and .05 level of significance.
Test Level of Significance
.01 .05
One - tailed ±2.33 ±1.65
Two – tailed ±2.575 ±1.96
1. The average score in the entrance examination in Mathematics at CBN High School is 80 with a standard
deviation of 10. A random sample of 40 students was taken from this year’s examinees and it was found to have
a mean score of 84.
a. Is there a significant difference between the known mean and the sample mean? Test at α= 0.05.
b. Does this indicate that this year’s batch is better in mathematics than the previous batches?
a.
1- Hypotheses:
Ho: There is no significant difference between the known mean and sample means. (Ho: µ= 80)
Ha: There is a significant difference between the known mean and sample means. (Ha: µ≠ 80)
II – Level of Significance`
α = 0.05; two-tailed test; Ztab is ± 1.96
III- Test Statistic:
(x - µ )√n (84-80) √40
4 (6.32) 25.28
Z = -------------------- = ------------------ = = = 2.528= 2.53
10 10
10
Criterion or Decision Rule: Reject H 0 if z computed value is greater than or beyond the z tabular value.
IV- Decision: Reject Ho and accept Ha since Zcomputed is 2.53 and it is greater than Ztabular value 1.96 at 0.05 level of
significance
V – Conclusion: There is a significant difference between the known mean and the sample mean.
Example 2. ABC company claims that the average lifetime of a certain tire is at least 28, 000 km. to check
the claim, a taxi company puts 40 of these tires on its taxis and gets a mean lifetime of 25,
560 km. with a standard deviation of 1, 350 km, is the claim true? Use z-test at .05
Problem: Is the claim true that the average lifetime of a certain tire is at least 28, 000 km.
I-Hypotheses:
H 0: The average lifetime of a certain tire is 28, 000 km. (Ho: µ= 28,000)
Ha: The average lifetime of a certain tire is atleast 28, 000 km. (Ha: µ≥ 28,000)
I - Hypotheses
Ho: µ= 250 grams
Ha: µ≠ 250 grams
II – Level of Significance
α = 0.05; two-tailed test; Ztab is +-1.96
III- Test Statistic:
(x - µ )√n (240-250) √50
Z = -------------------- = ------------------ = -3.45
20.5
Criterion or Decision Rule: Reject H 0 if z computed value is greater than or beyond the z tabular value.
IV- Decision: Reject Ho and Accept Ha since Z computed is /-3.45/ is greater than Z tabular value /-1.96/at 0.05 level of
significance.
V – Conclusion: Therefore the claim of the manufacturer that the average weight per bag of biscuit is 250 grams
is not true.
4. In a study made on time and motion. It was found that a certain manual work can be finished at an average of
40 minutes with a standard deviation of 8 minutes. A group of 16 workers is given a special training and then
found to average only 35 minutes. Can we conclude that the special training can speed up the work using a 0.01
level?
I - Hypotheses
Ho: µ= 40 minutes
Ha: µ< 40 minutes
II – Level of Significance
α = 0.01; one-tailed test; Ztab is +-2.33
III- Test Statistic:
(x - µ )√n (35-40) √16
Z = -------------------- = ------------------ = -2.5
8
Criterion or Decision Rule: Reject H 0 if z computed value is greater than or beyond the z tabular value.
IV- Decision: Reject Ho and Accept Ha since Zcomputed is /-2.5/ is greater than Ztabular value /-2.33/at 0.01 level of
significance.
V – Conclusion: Therefore the special training can really speed up the work.
5. Past record showed that the average final examination grade in Math III is 70 with a standard deviation of 8.0.
A random sample of 100 students was taken and found to have a mean final exam grade of 71.8. Is this
indication that the sample is better than the rest of the students? Test at 0.05 level of significance.
I –Hypotheses:
Ho: The sample is as good as the other students. ( μ= 70)
Ha: The sample is better than the rest of the students. ( μ>70 ¿
II-Level of significance: α = 0.05 one-tailed CV= ± 1.65
III-Test Statistic:
(71.8 - 70 )√100 (1.8) 10
18 9
Z = -------------------- = ------------------ = = = 2.25
8 4
8 8
IV-Decision: Reject Ho and accept Ha since Zcomp=2.25 > Ztab=1.65 at 0.05 level of significance.
V-Conclusion: The sample is better than the rest of the students.
THE TWO-SAMPLE MEAN TEST
The two-sample mean test is used when comparing two separate samples drawn at random taken from a
normal population. To test whether the difference between the two values of x 1 and x 2 is significant or can be
attributed to chance, the formula is used:
X 1−X 2
√
2 2
z= S1 S2
+
n1 n2
where:
2
X 1 = the mean of sample 1 S2 = the variance of sample 2
X 2 = the mean of sample 2 n1 = size of sample 1
S21 = the variance of sample 1 n2 = size of sample 2
Example 1. An admission test was administered to incoming freshmen in the Colleges of Nursing and
Veterinary Medicine with 100 students. Each was randomly selected. The mean scores of the given
samples were x 1 = 90 and x 2 = 85 and the variances of the test scores were 40 and 35, respectively. Is
there a significant difference between the two groups? Use .01 level of significance.
Problem: Is there a significant difference between the two groups?
I-Hypotheses:
H 0: x 1 = x 2 There is no sig. diff between the two groups.
Ha: x 1 ≠ x 2 There is a sig. diff between the two groups.
√
2 2
z= s1 s2 =
+ √.75
n1 n 2
90−85
5
√
= 40 35 =
+ .866
100 100
5
Decision Rule:
=
√ 75
100
z = 5.774
If the z-computed value is greater than or beyond the tabular value, reject H 0 .
IV & V: Decision & 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 research hypothesis is accepted which means that there is a
significant difference between the two groups.
2. Fifty senior students in Statistics got an average grade of 85 with a standard deviations of 10.2, while a
group of 60 senior students have an average grade of 80 with the standard deviation of 8.9. Can the
difference in the mean grade be attributed to chance, using 0.05 level of significance?
3. The principal of SMA wants to know which batch of students performed better in English. He took a
random sample of 40 students in the last year’s batch and found it to have a mean final grade of 83 with a
standard deviation of 7. Fifty students from this year’s batch were randomly taken and it was found that
they have a mean final grade of 86 with a standard deviation of 10. Does this indicate that last year’s batch is
poorer in English than this year’s batch? Test at α = 0.01
I-Hypotheses:
Ho: Last year’s batch is as good as this year’s batch in English.
Ha. Last year’s batch is poorer than this year’s batch in English.
√ =
√ √ 49 100 =
III- Test Statistic: z= s s
2 2
7² 10² z= =¿
+ 1 2
+ + √1.225+2
n1 n 2 40 50 40 50
−3
√ 3.225
−3
= 1.79583 = - 1.67
IV- Decision: Accept Ho and reject Ha since Zcomp=/-1.67/< ztab=/-2.33/ at 0.01 level of significance
V-Conclusion: Last year’s batch is as good as this year’s batch in English.
4. A random sample of 25 brand A cigarettes had an average nicotine content of 5 milligrams, while a
sample of 40 brand D cigarettes showed an average nicotine content of 4.8 milligrams. If the standard
deviation of nicotine content is 1.6 milligrams, would you say that brand D has a lesser nicotine content?
Assume the distribution of nicotine content to be normal and use a 0.01 level of significance.
I-Hypotheses:
Ho : Brand A and brand D have the same nicotine content.
Ha: Brand D has a lesser nicotine content than brand A.
√ s s ==
√ 1.6² 1.6² = =
√ 2.56 2.56 ==
2 2
III-Test Statistic: : z=
1
+ 2
+ + √ 0.1024+0.064
n1 n 2 25 40 25 40
0.2
=
√ 0.1664
0.2
= 0.4079 = 0.49
IV-Decision: Accept Ho and reject Ha since Zcom=0.49<ztab=2.33 at 0.01 level of significance
V-Conclusion: Brand A and brand D cigarettes have the same nicotine content.
Hypotheses:
Ho: There is no significant difference in the salaries of Teachers from two exclusive schools.
Ho: X1=X2
Ha: There is a significant difference in the salaries of Teachers from two exclusive schools.
Ha: X1 ≠ X2
V. Conclusion: Therefore, salaries of teachers in two exclusive schools have a significant difference.
b. Does this indicate that teachers from school M are receiving higher salaries than teachers from school C? Use a
0.05 level of significance. CV= 1.65
I. Hypotheses:
Ho: The salary of Teachers from School M is equal to the salary of teachers from School C.
Ho: X1=X2
Ha: The salary of Teachers from School M is higher than the salaries of teachers from School C.
Ha: X1> X2
IV. Decision: Reject Ho and Accept Ha since Z computed value /-4.76/ is greater than Z tabular value /-1.65/ at 0.05
level of significance.