WilksWTest
WilksWTest[m1,m2]
tests whether the matrices m1 and m2 are independent.
WilksWTest[…,"property"]
returns the value of "property".
Details and Options
- WilksWTest performs a hypothesis test on m1 and m2 with null hypothesis that the matrices are linearly independent, and alternative hypothesis that they are not.
- By default a probability value or -value is returned.
- A small -value suggests that it is unlikely that is true.
- The arguments m1 and m2 can be any real-valued vectors or matrices of equal length.
- WilksWTest is based on Wilks's statistic computed by WilksW[m1,m2].
- WilksWTest[m1,m2,"HypothesisTestData"] returns a HypothesisTestData object htd that can be used to extract additional test results and properties using the form htd["property"].
- WilksWTest[m1,m2,"property"] can be used to directly give the value of "property".
- Properties related to the reporting of test results include:
-
"DegreesOfFreedom" the degrees of freedom used in the test "PValue" the -value of the test "PValueTable" formatted table containing the -value "ShortTestConclusion" a short description of the conclusion of the test "TestConclusion" a description of the conclusion of the test "TestData" a list containing the test statistic and -value "TestDataTable" formatted table of the -value and test statistic "TestStatistic" the test statistic "TestStatisticTable" formatted table containing the test statistic - The following options can be used:
-
Method Automatic the method to use for computing -values SignificanceLevel 0.05 cutoff for diagnostics and reporting VerifyTestAssumptions Automatic what assumptions to verify - For tests of independence, a cutoff is chosen such that is rejected only if . The value of used for the "TestConclusion" and "ShortTestConclusion" properties is controlled by the SignificanceLevel option. This value is also used in diagnostic tests of normality. By default is set to 0.05.
- Named settings for VerifyTestAssumptions in IndependenceTest include:
-
"Normality" verify that all data is normally distributed
Examples
open allclose allBasic Examples (2)
Scope (8)
Testing (5)
Test whether two vectors are independent:
The -values are typically large when the vectors are independent:
The -values are typically small when there are dependencies:
Test whether two matrices are independent:
The -values are typically small for dependent matrices:
The -values are typically large when matrices are independent:
Create a HypothesisTestData object for repeated property extraction:
The properties available for extraction:
Extract some properties from the HypothesisTestData object:
The -value and test statistic:
Options (10)
Method (4)
SignificanceLevel (2)
VerifyTestAssumptions (4)
By default normality is tested when appropriate:
Diagnostics can be controlled as a group using All or None:
Diagnostics can be controlled independently:
Explicitly set the diagnostic result:
It is often useful to bypass diagnostic tests for simulation purposes:
The assumptions of the test hold by design, so a great deal of time can be saved:
Properties & Relations (4)
WilksWTest uses the WilksW measure as a test statistic:
The -value is computed using a ChiSquareDistribution[r*s]:
WilksWTest is one of the tests available to IndependenceTest:
IndependenceTest automates the choice of test:
Wilk's W test works with the values only when the input is a TimeSeries:
The Wilk's W test works with all the values together when the input is a TemporalData:
Text
Wolfram Research (2012), WilksWTest, Wolfram Language function, https://reference.wolfram.com/language/ref/WilksWTest.html.
CMS
Wolfram Language. 2012. "WilksWTest." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WilksWTest.html.
APA
Wolfram Language. (2012). WilksWTest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WilksWTest.html