e01.org

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. Z-test tests the mean of a distribution. 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). Both the Z-test and Student's t-test have similarities in that they both help determine the significance of a set of data. However, the Z-test requires knowing the population deviation, which is sometimes... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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. Z-test tests the mean of a distribution. 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). Both the Z-test and Student's t-test have similarities in that they both help determine the significance of a set of data. However, the Z-test requires knowing the population deviation, which is sometimes difficult to determine, making the t-test more convenient. ==Applicability== Because of the central limit theorem, many test statistics are approximately normally distributed for large samples. Therefore, many statistical tests can be conveniently performed as approximate Z-tests if the sample size is large or the population variance is known. 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 . Determine the properties of T : one-tailed or two-tailed. For null hypothesis H 0 : μ ≥ μ 0 vs alternative hypothesis H 1 : μ 0 , it is lower/left-tailed (one-tailed). For null hypothesis H 0 : μ ≤ μ 0 vs alternative hypothesis H 1 : μ > μ 0 , it is upper/right-tailed (one-tailed). For null hypothesis H 0 : μ = μ 0 vs alternative hypothesis H 1 : μ ≠ μ 0 , it is two-tailed. 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. ==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. 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} . The null hypothesis is that the mean value of X is a given number μ 0 . We can use X   as a test-statistic, rejecting the null hypothesis if X  − μ 0 is large. 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} . In some applications, σ 2 is known, but this is uncommon. If the sample size is moderate or large, we can substitute the sample variance for σ 2 , giving a plug-in test. 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. A t-test can be used to account for the uncertainty in the sample variance when the data are exactly normal. Difference between Z-test and t-test: Z-test is used when sample size is large (n > 50), or the population variance is known. 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. 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. When population parameters are unknown, a Student's t-test should be conducted instead. The classroom mean score is 96, which is −2.47 standard error units from the population mean of 100. 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. 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. The two-sided p-value is approximately 0.014 (twice the one-sided p-value). 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. 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. 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. A deficiency of this analysis is that it does not consider whether the effect size of 4 points is meaningful. 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. This shows that if the sample size is large enough, very small differences from the null value can be highly statistically significant. See statistical hypothesis testing for further discussion of this issue. 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. 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). Where: z_{1-\alpha/2} : Critical value for the significance level. z_{1-\beta} : Quantile for the desired power. p_0=p_1=p_2 : When assuming the null is correct. ==References== ==Further reading== Casella, G., Berger, R. L. (2002). Statistical Inference. Duxbury Press. . Douglas C.Montgomery, George C.Runger.(2014). Applied Statistics And Probability For Engineers.(6th ed.). John Wiley & Sons, inc. .

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Z-test". 1790509433. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377019694

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·