Value | Meaning |
---|---|
direct | Direct |
approxNormal | Approximates binomial distribution with normal distribution. Generally a better approximation when n > 20 and p is far from 0 or 1, but a variety of rules of thumb can help determine when it is appropriate to use. |
approxNormalContinuityCorrection | Approximates binomial distribution with normal distribution (including continuity correction). More accurate than BinomialAlgo.approxNormal. |
approxPoisson | Approximates binomial distribution with poisson distribution (also requires specifying poissonAlgo). Generally a better approximation when n >= 20 and p <= 0.05 or when n >= 100 and np <= 10. |
Algorithms used to calculate binomial distribution.
BinomialAlgo.direct can be more time-consuming for large values of the number of events (k) or the number of trials (n). Additional algorithms are provided to the user to choose the trade-off between running time and accuracy.