No menu items!

Bernoulli Distribution


The bernoulli distribution allows us to calculate the probabilities for a random variable that takes only two values – 0 and 1.

What is a Bernoulli trial?

An experiment in which there are only two possible outcomes – success and failure. An example of a bernoulli trial is the tossing of a coin since there are only two possible outcomes in this case – heads or tails. We denote either one of the outcomes, say heads as success and the other outcome is called failure.

The bernoulli random variable is defined so that it takes the value 1 when success occurs and 0 when failure occurs.

Bernoulli Distribution PDF Formula:

Let ‘p’ denote the probability of success. Hence, the probability of failure is equal to ‘1-p’. The probability distribution of the bernoulli random variable is given as,

P(X=x) = \begin{cases}p, & \text{if } x=1\text{ (success occurs) } \\ 1-p, & \text{if } x=0\text{ (failure occurs) }\end{cases}

The CDF (cumulative distribution function) F(x) for the Bernoulli Distribution is given as,

F(X) = \begin{cases}1-p, & \text{if } x=0 \\ 1 & \text{if } x=1\end{cases}


  1. The expected value/mean of the bernoulli distribution is given as, E(X) = p
  2. The variance of the bernoulli distribution is given as, V(X) = p(1-p)
  3. The moment generating function (mgf) of the bernoulli distribution is given as, M_X(t) = (1-p)+pe^t
  4. The sum of ‘n’ independent bernoulli random variables, follows the binomial distribution with parameter ‘n’ and ‘p’.

Hey 👋

I'm currently pursuing a Ph.D. in Maths. Prior to this, I completed my master's in Maths & bachelors in Statistics.

I created this website for explaining maths and statistics concepts in the simplest possible manner.

If you've found value from reading my content, feel free to support me in even the smallest way you can.

Share this article

Recent posts

Popular categories

Previous articleBinomial Coefficient
Next articleSampling error


Please enter your comment!
Please enter your name here

Recent comments