Bernoulli |
Bernoulli distribution is a discrete probability distribution, which takes value 1 with success probability p and value 0 with failure probability q = 1 − p.
Bernoulli class inherits from the Binomial class.
This topic contains the following sections:
Constructor | Description | Performance |
---|---|---|
set success probability | Creates new instance of Bernoulli with user specified success probability. |
Method | Description | Performance |
---|---|---|
pmf | Static probability mass function. | |
cdf | Static cumulative distribution function. | |
inverse cdf | Inverse cumulative distribution function. Is useful for quantile calculation. Function will return value of random variable such that likelihood for this random variable to occur less than or equal to returned value equal to specified pvalue parameter. |
See also inherited methods and properties in the description of parent Binomial class.