HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestatistics-0.16.3.0Haskell2010

Statistics.ConfidenceInt

Calculation of confidence intervals

  • 4 values
valuenaiveBinomialCI
  1. :: Int

    Number of trials

  2. -> Int

    Number of successes

  3. -> Estimate NormalErr Double
#

Calculate confidence interval using normal approximation. Note that this approximation breaks down when p is either close to 0 or to 1. In particular if np < 5 or 1 - np < 5 this approximation shouldn't be used.

References

0 declarations
  • Clopper, C.; Pearson, E. S. (1934). "The use of confidence or fiducial limits illustrated in the case of the binomial". Biometrika 26: 404–413. doi:10.1093biomet26.4.404

  • Brown, Lawrence D.; Cai, T. Tony; DasGupta, Anirban (2001). "Interval Estimation for a Binomial Proportion". Statistical Science 16 (2): 101–133. doi:10.1214ss1009213286. MR 1861069. Zbl 02068924.