Probability
4. Advanced Distributions
Moments & MGFs

Moments and MGFs

Moments are summary statistics of a distribution. They capture location, spread, and shape.

Moments (raw vs central)

  • Raw moment: E[Xn]E[X^n]
  • Central moment: E[(Xμ)n]E[(X-\mu)^n] where μ=E[X]\mu = E[X]

Common moments:

  • Mean: E[X]E[X]
  • Variance: Var(X)=E[(Xμ)2]=E[X2]μ2\mathrm{Var}(X)=E[(X-\mu)^2] = E[X^2]-\mu^2
  • Skewness (shape): based on E[(Xμ)3]E[(X-\mu)^3]
  • Kurtosis (tails/peakedness): based on E[(Xμ)4]E[(X-\mu)^4]

Moment Generating Function (MGF)

The MGF is

MX(t)=E[etX].M_X(t)=E[e^{tX}].

Why it’s useful:

  • Differentiating at t=0t=0 gives raw moments:
MX(n)(0)=E[Xn].M_X^{(n)}(0)=E[X^n].
  • If an MGF exists in a neighborhood around 00, it uniquely identifies the distribution.

Note: Some distributions don’t have an MGF (e.g., Cauchy). In those cases people often use the characteristic function instead.

Test Your Knowledge

Example: Using the MGF for a Poisson

The Moment Generating Function of a Poisson distribution with rate λ\lambda is MX(t)=eλ(et1)M_X(t) = e^{\lambda(e^t - 1)}. Use the MGF to find the First Moment (the Mean) of the Poisson distribution.

View Step-by-Step Solution

To find the first moment, we take the first derivative of the MGF with respect to tt, and evaluate it at t=0t=0.

ddtMX(t)=ddteλ(et1)\frac{d}{dt} M_X(t) = \frac{d}{dt} e^{\lambda(e^t - 1)}

Using the chain rule:

MX(t)=eλ(et1)ddt[λ(et1)]=eλ(et1)(λet)M_X'(t) = e^{\lambda(e^t - 1)} \cdot \frac{d}{dt}[\lambda(e^t - 1)] = e^{\lambda(e^t - 1)} \cdot (\lambda e^t)

Evaluate at t=0t=0:

MX(0)=eλ(e01)(λe0)=eλ(11)λ=λM_X'(0) = e^{\lambda(e^0 - 1)} \cdot (\lambda e^0) = e^{\lambda(1 - 1)} \cdot \lambda = \lambda

Thus, the Mean of the Poisson distribution is exactly λ\lambda.