One-Sample Z-Test
Hypothesis test for a mean when σ is known, with shaded p-value and critical values.
Results
Fail to reject H₀: z = 1.8974, p-value = 0.0578
The p-value (0.0578) is greater than α = 0.05, so the data do not give enough evidence to conclude that the population mean is different from 100.
Results
| Test statistic z | 1.8974 |
|---|
| p-value | 0.0578 |
|---|
| x̄ | 104.5 |
|---|
| n | 40 |
|---|
| Standard error | 2.3717 |
|---|
| Critical value(s) | −1.96, 1.96 |
|---|
| Decision at α = 0.05 | Fail to reject H₀ |
|---|
On the TI-84
Z-Test 100, 15, 104.5, 40, ≠
Show steps
- Hypotheses. H₀: μ = 100 Ha: μ ≠ 100
- Test statistic. z = (x̄ − μ0) ÷ (σ ÷ √n) = (104.5 − 100) ÷ (15 ÷ √40) = 4.5 ÷ 2.3717 = 1.8974
- p-value. Two-tailed test, so double the tail area beyond the test statistic: p-value = 0.0578. Since 0.0578 > 0.05, fail to reject H₀.
- Critical-value method. At α = 0.05, the rejection region is z ≤ −1.96 or z ≥ 1.96. The test statistic z = 1.8974 is not in the rejection region, so we fail to reject H₀. (Same decision as the p-value method.)
- Conclusion. The p-value (0.0578) is greater than α = 0.05, so the data do not give enough evidence to conclude that the population mean is different from 100.
About this calculator
When to use a z-test
Use the one-sample z-test for a mean when the population standard deviation σ is known and either the population is normal or the sample is large. If you only know the sample SD s, use the t-test instead.
The logic
Start by assuming H0 is true. The test statistic measures how many standard errors the sample mean is from μ0. The p-value is the probability of getting a sample mean at least this far from μ0 if H0 were true. A small p-value (≤ α) means the result would be surprising under H0, so we reject H0.
The critical-value method gives the same decision: reject H0 when the test statistic lands in the rejection region beyond the critical value(s).
More inference calculators: CI for a Mean · CI for a Proportion · Sample Size · T-Test (mean) · 1-Prop Z-Test · 2-Sample T-Test · Paired T-Test · 2-Prop Z-Test