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.Distribution.Binomial

The binomial distribution. This is the discrete probability distribution of the number of successes in a sequence of n independent yes/no experiments, each of which yields success with probability p.

  • 1 type
  • 4 values
datadata BinomialDistribution
#

The binomial distribution.

Instances17Eq, Data, Read, Show, Generic, Binary, …

Constructors

2 declarations
valuebinomial
  1. :: Int

    Number of trials.

  2. -> Double

    Probability.

  3. -> BinomialDistribution
#

Construct binomial distribution. Number of trials must be non-negative and probability must be in [0,1] range

Accessors

2 declarations