Wald_WolfowitzTest
javanpst.tests.twoSample.wald_WolfowitzTest

Class Wald_WolfowitzTest



  • public class Wald_WolfowitzTestextends 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 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

      • setData

        public void setData(DataTable newData)
        Sets data to test
        Parameters:
        newData - data to test.
      • 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

SCaVis 1.7 © jWork.org