Test Parameters
How to Use
- Select One-Sample or Two-Sample Z-Test
- Enter your sample data parameters
- Choose hypothesis type (tailed)
- Select significance level (α)
- Click "Calculate Z-Test" for results
Test Results
Calculation Steps
1 Z = (x̄ - μ) / (σ/√n)
2 Z = (105 - 100) / (15/√30)
3 Z = 5 / (15/5.477)
4 Z = 5 / 2.739 = 1.826
Data Summary
| Parameter | Sample 1 |
|---|---|
| Mean | 105.00 |
| Std Dev | 15.00 |
| Size | 30 |
| Std Error | 2.74 |
Understanding Z-Tests: A Comprehensive Guide
What is a Z-Test?
A Z-test is a statistical test used to determine whether two population means are different when the population variances are known and the sample size is large (typically n > 30). It's based on the standard normal distribution (Z-distribution).
When to Use a Z-Test
- One-Sample Z-Test: Compare a sample mean to a known population mean when population standard deviation is known.
- Two-Sample Z-Test: Compare means from two independent samples when population standard deviations are known.
- Large Sample Size: Generally requires sample sizes larger than 30 to rely on the Central Limit Theorem.
- Known Population Variance: Population standard deviation must be known or estimated with high confidence.
Key Z-Test Formulas
One-Sample Z-Test Formula:
Z = (x̄ - μ) / (σ/√n)
Where:
x̄ = Sample mean
μ = Population mean
σ = Population standard deviation
n = Sample size
Two-Sample Z-Test Formula:
Z = (x̄₁ - x̄₂) / √(σ₁²/n₁ + σ₂²/n₂)
Interpreting Results
- |Z| > Critical Value: Reject the null hypothesis (significant result)
- P-value < α: Reject the null hypothesis (significant result)
- Confidence Interval: If the interval doesn't contain the null value, result is significant
Common Significance Levels
| α Level | Confidence Level | Critical Z (Two-Tailed) | When to Use |
|---|---|---|---|
| 0.01 | 99% | ±2.576 | High-stakes research, medical trials |
| 0.05 | 95% | ±1.960 | Most scientific research |
| 0.10 | 90% | ±1.645 | Exploratory research, preliminary studies |
Practical Example
A company claims their batteries last 100 hours. You test 30 batteries and find a mean of 105 hours with a known population standard deviation of 15 hours. Using α=0.05, the Z-test shows Z=1.826 with p=0.068. Since p > 0.05, you cannot reject the null hypothesis - there's not enough evidence to say the batteries last longer than claimed.
Limitations of Z-Tests
- Requires known population standard deviation
- Assumes normal distribution or large sample size
- Not suitable for small samples (use t-test instead)
- Sensitive to outliers in the data
This Z-Test calculator provides accurate statistical testing for research, quality control, hypothesis testing, and data analysis applications. Always verify test assumptions before drawing conclusions from statistical tests.