Z Test

Perform a one-sample Z-test for population mean with known standard deviation. Get Z-statistic, p-value, critical values, and hypothesis test results with charts.

Perform a one-sample Z-test for population mean

About This Calculator

The Z-test is a fundamental statistical hypothesis test used to determine whether the sample mean differs significantly from a hypothesized population mean when the population standard deviation is known. This one-sample Z-test calculator is ideal for researchers, data analysts, and students who need to perform hypothesis testing on normally distributed data or large samples where the central limit theorem applies.

The test statistic is calculated as Z = (x̄ - μ₀) / (σ / √n), where x̄ is the sample mean, μ₀ is the hypothesized population mean, σ is the known population standard deviation, and n is the sample size. The resulting Z-statistic follows a standard normal distribution under the null hypothesis. The calculator computes both one-tailed and two-tailed p-values and compares the test statistic against critical values at your chosen significance level.

Regional Notes

India (IN): Z-tests are widely used in Indian academic research, quality control in manufacturing, and clinical trials. Common significance levels follow international standards (0.05, 0.01).

United States (US): The Z-test is standard in US social science research, A/B testing in tech, and Six Sigma quality management. The FDA requires Z-test based hypothesis testing for certain medical device approvals.

United Kingdom (UK): UK researchers use Z-tests in epidemiology, clinical studies under MHRA guidelines, and educational assessment. The Royal Statistical Society recommends reporting p-values alongside effect sizes.

Frequently Asked Questions

What is a Z-test?

A Z-test is a statistical hypothesis test used to determine whether the population mean differs from a hypothesized value when the population standard deviation is known. It assumes the data follows a normal distribution or the sample size is large enough for the central limit theorem to apply.

When should I use a Z-test instead of a t-test?

Use a Z-test when the population standard deviation is known and either the data is normally distributed or the sample size is large (n ≥ 30). Use a t-test when the population standard deviation is unknown and must be estimated from the sample, especially for small sample sizes.

What is the Z-test formula?

The Z-test statistic formula is Z = (x̄ - μ₀) / (σ / √n), where x̄ is the sample mean, μ₀ is the hypothesized population mean, σ is the known population standard deviation, and n is the sample size.

What is the difference between one-tailed and two-tailed Z-tests?

A two-tailed Z-test checks if the population mean is different from the hypothesized value (μ ≠ μ₀). A left-tailed test checks if the mean is less than the hypothesized value (μ < μ₀). A right-tailed test checks if the mean is greater than the hypothesized value (μ > μ₀). Choose based on your research hypothesis.

How do I interpret the p-value in a Z-test?

The p-value represents the probability of observing a test statistic as extreme as the one calculated, assuming the null hypothesis is true. If the p-value is less than your chosen significance level (commonly 0.05), you reject the null hypothesis, indicating sufficient evidence that the population mean differs from the hypothesized value.

What is the critical value in a Z-test?

The critical value is the threshold that the test statistic must exceed to reject the null hypothesis at a given significance level. For a two-tailed test at α = 0.05, the critical values are ±1.96. For a one-tailed test at α = 0.05, the critical value is ±1.645.

Can I use a Z-test for proportions?

Yes, the one-sample Z-test for proportions compares an observed proportion to a hypothesized proportion. The test statistic is Z = (p̂ - p₀) / √(p₀(1-p₀)/n), where p̂ is the sample proportion and p₀ is the hypothesized proportion. This requires a sufficiently large sample (np₀ ≥ 10 and n(1-p₀) ≥ 10).

What is the minimum sample size for a Z-test?

While there is no strict minimum, a sample size of at least 30 is recommended for the central limit theorem to ensure the sample mean is approximately normally distributed. For smaller samples, the data should be normally distributed for the Z-test to be valid. If the population standard deviation is unknown with a small sample, use a t-test instead.