Computing MGF for Bernoulli Distribution

The moment generating function (MGF) of a binomial variable 𝑋 with parameters 𝑝 and 𝑛 is defined as:

Using the MGF to Compute Moments

Expand ui

Expand ui