dBinomial¶
- dBinomial(n, p, k)¶
probability distribution function of a binomial distribution.
- Parameters:
- nint,
The number of trials.
- pfloat,
The success probability of each trial.
- kint
The number of success.
- Returns:
- probabilityfloat
The probability to get successes.
Notes
This method implements Loader’s algorithm, the fast and accurate method described in [loader2000], with the further improvements mentioned in [dimitriadis2016].
Examples
>>> import openturns as ot >>> p = ot.DistFunc.dBinomial(5, 0.2, 2)