Z Hypothesis Test Calculator

Test means and proportions with flexible z methods. Enter known values, then read practical decisions. Download reports, compare examples, and explain every result clearly.

Calculator

Formula Used

Mean test: z = (x̄ − μ₀) / (σ / √n)

Proportion test: z = (p̂ − p₀) / √(p₀(1 − p₀) / n)

Confidence interval: estimate ± z critical × standard error.

The p value is found from the standard normal distribution.

How to Use This Calculator

  1. Select a mean test or proportion test.
  2. Choose the alternative direction before reading results.
  3. Enter alpha, null value, sample estimate, and sample size.
  4. Enter known standard deviation for a mean test.
  5. Use successes or sample proportion for a proportion test.
  6. Add an alternative value to estimate power.
  7. Press calculate, then download CSV or PDF if needed.

Example Data Table

Case Type Null Sample n Alpha Tail
Factory fill weight Mean 100 104 36 0.05 Two
Survey approval Proportion 0.50 0.57 400 0.05 Right
Defect rate check Proportion 0.08 0.05 250 0.01 Left

Understanding a Z Hypothesis Test

A z hypothesis test compares a sample result with a claimed population value. It is used when the population standard deviation is known, or when the sample is large enough for a normal approximation. This calculator supports one sample mean tests and one sample proportion tests.

Why the Test Direction Matters

The tool asks for the null value, sample evidence, sample size, alpha, and test direction. It then computes the standard error, z statistic, p value, critical value, confidence interval, and decision. These values help you decide whether the sample gives strong evidence against the null hypothesis.

A left tailed test checks whether the population value may be lower. A right tailed test checks whether it may be higher. A two tailed test checks whether it may be different in either direction. Choosing the correct direction matters before data is reviewed.

Mean and Proportion Options

For means, the calculator uses the known population standard deviation. For proportions, it uses the null proportion in the test standard error. The confidence interval uses the observed estimate, so it describes likely values for the population parameter.

Power and Planning

Advanced fields add planning support. You can enter an alternative value and target power. The calculator then estimates test power and an approximate required sample size. These estimates are useful for study planning, audits, surveys, quality checks, and A/B testing.

Reading the Decision

The decision should not be read alone. A tiny p value shows strong statistical evidence, but it does not prove practical importance. Always review the estimate, confidence interval, sample size, and context. Also check that observations are independent and sampling is suitable.

Good Practice

Use the example table to compare common cases. Export results when you need records for reports or classroom work. The CSV file is useful for spreadsheets. The PDF report is useful for sharing a quick summary.

For best results, keep units consistent and enter positive sample sizes. In mean mode, standard deviation must be greater than zero. In proportion mode, counts must match the chosen sample size. If your sample is small, or data is highly skewed, a different test may fit better. The result is a guide for evidence. It is not a substitute for research design, domain knowledge, or professional statistical review. Document assumptions when results support business or scientific choices.

FAQs

What is a z hypothesis test?

It is a statistical test that compares a sample estimate with a null value using the standard normal distribution.

When should I use a mean z test?

Use it when testing a population mean and the population standard deviation is known. A large sample also supports the normal method.

When should I use a proportion z test?

Use it when testing one population proportion. The sample should be large enough for a normal approximation.

What does the p value mean?

The p value shows how unusual the sample result is, assuming the null hypothesis is true.

What does alpha mean?

Alpha is the chosen significance level. It is the cutoff used to decide whether evidence is statistically significant.

Why choose left, right, or two tailed?

The tail matches the research question. Use two tailed for any difference, right for higher, and left for lower.

Can I download the result?

Yes. Use the CSV option for spreadsheets or the PDF option for a quick printable report.

Does this replace statistical advice?

No. It helps with calculation and learning. Important studies still need careful design and expert review.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.