4.5 Probability generating functions
- Syllabus
- 9231–2028–2029
- Topic
- 4.5
- Level
- AS
For a non-negative integer-valued random variable $X$,G_X(s)=E[s^X]=\sum_{r=0}^{\infty}P(X=r)s^r.Thus $[s^r]G_X(s)=P(X=r)$, $G_X(0)=P(X=0)$ and $G_X(1)=1$.
| distribution and support | PGF |
|---|---|
| discrete uniform on 1,…,n | n(1−s)s(1−sn) for s=1, with G(1)=1 |
| Bin(n,p), q=1−p | (q+ps)n |
| geometric P(X=r)=pqr−1, r=1,2,… | 1−qsps |
| Po(λ) | exp(λ(s−1)) |
For example, if $G(s)=0.2+0.5s+0.3s^2$, thenP(X=0)=0.2,\quad P(X=1)=0.5,\quad P(X=2)=0.3.Thecoefficientrulealsoletsaclosedformbeexpandedtorecoverprobabilities.
State the geometric support convention: starting at one produces the numerator ps, while a failures-before-success convention starts at zero. A PGF is not an MGF, and G(1) must equal one for a valid probability distribution.
For $G(s)=E[s^X]$,E[X]=G'(1),\qquad E[X(X-1)]=G''(1).Since $X^2=X(X-1)+X$,\operatorname{Var}(X)=G''(1)+G'(1)-[G'(1)]^2.Differentiate before setting $s=1$.
For $X\sim\operatorname{Po}(\lambda)$,G(s)=e^{\lambda(s-1)},\quad G'(s)=\lambda e^{\lambda(s-1)},\quad G''(s)=\lambda^2e^{\lambda(s-1)}.Hence $G'(1)=\lambda$ and $G''(1)=\lambda^2$.
ThereforeE[X]=\lambda,and\operatorname{Var}(X)=\lambda^2+\lambda-\lambda^2=\lambda.ThecancellationchecksthefamiliarPoissonequalityofmeanandvariance.
G double-prime at one is not E[X squared]; it omits one copy of E[X]. If an alleged variance is negative, recheck differentiation, substitution at one and the subtraction of the squared mean.
If $X_1,\ldots,X_k$ are independent non-negative integer-valued variables and $S=\sum X_i$, thenG_S(s)=E\left[s^{\sum X_i}\right]=E\left[\prod s^{X_i}\right]=\prod G_{X_i}(s).Independencejustifiesthefactorisationoftheexpectation.
If $X\sim\operatorname{Po}(\lambda)$ and $Y\sim\operatorname{Po}(\mu)$ independently,G_{X+Y}(s)=e^{\lambda(s-1)}e^{\mu(s-1)}=e^{(\lambda+\mu)(s-1)},soX+Y\sim\operatorname{Po}(\lambda+\mu).
If $X\sim\operatorname{Bin}(n_1,p)$ and $Y\sim\operatorname{Bin}(n_2,p)$ independently,G_{X+Y}(s)=(1-p+ps)^{n_1+n_2},hence $X+Y\sim\operatorname{Bin}(n_1+n_2,p)$. If the success probabilities differ, multiply the PGFs but do not label the result binomial without further justification.
Multiplying PGFs requires independence. Means still add for dependent variables with finite expectations, but the PGF factorisation and the standard-family conclusions above can fail; coefficients of the actual product may be read when no named family results.