此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

ChiSquarePValue

ChiSquarePValue[x, df]
gives the cumulative probability beyond x for the Chi2 distribution with df degrees of freedom.
  • The two-sided p-value is twice the one-sided p-value.
  • The following option can be given:
TwoSidedFalsewhether to perform a two-sided test
Needs["HypothesisTesting`"]
The p-value for 10 in a Chi2 distribution with 5 degrees of freedom:
In[2]:=
Click for copyable input
Out[2]=