Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistics > Statistical Distributions > Discrete Statistical Distributions >
Mathematica > Mathematics and Algorithms > Statistics > Statistical Distributions > Discrete Statistical Distributions >

BernoulliDistribution

BernoulliDistribution[p]
represents a Bernoulli distribution with probability parameter p.
  • Bernoulli distribution gives value x=1 with probability p, and x=0 with probability 1-p.  »
Mean and variance of a Bernoulli distribution:
Probability density function:
Mean and variance of a Bernoulli distribution:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Probability density function:
In[1]:=
Click for copyable input
Out[1]=
Generate a set of pseudorandom numbers that are Bernoulli distributed:
Properties based on higher-order moments:
Second moment of a Bernoulli distribution:
The q^(th) quantile of a Bernoulli distribution:
Simulate a sequence of fair coin tosses:
The probability of getting anything other than zero and one is zero:
Every moment of a Bernoulli random variable is p:
BernoulliDistribution is equivalent to BinomialDistribution of one trial:
BernoulliDistribution is not defined when p is not between zero and one:
Substitution of invalid parameters into symbolic outputs gives results that are not meaningful:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team