IfX is adiscrete random variable taking valuesx in the non-negativeintegers {0,1, ...}, then theprobability generating function ofX is defined as[1]
where is theprobability mass function of. Note that the subscripted notations and are often used to emphasize that these pertain to a particular random variable, and to itsdistribution. The power seriesconverges absolutely at least for allcomplex numbers with; the radius of convergence being often larger.
IfX = (X1,...,Xd) is a discrete random variable taking values(x1, ...,xd) in thed-dimensional non-negativeinteger lattice{0,1, ...}d, then theprobability generating function ofX is defined aswherep is the probability mass function ofX. The power series converges absolutely at least for all complex vectors with
Probability generating functions obey all the rules of power series with non-negative coefficients. In particular,, where,x approaching 1 from below, since the probabilities must sum to one. So theradius of convergence of any probability generating function must be at least 1, byAbel's theorem for power series with non-negative coefficients.
The following properties allow the derivation of various basic quantities related to:
The probability mass function of is recovered by takingderivatives of,
It follows from Property 1 that if random variables and have probability-generating functions that are equal,, then. That is, if and have identical probability-generating functions, then they have identical distributions.
The normalization of the probability mass function can be expressed in terms of the generating function by Theexpectation of is given by More generally, thefactorial moment, of is given by So thevariance of is given by Finally, thek-thraw moment of X is given by
whereX is a random variable, is the probability generating function (of) and is themoment-generating function (of).
Probability generating functions are particularly useful for dealing with functions ofindependent random variables. For example:
If is a sequence of independent (and not necessarily identically distributed) random variables that take on natural-number values, and
where the are constant natural numbers, then the probability generating function is given by
In particular, if and are independent random variables:
and
In the above, the number of independent random variables in the sequence is fixed. Assume is discrete random variable taking values on the non-negative integers, which is independent of the, and consider the probability generating function. If the are not only independent but also identically distributed with common probability generating function, then
When the are not supposed identically distributed (but still independent and independent of), we have
where For identically distributeds, this simplifies to the identity stated before, but the general case is sometimes useful to obtain a decomposition of by means of generating functions.
The probability generating function of an almost surelyconstant random variable, i.e. one with and is
The probability generating function of abinomial random variable, the number of successes in trials, with probability of success in each trial, isNote: it is the-fold product of the probability generating function of aBernoulli random variable with parameter. So the probability generating function of afair coin, is
The probability generating function of anegative binomial random variable on, the number of failures until the success with probability of success in each trial, is which converges for.Note that this is the-fold product of the probability generating function of ageometric random variable with parameter on.
The probability generating function is an example of agenerating function of a sequence: see alsoformal power series. It is equivalent to, and sometimes called, thez-transform of the probability mass function.
Johnson, Norman Lloyd; Kotz, Samuel;Kemp, Adrienne W. (1992).Univariate Discrete Distributions. Wiley series in probability and mathematical statistics (2nd ed.). New York: J. Wiley & Sons.ISBN978-0-471-54897-3.