Computing MGF for Bernoulli Distribution

The moment generating function (MGF) of a Bernoulli variable 𝑋 with parameter 𝑝 is defined as:

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

Using the MGF to Compute Moments

Expand ui

Expand ui