A random variable with two possible values, 0 and 1, is called a Bernoulli variable, its discrete probability distribution (i.e. probability mass function) is called a Bernoulli distribution, and any experiment with a binary outcome is called a Bernoulli trial

Probability Mass Function

For 𝑥 = 0 or 1

Expectation

the expected value of a Bernoulli Variable 𝑋 with a probability of success 𝑃(𝑋=1) = 𝑝:

𝐄(𝑋) = 𝑝

Variance

the variance of a Bernoulli Variable 𝑋 with a probability of success 𝑃(𝑋=1) = 𝑝:

𝑉𝑎𝑟(𝑋) = 𝑝(1−𝑝)

Moment-Generating Function

  • 𝑀𝑋(𝑡) = 1 - 𝑝 + 𝑒𝑡𝑝

See: Moment-Generating Function - Bernoulli Distribution

Other Distributions Using Bernoulli Distribution

The Bernoulli Distribution is the simplest discrete distribution, and it is the building block for other more complicated discrete distributions

distribution

definition

binomial distribution

number of successes in 𝑛 trials

geometric distribution

number of failures before the first success

negative binomial distribution

number of failures before the 𝑥th success