logo

Bernoulli Distribution 📂Probability Distribution

Bernoulli Distribution

Definition1

For p[0,1]p \in [0, 1], a discrete probability distribution with the following probability mass function is referred to as a Bernoulli distribution.

f(x)=px(1p)1x,x=0,1 f(x) = p^{x}(1-p)^{1-x}, \qquad x = 0, 1

Description

This distribution is used when describing an experiment with only two possible outcomes, such as a coin toss. Because there are two possible outcomes, x=1x = 1 is commonly referred to as a success and x=0x = 0 as a failure. The probability of success is denoted as pp, and the probability of failure as q=1pq = 1 - p. Conducting an experiment where there are only two possible outcomes is known as a Bernoulli trial.

When the number of trials is generalized to nn times, it results in a binomial distribution. Conversely, a Bernoulli distribution can be viewed as a special case of the binomial distribution when n=1n = 1 becomes Bin(1,p)\operatorname{Bin}(1, p).

When the possible outcomes (categories) are generalized from two to kk, it becomes a 🔒(25/06/05)categorical distribution. If both the number of trials and categories are generalized, it becomes a multinomial distribution.

Category Number of Trials
11 timesnn times
22 categoriesBernoulli distributionBinomial distribution
kk categoriesCategorical distributionMultinomial distribution

Basic Properties

🔒(25/06/07)Moment Generating Function

The moment generating function of a Bernoulli distribution is as follows.

m(t)=1p+pet=q+pet,q=1p m(t) = 1 - p + pe^{t} = q + pe^{t}, \qquad q = 1 - p

🔒(25/06/09)Mean and Variance

If XBin(1,p)X \sim \operatorname{Bin}(1, p), then

E(X)=p E(X) = p Var(X)=p(1p)=pq,q=1p \Var(X) = p(1-p) = pq, \qquad q = 1 - p


  1. Hogg et al. (2018). Introduction to Mathematical Statistcs(8th Edition): p155-157 ↩︎