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

BinomialTest P-value > 1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Labels:
      None

      Description

      When I use the Binomial Test, I got p-value > 1 for two sided check.

      Example:
      (new BinomialTest()).binomialTest(200, 200, 0.9950429, AlternativeHypothesis.TWO_SIDED) == 1.3701357550780435

      In my case, if the expected p-value is 1 (calculated by package in other language, scipy in this case), the p-value returned could be > 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                wangqiang8511 Wang Qiang
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: