Find E(X) for a certain function using the gamma function

170 Views Asked by At

The question I have to do is essentially this:

A distribution, X, is modelled by $\displaystyle f(x)= \frac{x}{\sigma^2}e^{-x^2/2\sigma^2},\ x\ge0. $ Show that $\displaystyle E(X)=\sigma \sqrt{\frac{\pi}{2}}$ using the gamma function and its properties.


My attempt:

Using $\displaystyle E(X)=\int_a^bxf(x)\ dx: $

$ \displaystyle =\int_0^\infty x(\frac{x}{\sigma^2}e^{-x^2/2\sigma^2})\ dx$

$ \displaystyle =\int_0^\infty \frac{x^2}{\sigma^2}e^{-x^2/2\sigma^2}\ dx$

Let $\displaystyle u=\frac{x^2}{2\sigma^2}.$ When $x=\infty,u=\infty$ and when $x=0, u=0$ so our limits of integration are the same.

Also $\displaystyle \frac{du}{dx}=\frac{x}{\sigma^2}$

$\displaystyle \implies du=\frac{x}{\sigma^2}dx$

So $ \displaystyle \int_0^\infty \frac{x^2}{\sigma^2}e^{-x^2/2\sigma^2}\ dx = \displaystyle \int_0^\infty xe^{-u}\ du$

which isn't very helpful and not in the gamma function form so I can't substitute anything. Different change of variables maybe?

1

There are 1 best solutions below

3
On BEST ANSWER

\begin{align} \int_0^\infty \frac{x^2}{\sigma^2}e^{-\frac{x^2}{2\sigma^2}} \, dx &= \int_0^\infty (2u) e^{-u} \frac{\sigma^2}{x} \, du \\ &= \int_0^\infty\frac{2u\sigma^2}{x}e^{-u}\, du \\ &= \int_0^\infty\frac{2x\sigma^2}{2\sigma^2}e^{-u}\, du \\ &= \int_0^\infty xe^{-u}\, du \\ &= \sqrt2 \int_0^\infty \sigma u^\frac12 e^{-u}\, du \\ &= \sqrt2 \sigma \Gamma(1+0.5) \\ &=\sqrt2 \sigma \cdot\frac{2!}{4}\cdot\sqrt{\pi} \\ &=\sigma \sqrt{\frac{\pi}{2}} \end{align}