Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1245

Kolmogorov-Smirnov exactP gives incorrect p-values for some D-statistics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.1, 3.5
    • 4.0, 3.6
    • None
    • None

    Description

      The exactP method in KolmogorovSmirnovTest, which is used by default for small samples in 2-sample tests, can give slightly incorrect p-values in some cases. The reason for this is that p(D > d) is computed by examining all m-n partitions and counting the number of partitions that give D values larger than the observed value. D values are not rounded, so some values that are mathematically identical to the observed value compare less than or greater than it. This results in small errors in the reported p-values.

      Attachments

        Activity

          People

            Unassigned Unassigned
            psteitz Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: