Smart Deals - promotions, discount codes and sales

Z-Test Calculator

Fast, accurate and free online testu from calculator tool running directly in your browser.

Secure (SSL)
Client-Side Processing
100% Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}
Enter your sample data and click "Calculate Z-statistic".

Rate this tool:

Related tools

Other tools you may find useful

Z-test calculator - verification of statistical hypotheses for large samples

Hypothesis testing is one of the most important pillars of mathematical statistics, allowing you to make data-based decisions in science, medicine, marketing and economics. One of the basic parametric tests used to verify hypotheses about the population mean is the **Z-test** (Z-test). It is used in situations when the research sample is large (the standard size is $n \ge 30$) and we know the standard deviation of the population ($\sigma$). Our free online Z test calculator is a precise statistical tool that, based on the entered data (sample mean, theoretical mean, standard deviation and sample size), calculates the $Z$ test statistic, determines the critical value and the $p$ value (p-value).

Thanks to this, you will quickly verify the null hypothesis $H_0$ at the selected significance level $\alpha$ (e.g. 0.05) and find out whether the observed differences are statistically significant.

Formula for the Z test statistic and test assumptions

In order to properly perform the Z test, the following methodological assumptions must be met:

  1. The tested variable has a distribution close to normal (or the sample size is large enough that, according to the Central Limit Theorem, the distribution of the mean tends to normal).
  2. The samples were taken randomly and independently.
  3. The population standard deviation ($\sigma$) is known (otherwise, when $\sigma$ is unknown, Student's t-test should be used).

The formula for calculating the test statistic $Z$ is:

$$Z = \frac{\bar{X} - \mu_0}{\sigma / \sqrt{n}}$$

Where:

  • $\bar{X}$ – average calculated from the test sample.
  • $\mu_0$ – theoretical (hypothetical) mean in the population specified in the null hypothesis $H_0$.
  • $\sigma$ – known population standard deviation.
  • $n$ – sample size (number of observations).
  • $\sigma / \sqrt{n}$ – so-called standard error of the mean.

Table of Z Critical Values ​​for Common Significance Levels

The critical value $Z_{\text{crit}}$ marks the boundary of the region for rejecting the null hypothesis. Depends on the selected significance level ($\alpha$) and the direction of the test (one-sided or two-tailed):

Significance level ($\alpha$) Confidence level (%) Z-critical value (One-tailed test) Z-critical value (2-sided test) Rejection region $H_0$ (Test double-sided)
0.10 90% 1.28 1.645 $|Z| > 1,645$
0.05(standard) 95% 1.645 1.96 $|Z| > 1.96$
0.01 99% 2.33 2.576 $|Z| > 2,576$
0.001 99.9% 3.09 3.29 $|Z| > $3.29

How to interpret the results of the Z test calculator?

The null hypothesis is verified in our calculator in two equivalent ways:

  • Critical value method:If the calculated statistic $|Z|$ is greater than the critical value $|Z_{\text{crit}}|$ read from the table (i.e. it falls into the critical region), **we reject the null hypothesis $H_0$** in favor of the alternative hypothesis $H_1$. This means that the result is statistically significant.
  • p-value method:If the calculated probability value $p$ (p-value) is less than or equal to the selected significance level $\alpha$ (e.g. $p \le 0.05$), **we reject the null hypothesis $H_0$**. If $p > \alpha$, there is no reason to reject $H_0$.

Frequently Asked Questions (FAQ)

What is the difference between Z-test and Student's t-test?

The Z test is used when we know the population standard deviation ($\sigma$) and the sample size is large ($n \ge 30$). The Student's t-test is used in situations where the population standard deviation is unknown (we estimate it based on the sample deviation $s$) and when the sample is small ($n < $30). The Student's t-distribution has thicker tails, which takes into account greater uncertainty in small samples.

What is the null hypothesis (H0) and the alternative hypothesis (H1)?

The null hypothesis ($H_0$) is the starting assumption that there are no differences, no effect, or equality of means (e.g., "the new teaching method does not change students' grade point average"). An alternative hypothesis ($H_1$) is the opposite hypothesis that we want to demonstrate (e.g. "the new method improves the grade point average"). The purpose of the test is to attempt to reject the null hypothesis based on the sample data.

What is the difference between a one-sided test and a two-sided test?

A two-sided test verifies the difference in both directions (e.g. whether the mean has changed - increased or decreased). The alternative hypothesis is $\mu \neq \mu_0$. A one-tailed test checks the direction of change (e.g. whether the mean increased, $\mu > \mu_0$, or decreased, $\mu < \mu_0$). A one-tailed test has greater statistical power in the chosen direction, but must be planned before data collection.

What does the alpha significance level (α) mean?

The significance level $\alpha$ (usually set to 0.05, i.e. 5%) is the probability of making a type I error - that is, rejecting the null hypothesis $H_0$ when in fact it is true (false alarm). Setting $\alpha = 0.05$ means that we accept a maximum of 5% chance of showing a non-existent effect.

Can the Z test be used to compare means from two samples?

Yes, there are two versions of the Z test: one-sample (comparing the sample mean with a known population mean) and two-sample (comparing the means of two independent groups, e.g. control and experimental groups, with known standard deviations of both populations).

Install Webp.pl Have the tools in your own pocket!