javanpst.tests.twoSample.wald_WolfowitzTest
Class Wald_WolfowitzTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.twoSample.wald_WolfowitzTest.Wald_WolfowitzTest
-
public class Wald_WolfowitzTest extends StatisticalTest
The Wald-Wolfowitz test. This tests maps the values of the ordered combined sample into a string sequence (e.g. XXYXYY, where X are the values of the first sample and Y are the values of the second sample). Then a Total Number of Runs test is carried out, where the alternative hypothesis (distinct distributions) is accepted when there are too few runs. The exact and the asymptotic p-values of the Total Number of Runs test is provided.
-
-
Constructor Summary
Constructors Constructor and Description Wald_WolfowitzTest()Default builderWald_WolfowitzTest(DataTable newData)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearData()Clears the data stored in the testvoiddoTest()Performs the testdoublegetAsymptoticPValue()Get asymptotic p-valuedoublegetExactPValue()Get exact p-valuedoublegetR()Get R statistic (number of runs)java.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
Wald_WolfowitzTest
public Wald_WolfowitzTest()
Default builder
-
Wald_WolfowitzTest
public Wald_WolfowitzTest(DataTable newData)
Builder. Load data to test.- Parameters:
newData- data to test.
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(DataTable newData)
Sets data to test- Parameters:
newData- data to test.
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getR
public double getR()
Get R statistic (number of runs)- Returns:
- R statistic
-
getExactPValue
public double getExactPValue()
Get exact p-value- Returns:
- p-value computed
-
getAsymptoticPValue
public double getAsymptoticPValue()
Get asymptotic p-value- Returns:
- p-value computed
-
printData
public java.lang.String printData()
Prints the data stored in the test- Specified by:
printDatain classStatisticalTest- Returns:
- Data stored
-
printReport
public java.lang.String printReport()
Prints a report with the results of the test- Specified by:
printReportin classStatisticalTest- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG