HypothesisTesting`
HypothesisTesting`

MeanTest

MeanTest[list,μ0]

performs a test with null hypothesis μ=μ0.

更多信息和选项

  • To use MeanTest, you first need to load the Hypothesis Testing Package using Needs["HypothesisTesting`"].
  • MeanTest[list,μ0] gives a value for the test that the mean of the population from which list was sampled is significantly different from μ0.
  • 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 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 -value.

范例

打开所有单元关闭所有单元

基本范例  (1)

A test of the population mean against 0:

Options  (4)

FullReport  (1)

A full report for a mean test:

KnownVariance  (1)

A test assuming the population variance is 5:

SignificanceLevel  (1)

A test at significance level .01:

TwoSided  (1)

A twosided mean test:

Wolfram Research (2007),MeanTest,Wolfram 语言函数,https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html.

文本

Wolfram Research (2007),MeanTest,Wolfram 语言函数,https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html.

CMS

Wolfram 语言. 2007. "MeanTest." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html.

APA

Wolfram 语言. (2007). MeanTest. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html 年

BibTeX

@misc{reference.wolfram_2024_meantest, author="Wolfram Research", title="{MeanTest}", year="2007", howpublished="\url{https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_meantest, organization={Wolfram Research}, title={MeanTest}, year={2007}, url={https://reference.wolfram.com/language/HypothesisTesting/ref/MeanTest.html}, note=[Accessed: 22-November-2024 ]}