Z-test
A Z-test is any statistical test for which the distribution of the test statistic under the null hypothesis can be approximated by a normal distribution.[src] Z-test tests the mean of a distribution.[src] For each significance level in the confidence interval, the Z-test has a single critical value (for example, 1.96 for 5% two-tailed), which makes it more convenient than the Student's t-test whose critical values are defined by the sample size (through the corresponding degrees of freedom).[src] Both the Z-test and Student's t-test have similarities in that they both help determine the significance of a set of data.[src] However, the Z-test requires knowing the population deviation, which is sometimes difficult to determine, making the t-test more convenient.[src]
A Z-test is any statistical test for which the distribution of the test statistic under the null hypothesis can be approximated by a normal distribution.[src] Z-test tests the mean of a distribution.[src] For each significance level in the confidence interval, the Z-test has a single critical value (for example, 1.96 for 5% two-tailed), which makes it more convenient than the Student's t-test whose critical values are defined by the sample size (through the corresponding degrees of freedom).[src] Both the Z-test and Student's t-test have similarities in that they both help determine the significance of a set of data.[src] However, the Z-test requires knowing the population deviation, which is sometimes difficult to determine, making the t-test more convenient.[src] ==Applicability== Because of the central limit theorem, many test statistics are approximately normally distributed for large samples.[src] Therefore, many statistical tests can be conveniently performed as approximate Z-tests if the sample size is large or the population variance is known.[src] If the population variance is unknown (and therefore has to be estimated from the sample itself) and the sample size is not large (n T that is approximately normally distributed under the null hypothesis is as follows: Estimate the expected value μ of T under the null hypothesis and obtain an estimate s of the standard deviation of T .[src] Determine the properties of T : one-tailed or two-tailed.[src] For null hypothesis H 0 : μ ≥ μ 0 vs alternative hypothesis H 1 : μ 0 , it is lower/left-tailed (one-tailed).[src] For null hypothesis H 0 : μ ≤ μ 0 vs alternative hypothesis H 1 : μ > μ 0 , it is upper/right-tailed (one-tailed).[src] For null hypothesis H 0 : μ = μ 0 vs alternative hypothesis H 1 : μ ≠ μ 0 , it is two-tailed.[src] Calculate the standard score: Z = \frac{\bar{T} - \mu_0}{s} One-tailed and two-tailed p-values can be calculated as \Phi(Z) (for lower/left-tailed tests), \Phi(-Z) (for upper/right-tailed tests) and 2\Phi(-|Z|) (for two-tailed tests), where \Phi is the standard normal cumulative distribution function.[src] ==Use in location testing== The term "Z-test" is often used to refer specifically to the one-sample location test comparing the mean of a set of measurements to a given constant when the sample variance is known.[src] For example, if the observed data X 1 , ..., X n are (i) independent, (ii) have a common mean μ, and (iii) have a common variance σ 2 , then the sample average X has mean μ and variance \frac{\sigma^2}{n} .[src] The null hypothesis is that the mean value of X is a given number μ 0 .[src] We can use X as a test-statistic, rejecting the null hypothesis if X − μ 0 is large.[src] To calculate the standardized statistic Z=\frac{(\bar{X}-\mu_0)}{s} , we need to either know or have an approximate value for σ 2 , from which we can calculate s^2=\frac{\sigma^2}{n} .[src] In some applications, σ 2 is known, but this is uncommon.[src] If the sample size is moderate or large, we can substitute the sample variance for σ 2 , giving a plug-in test.[src] The resulting test will not be an exact Z-test since the uncertainty in the sample variance is not accounted for—however, it will be a good approximation unless the sample size is small.[src] A t-test can be used to account for the uncertainty in the sample variance when the data are exactly normal.[src] Difference between Z-test and t-test: Z-test is used when sample size is large (n > 50), or the population variance is known.[src] t-test is used when sample size is small (n \mathrm{SE} = \frac{\sigma}{\sqrt n} = \frac{12}{\sqrt{55}} = \frac{12}{7.42} = 1.62 where {\sigma} is the population standard deviation.[src] Next calculate the z-score, which is the distance from the sample mean to the population mean in units of the standard error: z = \frac{M - \mu}{\mathrm{SE}} = \frac{96 - 100}{1.62} = -2.47 In this example, we treat the population mean and variance as known, which would be appropriate if all students in the region were tested.[src] When population parameters are unknown, a Student's t-test should be conducted instead.[src] The classroom mean score is 96, which is −2.47 standard error units from the population mean of 100.[src] Looking up the z-score in a table of the standard normal distribution cumulative probability, we find that the probability of observing a standard normal value below −2.47 is approximately 0.5 − 0.4932 = 0.0068.[src] This is the one-sided p-value for the null hypothesis that the 55 students are comparable to a simple random sample from the population of all test-takers.[src] The two-sided p-value is approximately 0.014 (twice the one-sided p-value).[src] Another way of stating things is that with probability 1 − 0.014 = 0.986, a simple random sample of 55 students would have a mean test score within 4 units of the population mean.[src] We could also say that with 98.6% confidence we reject the null hypothesis that the 55 test takers are comparable to a simple random sample from the population of test-takers.[src] The Z-test tells us that the 55 students of interest have an unusually low mean test score compared to most simple random samples of similar size from the population of test-takers.[src] A deficiency of this analysis is that it does not consider whether the effect size of 4 points is meaningful.[src] If instead of a classroom, we considered a subregion containing 900 students whose mean score was 99, nearly the same z-score and p-value would be observed.[src] This shows that if the sample size is large enough, very small differences from the null value can be highly statistically significant.[src] See statistical hypothesis testing for further discussion of this issue.[src] z = \frac{\hat{p}_1 - \hat{p}_2}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}} Where: \hat{p}_1 = sample proportion in the first sample \hat{p}_2 = sample proportion in the second sample n_1 = size of the first sample n_2 = size of the second sample \hat{p} = pooled proportion, calculated as \hat{p} = \frac{x_1 + x_2}{n_1 + n_2} , where x_1 and x_2 are the counts of successes in the two samples.[src] The confidence interval for the difference between two proportions, based on the definitions above, is: (\hat{p}_1 - \hat{p}_2) \pm z_{\alpha/2} \sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \frac{\hat{p}_2(1-\hat{p}_2)}{n_2}} Where: z_{\alpha/2} is the critical value of the standard normal distribution (e.g., 1.96 for a 95% confidence level).[src] Where: z_{1-\alpha/2} : Critical value for the significance level.[src] z_{1-\beta} : Quantile for the desired power.[src] p_0=p_1=p_2 : When assuming the null is correct.[src] ==References== ==Further reading== Casella, G., Berger, R.[src] L.[src] (2002).[src] Statistical Inference.[src] Duxbury Press.[src] .[src] Douglas C.Montgomery, George C.Runger.(2014).[src] Applied Statistics And Probability For Engineers.(6th ed.).[src] John Wiley & Sons, inc.[src] .[src]
57 sentences · 57 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Z-test." encyclopegia.org, 2026, https://encyclopegia.org/wiki/z-test. Accessed 26 November 2026.
Chicago
"Z-test." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/z-test.
APA
encyclopegia.org. (2026). Z-test. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/z-test
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| population | 55 students | Wikipedia |
| population | 55 students | Wikipedia |
| population | 55 students | Wikipedia |
| students | 900 students | Wikipedia |