202405232040
Status: #idea
Tags: Probability

Moment Generating Function

It is a special case of the Characteristic Function.
It is a function defined as:

MX(t)=E[etx], if E(etx)< for t(h,h)

Which when we take the derivatives (and set t to 0), we obtain the moments of a given random variable. It uses the fact that etX can be written as the following series 1+tE[X]+t22!E[X2]+

This gives a compact and simple way to compute all the moments of a random variable from one equation instead of having to repeatedly compute them manually as follows for the nth moment. For some functions with complicated pdfs the moment generating functions give us a straightforward way to compute arbitrarily many moments.

E[Xn]=xnpX(x)dx

Note that as long as we take enough derivatives both are equivalent.

Convenient Trick

No one has time to derivate the k times to get the kth moment.
So when looking for the kth moment simply look for the coefficient of tk and multiply that by k! factorial. (In the Taylor's Expansion)

If there is no tk in the Taylor's expansion, you know that the moment is 0.

Pasted image 20240531093334.png

A good video explaining it