Please verify you are human to use the calculator.
The one-sample z-test is the simplest hypothesis test for a population mean. It compares a sample mean against a hypothesised value using the known population standard deviation and the standard normal distribution. The test statistic z = (x̄ − μ₀) / (σ / √n) follows a standard normal distribution under H₀.
The critical distinction from the t-test is that the z-test requires σ to be known rather than estimated from the data. In practice, σ is almost never known, which is why the t-test dominates real-world applications. The z-test appears mainly in introductory statistics courses, standardised testing (where population parameters are known from historical data), and industrial quality control where process variability has been established.
For large samples (n > 30), the difference between z-test and t-test results is negligible because the t-distribution converges to the standard normal. Nonetheless, there is no practical advantage to using the z-test even in large samples—the t-test is always at least as appropriate and often more so.
A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itTest whether the mean of a single sample differs significantly from a known or hypothesised population mean.
Try itWelch's t-test comparing the means of two independent groups. Does not assume equal variances.
Try itCompare two related measurements (e.g., before and after treatment) on the same subjects.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the one-sample z-test