<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Probability-generating_function</id>
	<title>Probability-generating function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Probability-generating_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Probability-generating_function&amp;action=history"/>
	<updated>2026-04-07T03:21:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Probability-generating_function&amp;diff=161341&amp;oldid=prev</id>
		<title>imported&gt;Hellacioussatyr at 15:10, 7 August 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Probability-generating_function&amp;diff=161341&amp;oldid=prev"/>
		<updated>2025-08-07T15:10:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Power series derived from a discrete probability distribution}}&lt;br /&gt;
In [[probability theory]], the &amp;#039;&amp;#039;&amp;#039;probability generating function&amp;#039;&amp;#039;&amp;#039; 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(&amp;#039;&amp;#039;X&amp;#039;&amp;#039; = &amp;#039;&amp;#039;i&amp;#039;&amp;#039;) in the [[probability mass function]] for a [[random variable]] &amp;#039;&amp;#039;X&amp;#039;&amp;#039;, and to make available the well-developed theory of power series with non-negative coefficients.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
&lt;br /&gt;
=== Univariate case ===&lt;br /&gt;
If &amp;#039;&amp;#039;X&amp;#039;&amp;#039; is a [[discrete random variable]] taking values &amp;#039;&amp;#039;x&amp;#039;&amp;#039; in the non-negative [[integer]]s {0,1, ...}, then the &amp;#039;&amp;#039;probability generating function&amp;#039;&amp;#039; of &amp;#039;&amp;#039;X&amp;#039;&amp;#039; is defined as&lt;br /&gt;
&amp;lt;ref&amp;gt;{{ cite book | title = Probability and Distribution Theory | author = Gleb Gribakin | url = https://www.am.qub.ac.uk/users/g.gribakin/sor/Chap3.pdf }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = \operatorname{E} (z^X) = \sum_{x=0}^{\infty} p(x) z^x,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is the [[probability mass function]] of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;.  Note that the subscripted notations &amp;lt;math&amp;gt;G_X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;p_X&amp;lt;/math&amp;gt; are often used to emphasize that these pertain to a particular random variable &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and to its [[Probability distribution|distribution]]. The power series [[absolute convergence|converges absolutely]] at least for all [[complex number]]s &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;|z|&amp;lt;1&amp;lt;/math&amp;gt;; the radius of convergence being often larger.&lt;br /&gt;
&lt;br /&gt;
=== Multivariate case ===&lt;br /&gt;
If {{math|1=&amp;#039;&amp;#039;X&amp;#039;&amp;#039; = (&amp;#039;&amp;#039;X&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;,...,&amp;#039;&amp;#039;X&amp;lt;sub&amp;gt;d&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;)}} is a discrete random variable taking values {{math|(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, ..., &amp;#039;&amp;#039;x&amp;lt;sub&amp;gt;d&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;)}} in the {{mvar|d}}-dimensional non-negative [[integer lattice]] {{math|{0,1, ...}&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;d&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;}}, then the &amp;#039;&amp;#039;probability generating function&amp;#039;&amp;#039; of {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} is defined as&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;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},&amp;lt;/math&amp;gt;&lt;br /&gt;
where {{mvar|p}} is the probability mass function of {{mvar|X}}. The power series converges absolutely at least for all complex vectors &amp;lt;math&amp;gt;z = (z_1, ... z_d) \isin \mathbb{C}^d&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;\text{max}\{|z_1|, ..., |z_d|\} \le 1.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
&lt;br /&gt;
===Power series===&lt;br /&gt;
&lt;br /&gt;
Probability generating functions obey all the rules of power series with non-negative coefficients.  In particular, &amp;lt;math&amp;gt;G(1^-) = 1&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;G(1^-) = \lim_{x\to 1, x&amp;lt;1} G(x)&amp;lt;/math&amp;gt;, [[One-sided limit|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&amp;#039;s theorem]] for power series with non-negative coefficients.&lt;br /&gt;
&lt;br /&gt;
===Probabilities and expectations===&lt;br /&gt;
&lt;br /&gt;
The following properties allow the derivation of various basic quantities related to &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;:&lt;br /&gt;
# The probability mass function of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is recovered by taking [[derivative]]s of &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;, &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;p(k) = \operatorname{Pr}(X = k) = \frac{G^{(k)}(0)}{k!}.&amp;lt;/math&amp;gt;&lt;br /&gt;
# It follows from Property 1 that if random variables &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; have probability-generating functions that are equal, &amp;lt;math&amp;gt;G_X = G_Y&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;p_X = p_Y&amp;lt;/math&amp;gt;.  That is, if &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; have identical probability-generating functions, then they have identical distributions.&lt;br /&gt;
# The normalization of the probability mass function can be expressed in terms of the generating function by &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{E}[1] = G(1^-) = \sum_{i=0}^\infty p(i) = 1.&amp;lt;/math&amp;gt; The [[expected value|expectation]] of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is given by &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt; \operatorname{E}[X] = G&amp;#039;(1^-).&amp;lt;/math&amp;gt; More generally, the &amp;lt;math&amp;gt;k^{th}&amp;lt;/math&amp;gt;[[factorial moment]], &amp;lt;math&amp;gt;\operatorname{E}[X(X -  1) \cdots (X - k + 1)]&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is given by &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{E}\left[\frac{X!}{(X-k)!}\right] = G^{(k)}(1^-), \quad k \geq 0.&amp;lt;/math&amp;gt; So the [[variance]] of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is given by &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{Var}(X)=G&amp;#039;&amp;#039;(1^-) + G&amp;#039;(1^-) - \left [G&amp;#039;(1^-)\right ]^2.&amp;lt;/math&amp;gt; Finally, the {{mvar|k}}-th [[raw moment]] of X is given by &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{E}[X^k] = \left(z\frac{\partial}{\partial z}\right)^k G(z) \Big|_{z=1^-}&amp;lt;/math&amp;gt;&lt;br /&gt;
# &amp;lt;math&amp;gt;G_X(e^t) = M_X(t)&amp;lt;/math&amp;gt; where &amp;#039;&amp;#039;X&amp;#039;&amp;#039; is a random variable, &amp;lt;math&amp;gt;G_X(t)&amp;lt;/math&amp;gt; is the probability generating function (of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;M_X(t)&amp;lt;/math&amp;gt; is the [[moment-generating function]] (of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
===Functions of independent random variables===&lt;br /&gt;
&lt;br /&gt;
Probability generating functions are particularly useful for dealing with functions of [[statistical independence|independent]] random variables. For example:&lt;br /&gt;
&lt;br /&gt;
{{bullet list&lt;br /&gt;
| If &amp;lt;math&amp;gt;X_i, i=1,2,\cdots,N&amp;lt;/math&amp;gt; is a sequence of independent (and not necessarily identically distributed) random variables that take on natural-number values, and&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S_N = \sum_{i=1}^N a_i X_i,&amp;lt;/math&amp;gt; where the &amp;lt;math&amp;gt;a_i&amp;lt;/math&amp;gt; are constant natural numbers, then the probability generating function is given by&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G_{S_N}(z) = \operatorname{E}(z^{S_N}) = \operatorname{E} \left( z^{\sum_{i=1}^N a_i X_i,} \right) = G_{X_1}( z^{a_1})G_{X_2}(z^{a_2})\cdots G_{X_N}(z^{a_N}).&amp;lt;/math&amp;gt;&lt;br /&gt;
| In particular, if &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; are independent random variables:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G_{X+Y}(z) = G_X(z) \cdot G_Y(z)&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G_{X-Y}(z) = G_X(z) \cdot G_Y(1/z).&amp;lt;/math&amp;gt;&lt;br /&gt;
| In the above, the number &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; of independent random variables in the sequence is fixed. Assume &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; is discrete random variable taking values on the non-negative integers, which is independent of the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;, and consider the probability generating function &amp;lt;math&amp;gt;G_N&amp;lt;/math&amp;gt;.  If the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; are not only independent but also identically distributed with common probability generating function &amp;lt;math&amp;gt;G_X = G_{X_i}&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G_{S_N}(z) = G_N(G_X(z)).&amp;lt;/math&amp;gt; This can be seen, using the [[law of total expectation]], as follows:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
G_{S_N}(z) &amp;amp; = \operatorname{E}(z^{S_N}) = \operatorname{E}(z^{\sum_{i=1}^N X_i}) \\[4pt]&lt;br /&gt;
&amp;amp; = \operatorname{E}\big(\operatorname{E}(z^{\sum_{i=1}^N X_i} \mid N) \big) = \operatorname{E}\big( (G_X(z))^N\big) =G_N(G_X(z)).&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
This last fact is useful in the study of [[Galton&amp;amp;ndash;Watson process]]es and [[compound Poisson process]]es.&lt;br /&gt;
| When the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; are not supposed identically distributed (but still independent and independent of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;), we have&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G_{S_N}(z) = \sum_{n \ge 1} f_n \prod_{i=1}^n G_{X_i}(z),&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;f_n = \Pr(N=n).&amp;lt;/math&amp;gt; For identically distributed &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;s, this simplifies to the identity stated before, but the general case is sometimes useful to obtain a decomposition of &amp;lt;math&amp;gt;S_N&amp;lt;/math&amp;gt; by means of generating functions.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
* The probability generating function of an almost surely [[degenerate distribution|constant random variable]], i.e. one with &amp;lt;math&amp;gt;\Pr(X=c) = 1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Pr(X\neq c) = 0&amp;lt;/math&amp;gt; is &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = z^c. &amp;lt;/math&amp;gt;&lt;br /&gt;
* The probability generating function of a [[binomial distribution|binomial random variable]], the number of successes in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; trials, with probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; of success in each trial, is &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = \left[(1-p) + pz\right]^n. &amp;lt;/math&amp;gt; &amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: it is the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-fold product of the probability generating function of a [[Bernoulli distribution|Bernoulli random variable]] with parameter &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;. {{pb}}  So the probability generating function of a [[fair coin]], is &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = \frac{1}{2} + \frac{z}{2}. &amp;lt;/math&amp;gt;&lt;br /&gt;
* The probability generating function of a [[negative binomial distribution|negative binomial random variable]] on &amp;lt;math&amp;gt;\{0,1,2 \cdots\}&amp;lt;/math&amp;gt;, the number of failures until the &amp;lt;math&amp;gt;r^{th}&amp;lt;/math&amp;gt; success with probability of success in each trial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, is &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = \left(\frac{p}{1 - (1-p)z}\right)^r,&amp;lt;/math&amp;gt; which converges for &amp;lt;math&amp;gt;|z| &amp;lt; \frac{1}{1-p}&amp;lt;/math&amp;gt;. {{pb}} &amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039; that this is the &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;-fold product of the probability generating function of a [[geometric distribution|geometric random variable]] with parameter &amp;lt;math&amp;gt;1-p&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\{0,1,2,\cdots\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
* The probability generating function of a [[Poisson distribution|Poisson random variable]] with rate parameter &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;G(z) = e^{\lambda(z - 1)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
TO BE COMPLETED:&lt;br /&gt;
&lt;br /&gt;
==Joint probability generating functions==&lt;br /&gt;
&lt;br /&gt;
The concept of the probability generating function for single random variables can be extended to the joint probability generating function of two or more random variables.&lt;br /&gt;
&lt;br /&gt;
Suppose that &amp;#039;&amp;#039;X&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Y&amp;#039;&amp;#039; are both discrete random variables (not necessarily independent or identically distributed), again taking values on some subset of the non-negative integers. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related concepts==&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Other generating functions of random variables include the [[moment-generating function]], the [[Characteristic function (probability theory)|characteristic function]] and the [[cumulant generating function]]. The probability generating function is also equivalent to the [[factorial moment generating function]], which as &amp;lt;math&amp;gt;\operatorname{E}\left[z^X\right]&amp;lt;/math&amp;gt; can also be considered for continuous and other random variables.&lt;br /&gt;
&lt;br /&gt;
{{more citations needed|date=April 2012}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{reflist|refs=&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{refbegin}}&lt;br /&gt;
* {{ cite book | last1 = Johnson | first1 = Norman Lloyd | last2 = Kotz | first2 = Samuel | last3 = Kemp | first3 = Adrienne W. |author3-link=Adrienne W. Kemp| title = Univariate Discrete Distributions | date = 1992 | publisher = J. Wiley &amp;amp; Sons | isbn = 978-0-471-54897-3 | edition = 2nd | series = Wiley series in probability and mathematical statistics | location = New York }}&lt;br /&gt;
{{refend}}&lt;br /&gt;
&lt;br /&gt;
{{Theory of probability distributions}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Probability Generating Function}}&lt;br /&gt;
[[Category:Functions related to probability distributions]]&lt;br /&gt;
[[Category:Generating functions]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Hellacioussatyr</name></author>
	</entry>
</feed>