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 檢驗。