Moment generating function (MGF)

883 Views Asked by At

Suppose that the random variable X has moment generating function M(t)= $$e^{at} \over 1-bt^2$$ for -1< t <1. It is found that the mean and variance of X are 3 and 2 respectively. Find a+b.

We have E[X]=3 and Var[X]=2. I know that M'(0)=E[X]. I solved the equation and found that a=3, but I got stuck here. I know that M''(0) should be E[$X^2$] and then I should use Var[X]=E[$X^2$]-$(E[X])^2$ somehow, but I found that M''(0)=0, which didn't make any sense. Where did I go wrong?

Edit:According to the textbook, the answer is 4, if that helps.

2

There are 2 best solutions below

4
On BEST ANSWER

Differentiating the MGF once results (using the product rule), and setting $t$ to $0$ results in:- $$\frac{d}{dt}M(0)=\left.\frac{ae^{at}}{(1-bt^2)}+\frac{2bte^{at}}{(1-bt^2)^2}\right|_{t=0}=a=E\{X\}=3$$ Differentiating twice, using the product rule again to each of the two terms of the first derivative, leads (after some simplification) to:- $$\begin{align}\frac{d^2}{dt^2}M(0)&=\left.\frac{a^2e^{at}}{(1-bt^2)}+\frac{4abte^{at}}{(1-bt^2)^2}+\frac{2be^{at}}{(1-bt^2)^2}+\frac{8b^2t^2e^{at}}{(1-bt^2)^3}\right|_{t=0}\\&=a^2+2b=9+2b\\&=E\{X^2\}\\&=Var\{X\}+(E\{X\})^2\\&=11\\\Rightarrow b&=1\end{align}$$ Thus $a+b=4$, as given in the answer sheet.

3
On

Or you can do it by:

Transforming $M_X(t) = \frac{e^{at}}{1+bt^2}$ to $M_{X-a}(t) = \frac{1}{a+bt^2}$.

Then, $M'_{X-a}(0)=0$ and $M''_{X-a}(0) = 2b$.

$\implies$ $E(X-a) = 0$ and $E(X-a)^2 = b$

This way you can do it a lil bit faster.