Calculator
Example Data Table
| Case | Sample Mean | Hypothesized Mean | Population Deviation | Sample Size | Alpha | Tail |
|---|---|---|---|---|---|---|
| Factory fill weight | 52 | 50 | 8 | 64 | 0.05 | Two-tailed |
| Battery life claim | 11.6 | 12 | 1.4 | 49 | 0.01 | Left-tailed |
| Score improvement | 78.5 | 75 | 10 | 100 | 0.05 | Right-tailed |
Formula Used
The calculator uses the one sample z test for a population mean when the population standard deviation is known.
Standard Error: SE = σ / √n
Z Value: z = (x̄ - μ₀) / SE
Two-tailed P Value: p = 2 × min(P(Z ≤ z), P(Z ≥ z))
Left-tailed P Value: p = P(Z ≤ z)
Right-tailed P Value: p = P(Z ≥ z)
Confidence Interval: x̄ ± z* × SE
How to Use This Calculator
- Enter a sample label for record keeping.
- Add the sample mean from your observed data.
- Enter the hypothesized mean from the null hypothesis.
- Enter the known population standard deviation.
- Type the sample size as a whole number.
- Select alpha and the alternative hypothesis direction.
- Set the confidence level and decimal precision.
- Press Calculate to view the result above the form.
- Use CSV or PDF download for reporting.
Mean Z Test Guide
What This Test Measures
A mean z test checks whether a sample mean differs from a claimed population mean. It is useful when the population standard deviation is already known. The calculator compares the observed mean with the null mean. It then converts the difference into a standard z value. A larger absolute z value shows a stronger difference. The p value measures how unusual the sample result is. A small p value gives stronger evidence against the null hypothesis.
When the Z Method Fits
Use this method for one sample mean testing. The population standard deviation should be known. The sample should be random or representative. The observations should be independent. Large samples usually support the normal approximation. For small samples, the population should be close to normal. If the population deviation is unknown, a t test is usually better.
Reading the Result
The result starts with the standard error. This shows the expected spread of sample means. The z value shows how many standard errors separate the sample mean from the null mean. The p value is then compared with alpha. If p is less than or equal to alpha, reject the null hypothesis. Otherwise, fail to reject it. This does not prove the null is true. It only means the evidence is not strong enough.
Tail Choice Matters
A two-tailed test checks for any difference. It is common when direction is not fixed before analysis. A left-tailed test checks whether the mean is lower. A right-tailed test checks whether the mean is higher. Choose the tail before viewing the result. Changing it afterward can bias the conclusion. The critical region changes with the selected tail.
Practical Use
This calculator supports quality control, education, operations, and research checks. It reports the p value, critical boundary, confidence interval, and effect size. The confidence interval gives a useful range for the population mean. The effect size gives a standardized difference. Both values help explain the result beyond a simple decision. Use the exports to save calculations for notes, reports, audits, and repeat reviews.
FAQs
1. What is a z value in hypothesis testing?
A z value shows how many standard errors the sample mean is from the hypothesized mean. Larger absolute values suggest stronger evidence against the null hypothesis.
2. When should I use a mean z test?
Use it when testing one sample mean and the population standard deviation is known. The sample should be random, independent, and suitable for normal approximation.
3. What does the p value mean?
The p value is the probability of getting a result as extreme as the sample result, assuming the null hypothesis is true.
4. What is alpha?
Alpha is the chosen significance level. Common values are 0.05, 0.01, and 0.10. It sets the rejection cutoff.
5. What is a two-tailed test?
A two-tailed test checks whether the population mean is different from the hypothesized mean in either direction.
6. What is a left-tailed test?
A left-tailed test checks whether the population mean is less than the hypothesized mean.
7. What is a right-tailed test?
A right-tailed test checks whether the population mean is greater than the hypothesized mean.
8. Can this calculator replace a t test?
No. Use a t test when the population standard deviation is unknown and you estimate variation from the sample.