Bernoulli Distribution

Compact study note.

Summary

Bernoulli distribution models a success/failure trial coded with 1 for success and 0 for failure.[1]

Prerequisites

Definition

XBernoulli(p) when P(X=1)=p and P(X=0)=1p .

Notation and Assumptions

Use single trial only. For multiple independent Bernoulli trials, use binomial model.

Parameters

p is the success probability with 0p1 .

Support

{0,1} .

PMF or PDF

P(X=x)=px(1p)1x for x{0,1} .

CDF

FX(x)=0 for x<0 , 1p for 0x<1 , and 1 for x1 .

Moments

E[X]=p , Var(X)=p(1p) , and MX(t)=1p+pet .

Essential Result

One Bernoulli variable is the building block for binomial, geometric, and negative binomial distributions.

Small Example

For biased coin with P(H)=0.7 , let X=1 for heads. Then

P(X=1)=0.7,E[X]=0.7,Var(X)=0.21.

Common Mistakes

Connections

References


  1. OpenStax, Introductory Statistics 2e, "Chapter 4: Discrete Random Variables", https://openstax.org/books/introductory-statistics-2e/pages/4-introduction ↩︎