卡在這題?用 AI 解開它
Statistics · real student question

某檢定得到統計量 卡方(1) = 137.38。求 p 值。

Question

某假設檢定在 11 個自由度下產生統計量 χ2(1)=137.38\chi^2(1) = 137.38。求對應的 pp 值並加以解讀。

Step-by-step solution

  1. 先弄清楚這裡的 p 值是什麼。 pp 值就是上尾機率 P ⁣(χ12≥137.38)P\!\left(\chi^2_1 \ge 137.38\right):在虛無假設為真的前提下,看到至少這麼極端的統計量的機會。卡方檢定永遠是右側單尾,因為偏離的兩個方向都會把統計量推大。

  2. 用自由度 1 的卡方與標準常態之間的恆等關係。 若 Z∼N(0,1)Z\sim N(0,1) 則 Z2∼χ12Z^2 \sim \chi^2_1。因此 P ⁣(χ12≥c)=P ⁣(∣Z∣≥c)=2(1−Φ ⁣(c)).P\!\left(\chi^2_1 \ge c\right) = P\!\left(|Z| \ge \sqrt{c}\right) = 2\left(1-\Phi\!\left(\sqrt{c}\right)\right). 這就把一個不好查的卡方尾端,換成了熟悉的常態尾端。

  3. 把統計量換算成 z 分數。 137.38=11.720921…\sqrt{137.38} = 11.720921\ldots 所以觀察到的效果離虛無值將近 11.711.7 個標準誤。

  4. 求出雙尾的常態尾端機率。 用封閉形式 2(1−Φ(z))=erfc⁡ ⁣(z/2)2\left(1-\Phi(z)\right)=\operatorname{erfc}\!\left(z/\sqrt{2}\right),於是 p=erfc⁡ ⁣(137.38/2)=erfc⁡(8.287943)≈9.96×10−32.p = \operatorname{erfc}\!\left(\sqrt{137.38/2}\right) = \operatorname{erfc}(8.287943) \approx 9.96\times 10^{-32}.

  5. 用漸近尾端估計確認。 當 zz 很大時 1−Φ(z)≈e−z2/2z2π1-\Phi(z)\approx \dfrac{e^{-z^2/2}}{z\sqrt{2\pi}},代入得 p≈2e−68.6911.72092π≈1.00×10−31p \approx \dfrac{2e^{-68.69}}{11.7209\sqrt{2\pi}} \approx 1.00\times10^{-31} — 數量級相同,所以前面算出的值可信。

  6. 解讀結果。 由於 p≈10−31p \approx 10^{-31} 遠遠小於 0.050.05 或 0.0010.001 這類常用門檻,虛無假設可以毫無疑義地被拒絕。統計軟體常把它印成 p < 0.001 甚至 p = 0;報告時應寫成 p<0.001p<0.001,而不要字面上寫成零。

Answer

p=P ⁣(χ12≥137.38)=erfc⁡ ⁣(137.38/2)≈9.96×10−32(p<0.001)p = P\!\left(\chi^2_1 \ge 137.38\right) = \operatorname{erfc}\!\left(\sqrt{137.38/2}\right) \approx 9.96\times 10^{-32} \quad (p < 0.001)

Need to solve a different problem like this? Open the solver →