In probability theory, the probability generating function of a discrete random variable is a power series representation (the generating function) of the probability mass function of the random variable. Probability generating functions are often employed for their succinct description of the sequence of probabilities Pr(X = i) in the probability mass function for a random variable X, and to make available the well-developed theory of power series with non-negative coefficients.
Definition
Univariate case
If X is a discrete random variable taking values x in the non-negative integers {0,1, ...}, then the probability generating function of X is defined as [1]
G(z) = \operatorname{E} (z^X) = \sum_{x=0}^{\infty} p(x) z^x,
where p is the probability mass function of X. Note that the subscripted notations G_X and p_X are often used to emphasize that these pertain to a particular random variable X, and to its distribution. The power series converges absolutely at least for all complex numbers z with |z|<1; the radius of convergence being often larger.
Multivariate case
If X = (X1,...,Xd) is a discrete random variable taking values (x1, ..., xd) in the d-dimensional non-negative integer lattice {0,1, ...}d, then the probability generating function of X is defined as
G(z) = G(z_1,\ldots,z_d) = \operatorname{E}\bigl (z_1^{X_1}\cdots z_d^{X_d}\bigr) = \sum_{x_1,\ldots,x_d=0}^{\infty}p(x_1,\ldots,x_d) z_1^{x_1} \cdots z_d^{x_d},
where p is the probability mass function of X. The power series converges absolutely at least for all complex vectors z = (z_1, ... z_d) \isin \mathbb{C}^d with \text{max}\{|z_1|, ..., |z_d|\} \le 1.
Properties
Power series
Probability generating functions obey all the rules of power series with non-negative coefficients. In particular, G(1^-) = 1, where G(1^-) = \lim_{x\to 1, x<1} G(x), x approaching 1 from below, since the probabilities must sum to one. So the radius of convergence of any probability generating function must be at least 1, by Abel's theorem for power series with non-negative coefficients.
Probabilities and expectations
The following properties allow the derivation of various basic quantities related to X:
- The probability mass function of
Xis recovered by taking derivatives ofG,
p(k) = \operatorname{Pr}(X = k) = \frac{G^{(k)}(0)}{k!}.
- It follows from Property 1 that if random variables
XandYhave probability generating functions that are equal,G_X = G_Y, thenp_X = p_Y. That is, ifXandYhave 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
\operatorname{E}[1] = G(1^-) = \sum_{i=0}^\infty p(i) = 1.
The expectation of X is given by
\operatorname{E}[X] = G'(1^-).
More generally, the k^{th}factorial moment, \operatorname{E}[X(X - 1) \cdots (X - k + 1)] of X is given by
\operatorname{E}\left[\frac{X!}{(X-k)!}\right] = G^{(k)}(1^-), \quad k \geq 0.
So the variance of X is given by
\operatorname{Var}(X)=G''(1^-) + G'(1^-) - \left [G'(1^-)\right ]^2.
Finally, the k-th raw moment of X is given by
\operatorname{E}[X^k] = \left(z\frac{\partial}{\partial z}\right)^k G(z) \Big|_{z=1^-}
G_X(e^t) = M_X(t)where X is a random variable,G_X(t)is the probability generating function (ofX) andM_X(t)is the moment-generating function (ofX).
Functions of independent random variables
Probability generating functions are particularly useful for dealing with functions of independent random variables. For example:
Examples
- The probability generating function of an almost surely constant random variable, i.e. one with
\Pr(X=c) = 1and\Pr(X\neq c) = 0is
G(z) = z^c.
- The probability generating function of a binomial random variable, the number of successes in
ntrials, with probabilitypof success in each trial, is
G(z) = \left[(1-p) + pz\right]^n.
Note: it is the n-fold product of the probability generating function of a Bernoulli random variable with parameter p. So the probability generating function of a fair coin, is
G(z) = \frac{1}{2} + \frac{z}{2}.
- The probability generating function of a negative binomial random variable on
\{0,1,2 \cdots\}, the number of failures until ther^{th}success with probability of success in each trialp, is
G(z) = \left(\frac{p}{1 - (1-p)z}\right)^r,
which converges for |z| < \frac{1}{1-p}. Note that this is the r-fold product of the probability generating function of a geometric random variable with parameter 1-p on \{0,1,2,\cdots\}.
- The probability generating function of a Poisson random variable with rate parameter
\lambdais
G(z) = e^{\lambda(z - 1)}.
Related concepts
The probability generating function is an example of a generating function of a sequence: see also formal power series. It is equivalent to, and sometimes called, the z-transform of the probability mass function.
Other generating functions of random variables include the moment-generating function, the characteristic function and the cumulant generating function. The probability generating function is also equivalent to the factorial moment generating function, which as \operatorname{E}\left[z^X\right] can also be considered for continuous and other random variables.
Notes
- ^ Gleb Gribakin. Probability and Distribution Theory
References
- 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. ISBN 978-0-471-54897-3.