Z-test-and-T-test
Z-test-and-T-test
Z-test-and-T-test
Critical Table
Z-test
2. We perform a Two-sample z-test when we want to compare the mean of
two samples.
Z-test – Example B
The given data is the result of two section of Electronics Engineering at CSPC, we will find out if
section B perform better than section E
BSECE – 1B
BSECE – 1E
Z-test – Example B
Calculating the z score with a significance
level of 5%
Z = 3.28
@ 5% significance level
Critical value = ± 1.960
Note: we use a two-tailed test
because we comparing two
groups
Findings: Since the z score is greater than the critical value, by two Conclusion: Since the null hypothesis is rejected we
tailed-test we will reject the null hypothesis and accept the concluded that section B can perform better than
alternative hypothesis section E
T-test
• T-test is applied when the sample data is less than 30, hence we can’t apply t-test for data larger than 30
and the standard deviation is unknown. Although T-test is just the same as Z-test they are both applicable in
determining the statistical hypothesis. T-test and Z-test just differ in the application in terms of data size.
Z-test or T-test?
Yes
No Yes
BSECE 1D BSECE 1E
• And pick 25 score result of students, 5 per section