Parametric discrete distributions
Bernoulli(p)
Defines a discrete probability distribution with probability p of result 1 and probability (1 - p) of result 0. It generates a sample containing 0s and 1s, with the proportion of 1s is approximately p. p is a probability between 0 and 1, inclusive, or an array of such probabilities. The Bernoulli distribution is equivalent to:
If Uniform(0, 1) < P Then 1 Else 0
Library: Distribution
Example: The domain, List of numbers, is [0, 1].
Bernoulli_ex := Bernoulli (0.3) →
See Also
Comments
Enable comment auto-refresher