ArticleslgStudy

mathematics

Z-test

Z-test is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Z-test rather than just read about it. In short: 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.

Z-test — main illustration
Z-test — illustration

Key takeaways

  • Z-test belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Z-test to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Z-test from memory before moving on to harder problems.

Reference excerpt

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 < 30), the Student's t-test may be more appropriate (in some cases, n < 50, as described below).

Procedure The procedure to perform a Z-test on a statistic 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 H0: μ ≥ μ0 vs alternative hypothesis H1: μ < μ0, it is lower/left-tailed (one-tailed). For null hypothesis H0: μ ≤ μ0 vs alternative hypothesis H1: μ > μ0, it is upper/right-tailed (one-tailed). For null hypothesis H0: μ = μ0 vs alternative hypothesis H1: μ ≠ μ0, it is two-tailed. Calculate the standard score: Z=T¯−μ0s One-tailed and two-tailed p-values can be calculated as Φ(Z) (for lower/left-tailed tests), Φ(−Z) (for upper/right-tailed tests) and 2Φ(−|Z|) (for two-tailed tests), where Φ 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 X1, ..., Xn are (i) independent, (ii) have a common mean μ, and (iii) have a common variance σ2, then the sample average X has mean μ and variance σ2n. 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=(X¯−μ0)s, we need to either know or have an approximate value for σ2, from which we can calculate s2=σ2n . 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 < 50) and population variance is unknown. There is no universal constant at which the sample size is generally considered large enough to justify use of the plug-in test. Typical rules of thumb: the sample size should be 50 observations or more. For large sample sizes, the t-test procedure gives almost identical p-values as the Z-test procedure. Other location tests that can be performed as Z-tests are the two-sample location test and the paired difference test.

Conditions For the Z-test to be applicable, certain conditions must be met.

Nuisance parameters should be known, or estimated with high accuracy (an example of a nuisance parameter would be the standard deviation in a one-sample location test). Z-tests focus on a single parameter, and treat all other unknown parameters as being fixed at their true values. In practice, due to Slutsky's theorem, "plugging in" consistent estimates of nuisance parameters can be justified. However, if the sample size is not large enough for these estimates to be reasonably accurate, the Z-test may not perform well. The test statistic should follow a normal distribution. Generally, one appeals to the central limit theorem to justify assuming that a test statistic varies normally. There is a great deal of statistical research on the question of when a test statistic varies approximately normally. If the variation of the test statistic is strongly non-normal, a Z-test should not be used. If estimates of nuisance parameters are plugged in as discussed above, it is important to use estimates appropriate for the way the data were sampled. In the special case of Z-tests for the one or two sample location problem, the usual sample standard deviation is only appropriate if the data were collected as an independent sample. In some situations, it is possible to devise a test that properly accounts for the variation in plug-in estimates of nuisance parameters. In the case of one and two sample location problems, a t-test does this.

Example Suppose that in a particular geographic region, the mean and standard deviation of scores on a reading test are 100 points, and 12 points, respectively. Our interest is in the scores of 55 students in a particular school who received a mean score of 96. We can ask whether this mean score is significantly lower than the regional mean—that is, are the students in this school comparable to a simple random sample of 55 students from the region as a whole, or are their scores surprisingly low? First calculate the standard error of the mean:

SE=σn=1255=127.42=1.62 where σ 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:

… excerpt ends here. Continue reading the full article.

Illustrations

Z-test illustration

Worked examples

Example 1 — a first encounter with Z-test

Start with the simplest possible case. Write down what Z-test claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Z-test before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Z-test ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Z-test

In research
Z-test appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Z-test in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Z-test is common in secondary-school and first-year university syllabi. It links to neighbouring topics Normal distribution, Statistical tests, so understanding it makes those chapters shorter.
In everyday life
Look for Z-test outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Z-test” →

How to study Z-test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Z-test means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Z-test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Z-test in simple terms?

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.

Why does Z-test matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Z-test?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Z-test.

Tags

  • Normal distribution
  • Statistical tests

Keep exploring