Let be an -valued random variable, . The probability generating function of is the sum of the power series
Examples
Example 23.2 (First reflexes)
A constant variable has ; a shift obeys ; and evaluating at special points reads off information without any expansion: , , and , the parity balance exploited in Exercise 23.10. These one-liners are used silently everywhere below — and the evaluation is exactly how extinction probabilities will be extracted from iterated generating functions at the end of the chapter.
Example 23.5 (Integrating the generating function)
Derivatives of at give positive moments; the integral gives a negative one. From and term-by-term integration (normal convergence on ):
For :
recovering in one line the series computation of Example 22.10. The generating function is a two-way instrument: differentiate at for the moments , , integrate over for — one analytic object, queried in whichever direction the problem needs.
Example 23.6 (A law with radius exactly one)
Let for — a probability law by Basel’s identity (Example 14.12). Its generating function has radius of convergence exactly : the general bound “radius ” of Proposition 23.3 cannot be improved. And the mean is
is continuous on , smooth inside, but its derivative blows up at — the graph arrives at the point with a vertical tangent. Heavy tails are visible geometrically on the generating function, at the single point ; the moments theorem below makes this correspondence exact.