I'm told to find the moment generating function of the pdf $6x(1-x)$, $0
Am I doing something wrong with these moment generating functions?
-
0@Nate Eldredge: Yes, you're absolutely right. Removed my comment accordingly. – 2012-11-30
1 Answers
Your expression for the moment generating function is right. In a burst of masochism, I found the derivative, which turns out to be $\frac{1}{t^4}\left(6e^t(t^2-4t+6)-12t-36\right).\tag{$1$}$ We want to "evaluate" this at $t=0$. There is the unpleasant issue of the $t^4$ in the denominator. What we really want to do is to find the limit of the function $(1)$ as $t\to 0$.
This is a simple matter, just apply L'Hospital's Rule $4$ times. That's actually not how I did it. We can use the first four terms $1+t+\frac{t^2}{2}+\frac{t^3}{6}+\frac{t^4}{24}$ of the Taylor series for $e^t$. Multiply by $6$. The numerator becomes $\left(6+6t+3t^2+t^3+\frac{t^4}{4}\right)(t^2-4t+6)-12t-36.$
Now do the multiplication. The constant term and the coefficients of $t$, $t^2$, and $t^3$ are all $0$. The coefficient of $t^4$ is $\dfrac{1}{2}$. Now divide by $t^4$, and we are finished. If you like, insert $O(t^5)$ in the appropriate places.
Remark: Taking the derivative was a waste of time. I was just trying to show that we can push things through in that way.
The sensible thing is to start with the mgf, and find the coefficient of $t$ in its Taylor expansion. We can use the expansion of $e^t$, directly on the mgf, without differentiating. The calculation is very short. If we expand $e^t$ to enough places, the numerator of the mgf is $6t\left(1+t+\frac{t^2}{2}+\frac{t^3}{6}\right)-12\left(1+t+\frac{t^2}{2}+\frac{t^3}{6}+\frac{t^4}{24}\right)+6t+12.$ Scan the terms. The terms up to the one in $t^2$ are $0$. The coefficient of $t^4$ is $\dfrac{1}{2}$, and therefore the coefficient of $t$ in the mgf is $\dfrac{1}{2}$.
We can read off all the higher moments in the same way.
-
0Nicely explained. And I laughed out loud at "in a burst of masochism." :) – 2012-11-30