Moment Generating Functions

MX(t)=E(etX)=∑xetxf(x)discreteMX(t)=E(etX)=∫−∞∞etxf(x)dxcontinuous

The function can be used to find an specific moment:

μr′=E(Xr)=drMX(t)dtr|t=0

as we want to evaluate at t=0, we handle the function considering t to be a very small value, t∈(−δ,δ)

Using the series expansion for etx we arrive at a form for the function that resembles a Taylor Series

m(t)=1+tμ1′+t22!μ2′+t33!μ3′+…

Taking the derivative removes the unwanted terms from the left, evaluating at t=0 eliminates everything from the right

If a and b are constants:

1.MX+a(t)=E[e(X+a)t]=eat⋅MX(t)2.MbX(t)=E[ebXt]=MX(bt)3.MX+ab(t)=E[e(x+ab)t]=E[eabt]MX(tb)

The problem with MGFs is that they don't always exist

φX(t)=E(eitX),i=−1

always exists for any distribution

Properties

If X and Y have the same MGF → they must have the same pdf

  1. Suppose X∼f(x), if MX(t) exists then MX(t) and f(x) have a one-to-one correspondence

  2. Suppose X and Y are two random variables such that

MX(t)⟶MY(t) thenfX(x)⟶fY(y)∀x,∀y

If Y=aX+b then

MY(t)=ebtMX(at)

If X and Y are independent then

MX+Y(t)=MX(t)MY(t)

Binomial Distribution

X∼binom(n,p)

MX(t)=E(ext)=∑extf(x)=∑x=0next(nx)px(1−p)n−x=∑x=0n(nx)(etp)x(1−p)n−x(binomial expansion)=[etp+(1−p)]n=[1+p(et−1)]n

Factorial

FMX(t)=E(tX)=∑xtxf(x)

rth factorial moment

μ(r)′=E[X(X−1)(X−2)…(X−r+1)]=drdtrFMX(t)|t=1

Poisson Distribution

MX(t)=E(ext)=∑x=0∞exte−λλxx!eetλ is a constant=e−λeetλ∑x=0∞e−etλ(etλ)xx!=e−λeetλ⋅1(pmf of poisson)=eλ(et−1)

Gamma Distribution

MX(t)=E(etX)=∫−∞∞etx1βαΓ(α)xα−1e−x/βdx=1βαΓ(α)∫0∞etx−x/βxα−1dx|t=0=1βαΓ(α)∫0∞e−x(1/β−t)xα−1dx(u=x(1β−t))=1βαΓ(α)∫0∞e−u(u1β−t)α−1du1β−t(x=u1β−t,dx=du(1β−t))=1βαΓ(α)(11β−t)α∫0∞e−uuα−1du=(1β−t)−α1βαΓ(α)Γ(α)=((1β−t)β)−αMX(t)=(1−tβ)−α

Exponential Distribution

MX(t)=E(etX)=∫0∞etx1λe−x/λdx=1λ∫0∞e−(1/λ−t)xdx=1λ11λ−t∫0∞(1λ−t)e−(1/λ−t)xdx=11−λt⋅1(pdf of exp⁡(0))