rwinston
- 36
- 0
Hi
More of a general integration question, but I just saw the following proof for the derivation of the expectation of a normal variable:
<br /> E[X] = \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{x exp\left( -\frac{1}{2\sigma^2}(x-\mu)^2 \right) dx} <br />Set z=(x-mu):
<br /> E[X] = \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{z exp\left( -\frac{1}{2\sigma^2}z^2 \right) dx} + \mu \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{exp\left( -\frac{1}{2\sigma^2}z^2 \right)dx}<br />
=\mu
Now, I don't really understand how this works: if z=x-mu, then I would assume that the term inside the integral becomes:
<br /> (z+\mu) exp\left( -\frac{1}{2\sigma^2}z^2\right)<br />
<br /> = z \left( exp\left( -\frac{1}{2\sigma^2}z^2 \right) \right) + \mu \left( exp\left( -\frac{1}{2\sigma^2}z^2 \right) \right)<br />
However, I don't see how we get two separate integrals, as in the proof above. Can anyone help shed any light on this?
Cheers
More of a general integration question, but I just saw the following proof for the derivation of the expectation of a normal variable:
<br /> E[X] = \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{x exp\left( -\frac{1}{2\sigma^2}(x-\mu)^2 \right) dx} <br />Set z=(x-mu):
<br /> E[X] = \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{z exp\left( -\frac{1}{2\sigma^2}z^2 \right) dx} + \mu \frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{\infty}{exp\left( -\frac{1}{2\sigma^2}z^2 \right)dx}<br />
=\mu
Now, I don't really understand how this works: if z=x-mu, then I would assume that the term inside the integral becomes:
<br /> (z+\mu) exp\left( -\frac{1}{2\sigma^2}z^2\right)<br />
<br /> = z \left( exp\left( -\frac{1}{2\sigma^2}z^2 \right) \right) + \mu \left( exp\left( -\frac{1}{2\sigma^2}z^2 \right) \right)<br />
However, I don't see how we get two separate integrals, as in the proof above. Can anyone help shed any light on this?
Cheers