Funciones generadoras de probabilidad
Introducido| English | Significado |
|---|---|
| discrete distribution/dɪˈskriːt ˌdɪstrɪˈbjuːʃn/ | distribución discreta |
| probability generating function/ˌprɒbəˈbɪlɪti ˈdʒenəreɪtɪŋ ˈfʌŋkʃn/ | función generadora de probabilidades |
| coefficient/ˌkəʊɪˈfɪʃənt/ | Coeficiente |
| variance/ˈveərɪəns/ | varianza |
| derivative/dɪˈrɪvətɪv/ | derivada |
| independent/ˌɪndɪˈpendənt/ | independiente |
A distribution in a single function
- A discrete distribution 离散分布 is a list of probabilities — clumsy to manipulate.
- A probability generating function 概率母函数 (PGF) packs the whole list into one tidy function, turning hard probability sums into easy calculus.
Laboratorio de función generadora de probabilidad
G(x) = p0 + p1 x + p2 x^2 + ...
Cambie x y observe cómo una FGP almacena probabilidades en potencias de x.
Defining the PGF
- For a discrete variable $X$ taking values $0, 1, 2, \dots$:
- The coefficient 系数 of $t^x$ is exactly $P(X = x)$ — the function encodes the distribution.

A probability generating function stores all the probabilities as coefficients
La función generadora de probabilidad de X se define como:
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
G(t) = E(tˣ) = Σ P(X=x) tˣ.
Mean and variance 方差 from derivatives 导数
- Differentiate and evaluate at $t = 1$:
Worked example. $G(t) = 0.5 + 0.3t + 0.2t^2$. Then $G'(t) = 0.3 + 0.4t$, so $E(X) = G'(1) = 0.3 + 0.4 = 0.7$.
X tiene G(t) = 0.5 + 0.3t + 0.2t². Dado que E(X) = G′(1) y G′(t) = 0.3 + 0.4t, ¿cuál es E(X)?
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
G'(1) = 0.3 + 0.4(1) = 0.7.
La media se obtiene de la FGP mediante E(X) = G′(______).
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
E(X) = G'(1).
Sums of independent 独立 variables
- The single most useful property: the PGF of a sum of independent variables is the product of their PGFs:
- This makes adding independent variables (e.g. total of several dice) almost effortless.
Para cualquier FGP válida, ¿cuál es el valor de G(1)?
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
G(1) = Σ P(X=x) = 1, ya que las probabilidades suman 1.
La PGF de una suma de dos variables independientes es la suma de sus PGFs.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Falso. Para X e Y independientes, G_{X+Y}(t) = G_X(t) G_Y(t): las PGF se multiplican.
Check it's a valid PGF
$G(1)$ must equal 1. Since $G(1) = \sum P(X = x)$, a valid PGF always gives $G(1) = 1$ — a quick sanity check before you differentiate.
You've got it
- PGF: $G(t) = E(t^X) = \sum P(X=x)\,t^x$ (and $G(1) = 1$)
- $E(X) = G'(1)$; $\text{Var}(X) = G''(1) + G'(1) - (G'(1))^2$
- the PGF of a sum of independent variables is the product of their PGFs
Write from the data: find the expectation
- A probability generating function is 0.2 plus 0.5 t plus 0.3 t squared.
- Find the expectation from the derivative at 1. A valid generating function equals 1 at t = 1.
Para G(t) = 0.2 más 0.5 t más 0.3 t al cuadrado, ¿cuál es E(X) y cuánto debe valer G(1)?
La esperanza es la derivada de la función generadora en 1. Las propias probabilidades deben sumar 1.
¿Cuál es E(X)?
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
0.5 más 0.6 es 1.1. Otras opciones — 0.7 (la esperanza de la lección); 1 (el valor de G(1)).