Generating functions and moments

Definition (n-th moment of random variable) open_in_new

The $n$-th moment of $X$ is $\expect(X^n)$.

If $R>1$, $$ \begin{align*} G_X'(1) &= \fsum n1\infty \prob(X=n)\,n = \expect(X) \\ G_X''(1) &= \fsum n1\infty \prob(X=n)\,n(n-1) = \expect(X(X-1)) \\ \end{align*} $$ and so on.

If $R=1$, we can take the limit instead: $$ G_X'(t) = \fsum n1\infty \prob(X=n) nt^{n-1} \to \fsum n1\infty \prob(X=n) n = \expect(X). $$