z = (x̄ − μ₀) / (σ/√n)
Enter the sample mean, sample size and known population standard deviation to test the sample mean against a hypothesised value, choose a left-tail, right-tail or two-sided alternative and return the z statistic with the matching p value.
📐 计算公式
左尾 p=Φ(z);右尾 p=1−Φ(z);双侧 p=2×min(左尾,右尾)。σ 已知时使用 Z 检验。
已知总体标准差时,检验样本均值是否偏离假设值。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Z statistic | z = (xbar - mu0) / (sigma / sqrt(n)) | NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.2 |
| Standard error of the mean | SE = sigma / sqrt(n) | NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.2 |
| Applicability | Exact when sigma is known; approximate via the CLT when n >= 30 | NIST/SEMATECH e-Handbook §1.3.5.2; de Moivre-Laplace central limit theorem |
| Two-sided p-value | p = 2 · (1 - Phi(|z|)), where Phi is the standard normal CDF | NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.2 |
📌 计算说明
- 双侧 p = 2(1−Φ(|z|)),z=2 时双侧 p≈0.0455,在 5% 水平下拒绝 H₀。
- σ 已知时使用 Z 检验。