A z test is a statistical test that is used to check if the means of two data sets are different when the population variance is known
A z test is a statistical test that is used to check if the means of two data sets are different when the population variance is known
A z test is a statistical test that is used to check if the means of two data sets are different when the population variance is known
What is Z Test?
A z test is a test that is used to check if the means of two populations are
different or not provided the data follows a normal distribution. For this
purpose, the null hypothesis and the alternative hypothesis must be set
up and the value of the z test statistic must be calculated. The decision
criterion is based on the z critical value.
Example 1: A teacher claims that the mean score of students in his class
is greater than 82 with a standard deviation of 20. If a sample of 81
students was selected with a mean score of 90 then check if there is
enough evidence to support this claim at a 0.05 significance level.
H0H0 : μ=82
H1H1 : μ>82
As this is a two-tailed test the alpha level needs to be divided by 2 to get 0.025.
As 2.62 > 1.96 thus, the null hypothesis is rejected and it is concluded that there is
a significant difference between the two lines.
×−μ
σ
√n
Z Test Formula
The z test formula compares the z statistic with the z critical value to test
whether there is a difference in the means of two populations.
In hypothesis testing, the z critical value divides the distribution graph into
the acceptance and the rejection regions. If the test statistic falls in the
rejection region then the null hypothesis can be rejected otherwise it
cannot be rejected. The z test formula to set up the required hypothesis
tests for a one sample and a two-sample z test are given below.
One-Sample Z Test
A one-sample z test is used to check if there is a difference between the
sample mean and the population mean when the population standard
deviation is known. The formula for the z test statistic is given as follows.