Difference between revisions of "Bernoulli distribution"

m (adding doc status category stub page)
Line 1: Line 1:
 
[[Category:Distribution Functions]]
 
[[Category:Distribution Functions]]
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
+
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
  
{{stub}}
+
= Bernoulli( P ) =
 +
 
 +
Creates a discrete probability distribution with probability P of result 1 and probability (1 - P) of result 0. P is a probability value or array of probabilities, each between 0 and 1. The Bernoulli distribution is the same as:
 +
If [[Uniform]](0, 1) < P Then 1 Else 0
 +
If P is greater than 1, the distribution is made up of all 1’s. If P is less than 0, the distribution is made up of all 0’s.
 +
 
 +
To generate bernoulli values that are independent over indexes In1, In2, and In3, use:
 +
Bernoulli( P, Over:In1,In2,In3 )
 +
 
 +
= Library =
 +
 
 +
Distributions
 +
 
 +
= See Also =
 +
 
 +
* [[Uniform]]

Revision as of 23:03, 1 August 2007


Bernoulli( P )

Creates a discrete probability distribution with probability P of result 1 and probability (1 - P) of result 0. P is a probability value or array of probabilities, each between 0 and 1. The Bernoulli distribution is the same as:

If Uniform(0, 1) < P Then 1 Else 0

If P is greater than 1, the distribution is made up of all 1’s. If P is less than 0, the distribution is made up of all 0’s.

To generate bernoulli values that are independent over indexes In1, In2, and In3, use:

Bernoulli( P, Over:In1,In2,In3 )

Library

Distributions

See Also

Comments


You are not allowed to post comments.