represents hypothesis test data such as generated by DistributionFitTest, AndersonDarlingTest, etc.
HypothesisTestData
represents hypothesis test data such as generated by DistributionFitTest, AndersonDarlingTest, etc.
Details
- A HypothesisTestData[…] object htd, can be used to retrieve additional data and reports through htd["property"].
- A list of available properties is given by htd["Properties"]. Additional information about the properties is listed on the pages for functions such as DistributionFitTest.
- Typical properties include:
-
"PValue" list of
-values"PValueTable" formatted table of
-values"TestData" list of pairs of test statistics and
-values"TestDataTable" formatted table of
-values and test statistics"TestStatistic" list of test statistics "TestStatisticTable" formatted table of test statistics
Examples
open all close allBasic Examples (1)
Create a HypothesisTestData object using DistributionFitTest:
data = RandomVariate[NormalDistribution[], 100];ℋ = DistributionFitTest[data, Automatic, "HypothesisTestData"]Obtain a list of available properties:
ℋ["Properties"]ℋ["TestDataTable"]Scope (6)
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ["AutomaticTest"]Named tests report
-values by default:
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ["KolmogorovSmirnov"]ℋ["AndersonDarling"]Use named tests in combination with reporting properties:
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ["TestDataTable", "KolmogorovSmirnov"]ℋ["TestStatistic", "KolmogorovSmirnov"]ℋ["PValue", "KolmogorovSmirnov"]ℋ["TestData", "KolmogorovSmirnov"]Using reporting properties alone is equivalent to combining them with Automatic:
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ["TestDataTable", Automatic]ℋ["TestDataTable"]Determine which test will be chosen automatically:
ℋ["AutomaticTest"]Build up tables with a selection of tests:
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ["TestDataTable", {"KolmogorovSmirnov", "AndersonDarling"}]Extract any number of properties simultaneously:
ℋ = DistributionFitTest[RandomVariate[NormalDistribution[], 100], Automatic, "HypothesisTestData"]ℋ[{"TestDataTable", "TestData", "TestStatistic", "PValue"}]Related Guides
History
Text
Wolfram Research (2010), HypothesisTestData, Wolfram Language function, https://reference.wolfram.com/language/ref/HypothesisTestData.html.
CMS
Wolfram Language. 2010. "HypothesisTestData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HypothesisTestData.html.
APA
Wolfram Language. (2010). HypothesisTestData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HypothesisTestData.html
BibTeX
@misc{reference.wolfram_2026_hypothesistestdata, author="Wolfram Research", title="{HypothesisTestData}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/HypothesisTestData.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_hypothesistestdata, organization={Wolfram Research}, title={HypothesisTestData}, year={2010}, url={https://reference.wolfram.com/language/ref/HypothesisTestData.html}, note=[Accessed: 13-June-2026]}