Copyright | (c) 2022 Lorenz Minder |
---|---|
License | BSD3 |
Maintainer | lminder@gmx.net |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The negative binomial distribution. This is the discrete probability distribution of the number of failures in a sequence of independent yes/no experiments before a specified number of successes r. Each Bernoulli trial has success probability p in the range (0, 1]. The parameter r must be positive, but does not have to be integer.
Documentation
data NegativeBinomialDistribution Source #
The negative binomial distribution.
Instances
Constructors
:: Double | Number of successes. |
-> Double | Success probability. |
-> NegativeBinomialDistribution |
Construct negative binomial distribution. Number of failures r must be positive and probability must be in (0,1] range
:: Double | Number of successes. |
-> Double | Success probability. |
-> Maybe NegativeBinomialDistribution |
Construct negative binomial distribution. Number of failures r must be positive and probability must be in (0,1] range
Accessors
nbdSuccesses :: NegativeBinomialDistribution -> Double Source #
Number of successes until stop
nbdProbability :: NegativeBinomialDistribution -> Double Source #
Success probability.