Bernoulli Distribution
EssentialPrerequisites
The Bernoulli distribution is the simplest non-trivial random variable: a single binary trial that either succeeds or fails. Every more complex discrete distribution — Binomial, Geometric, Negative Binomial — is built directly on top of it.
Definition
A random variable follows a Bernoulli distribution with parameter , written , if it takes only the values and with
The value is conventionally called success and is called failure. The single parameter is the success probability.
PMF in closed form
The two cases can be combined into a single formula:
CDF
The cumulative distribution function is piecewise constant:
Mean
The expected value of follows directly from the definition of expectation for a discrete random variable:
So : the mean is simply the success probability.
Variance
To compute , first note that because we have , so . Therefore
The variance is maximised at (maximum uncertainty) and collapses to zero at or (the outcome is certain).
Moment generating function
The moment generating function (MGF) of is
This compact expression makes it straightforward to derive the MGF of the Binomial distribution by multiplying independent copies.
Summary
- models a single binary trial with success probability .
- PMF: for .
- Mean: .
- Variance: , maximised at .
- MGF: .
- The Bernoulli distribution is the atomic building block for the Binomial, Geometric, and Negative Binomial distributions.