The Bernoulli distribution is a univariate discrete distribution used to model random experiments that have binary outcomes.
Suppose that you perform an experiment with two possible outcomes: either success or failure.
Success happens with probability
,
while failure happens with probability
.
A random variable that takes value
in case of success and
in case of failure is called a Bernoulli random variable (alternatively, it is
said to have a Bernoulli distribution).
Bernoulli random variables are characterized as follows.
Definition
Let
be a discrete random
variable. Let its
support
be
Let
.
We say that
has a Bernoulli distribution with parameter
if its probability mass
function
is
Note that, by the above definition, any indicator function is a Bernoulli random variable.
The following is a proof that
is a legitimate probability mass function.
Non-negativity is obvious. We need to prove
that the sum of
over its support equals
.
This is proved as
follows:
The expected value of a Bernoulli random variable
is
It
can be derived as
follows:
The variance of a Bernoulli random variable
is
It
can be derived thanks to the usual
variance formula
():
The moment generating function of a
Bernoulli random variable
is defined for any
:
Using
the definition of moment generating function, we
getObviously,
the above expected value exists for any
.
The characteristic function of a Bernoulli random
variable
is
Using
the definition of characteristic function, we
obtain
The distribution function
of a Bernoulli random variable
is
Remember the definition of distribution
function:and
the fact that
can take either value
or value
.
If
,
then
because
can not take values strictly smaller than
.
If
,
then
because
is the only value strictly smaller than
that
can take. Finally, if
,
then
because all values
can take are smaller than or equal to
.
A sum of independent Bernoulli random variables is a binomial random variable. This is discussed and proved in the lecture entitled Binomial distribution.
Below you can find some exercises with explained solutions.
Let
and
be two independent Bernoulli random variables with parameter
.
Derive the probability mass function of their
sum
The probability mass function of
is
The
probability mass function of
is
The
support of
(the set of values
can take)
is
The
convolution formula for the
probability mass function of a sum of two independent variables
is
where
is the support of
.
When
,
the formula
gives
When
,
the formula
gives
When
,
the formula
gives
Therefore,
the probability mass function of
is
Let
be a Bernoulli random variable with parameter
.
Find its tenth moment.
The moment
generating function of
is
The
tenth moment of
is equal to the tenth derivative of
its moment generating function, evaluated at
:
But
so
that
Please cite as:
Taboga, Marco (2021). "Bernoulli distribution", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/probability-distributions/Bernoulli-distribution.
Most of the learning materials found on this website are now available in a traditional textbook format.