Parametric discrete distributions

Revision as of 01:34, 16 December 2015 by Bbecane (talk | contribs)

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) →

Chapter15 1.png


See Also

Comments


You are not allowed to post comments.