Neural Sync Active
Week 6.1: Moment Generating Functions
Registry Synced
Week 6.1: Moment Generating Functions
444 words
2 min read
Reading compass
Now · 1. Intuition: A "Generating" Function
Week 6.1: Moment Generating Functions
Prerequisites: Expectation (Week 3.1: Expected Value), Independence (Week 2.3: Independence of Random Variables) Cross-links: BSMA1001 (Maths 1) — series expansions Core question: Is there a single function that encodes all moments of a distribution?
1. Intuition: A "Generating" Function
The moment generating function (MGF) MX(t) is a function whose derivatives at t=0 give the moments of X:
If you know the MGF, you know all moments — and often the entire distribution.
2. Definition
>MX(t)=E[etX],>Definition (MGF) For a random variable X, the MGF is:
defined for t in a neighbourhood of 0 where the expectation exists. For discrete: MX(t)=∑xetxfX(x) For continuous: MX(t)=∫−∞∞etxfX(x)dx
3. Key Properties
- MX(0)=1
- MX(k)(0)=E[Xk] — the k-th derivative at 0 gives the k-th moment
- MaX+b(t)=ebtMX(at)
- If X and Y are independent: MX+Y(t)=MX(t)⋅MY(t)
- If MX(t)=MY(t) in a neighbourhood of 0, then X and Y have the same distribution
4. MGFs of Common Distributions
| Distribution | MGF MX(t) |
|---|---|
| Bernoulli( p ) | 1−p+pet |
| Binomial( n,p ) | (1−p+pet)n |
| Poisson( λ ) | exp(λ(et−1)) |
| Geometric( p ) | 1−(1−p)etpet |
| Normal( μ,σ2 ) | exp(μt+2σ2t2) |
| Exponential( λ ) | λ−tλ , t<λ |
| Uniform( a,b ) | t(b−a)etb−eta |
5. Using MGFs: Sum of Independent Normals
Let X∼N(μ1,σ12), Y∼N(μ2,σ22) independent.
MX(t)=exp(μ1t+σ12t2/2), MY(t)=exp(μ2t+σ22t2/2).
MX+Y(t)=exp((μ1+μ2)t+(σ12+σ22)t2/2)=MGF of N(μ1+μ2,σ12+σ22).
So X+Y∼N(μ1+μ2,σ12+σ22).
6. Practice Questions
Q1 (Easy)
X∼Poisson(3). Find MX(t) and use it to find E[X].
Full SolutionMX(t)=exp(3(et−1)).MX′(t)=exp(3(et−1))⋅3et, so E[X]=MX′(0)=exp(0)⋅3=3. ✓
Q2 (Medium)
X∼Exp(2). Find MX(t) and E[X2].
Full SolutionMX(t)=2−t2 for t<2.MX′(t)=(2−t)22, MX′′(t)=(2−t)34.E[X]=MX′(0)=2/4=1/2. E[X2]=MX′′(0)=4/8=1/2.
Next topic: Week 6.2: Sampling Distributions — Sampling distributions. Join Discord PreviousWeek 5.3: Bivariate Normal DistributionNextWeek 6.2: Sampling Distributions