The Bernoulli distribution is a discrete probability distribution
with the only two possible values for the random variable. Each instance
of an event with a Bernoulli distribution is called a Bernoulli trial.
The Bernoulli distribution uses the following parameter.
Probability of success
Probability Mass Function
The probability mass function (pmf) is
The mean is
The variance is
Relationship to Other Distributions
The Bernoulli distribution is a special case of the binomial distribution,
with the number of trials n = 1. The geometric distribution models
the number of Bernoulli trials before the first success (or first