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

MeanTest

MeanTest[list, Mu0]
performs a test with null hypothesis Mu=Mu0.
  • MeanTest[list, Mu0] gives a p-value for the test that the mean of the population from which list was sampled is significantly different from Mu0.
  • If the variance is assumed known, MeanTest is based on the normal distribution.
  • If the variance is not assumed known, MeanTest is based on Student's t distribution with Length[list]-1 degrees of freedom.
  • The following options can be given:
FullReportFalsewhether to include detailed information about a test
KnownVarianceNonevariance of population
SignificanceLevelNonesignificance level of the test
TwoSidedFalsewhether to perform a two-sided test
  • With FullReport->True, MeanTest also returns the sample mean, the test statistic, and the distribution used to generate the p-value.
Needs["HypothesisTesting`"]
A test of the population mean against 0:
In[2]:=
Click for copyable input
Out[2]=