Calculator
Plotly Graph
Example Data Table
| Property | Tail | α | μ₀ | x̄ | σ | n | z | Decision |
|---|---|---|---|---|---|---|---|---|
| Nitrate concentration | Right | 0.05 | 10.00 | 11.20 | 2.50 | 36 | 2.88 | Reject H₀ |
| Purity percentage | Two | 0.01 | 99.50 | 99.10 | 0.30 | 25 | -6.67 | Reject H₀ |
| Chloride level | Left | 0.05 | 4.00 | 3.72 | 0.80 | 49 | -2.45 | Reject H₀ |
| Buffer pH mean | Two | 0.05 | 7.00 | 7.06 | 0.20 | 64 | 2.40 | Reject H₀ |
Formula Used
For a known population standard deviation, the z test statistic is:
z = (x̄ - μ₀) / (σ / √n)
Standard error is:
SE = σ / √n
Critical values depend on the selected tail type:
Right-tailed: zcrit = z(1 - α)Left-tailed: zcrit = z(α)Two-tailed: ± z(1 - α/2)
Decision rules:
- Right-tailed: reject if
z ≥ zcrit - Left-tailed: reject if
z ≤ zcrit - Two-tailed: reject if
|z| ≥ zcrit
When sample statistics are entered, the calculator also converts critical z values into critical sample mean boundaries.
How to Use This Calculator
- Enter the chemical property and the measurement unit.
- Select whether to calculate z from sample statistics or enter z directly.
- Choose the hypothesis tail type that matches your test design.
- Enter the significance level and desired decimal precision.
- For sample mode, enter hypothesized mean, sample mean, population standard deviation, and sample size.
- For direct mode, enter the already calculated z score.
- Press the calculate button to see the rejection region, critical values, p value, and decision.
- Review the graph, then export the summary as CSV or PDF if needed.
Frequently Asked Questions
1. What does the rejection region mean in a chemistry test?
The rejection region contains z values that are statistically extreme under the null hypothesis. If your observed z falls there, the sample gives enough evidence to reject the claimed chemical mean.
2. When should I use a z test instead of a t test?
Use a z test when the population standard deviation is known or reliably established. In many controlled chemistry workflows, instrument validation or process history may justify that assumption.
3. What is the difference between right, left, and two tailed tests?
A right-tailed test checks for a mean above the target. A left-tailed test checks below the target. A two-tailed test checks for any meaningful difference in either direction.
4. Why does alpha change the rejection boundary?
Alpha controls how much false rejection risk you allow. A smaller alpha makes the critical z value more extreme, so stronger evidence is needed before rejecting the null hypothesis.
5. Can I enter a z score directly?
Yes. Direct mode is useful when another instrument, script, or worksheet already produced the z statistic. The calculator will still find critical values, p value, and the decision.
6. What is the critical sample mean boundary?
It is the sample mean value where the test begins to reject the null hypothesis. The calculator converts critical z values into sample mean cutoffs when standard deviation and sample size are provided.
7. How is this useful in laboratory quality control?
It helps analysts compare measured batch means against regulatory limits, formulation targets, or validated reference values. That supports quick pass fail interpretation during routine quality review.
8. Does rejecting the null prove the chemistry is unsafe?
No. It shows statistical evidence that the mean differs from the claimed value under the chosen assumptions. Safety, compliance, and technical significance still require scientific interpretation.