Let $X \sim N(0,1)$. What is $E|X^{n}|$ for $n \in \mathbb{N}$ odd?
Attempt: Since $X = -X$ in distribution, we have that $(-X)^{n} = X^{n} = -X^{n}$ in distribution. Then
$$E|X^{n}| = E(X^{n})^{+} + E(X^{n})^{-} = EX^{n} = 0$$
since $X^{n} = -X^{n}$ in distribution.
But I have been given to understand that this is not true.
The expected value is $$ E_n = E[|X|^{2n+1}] = 2 \int_0^\infty \frac1{\sqrt{2\pi}} \exp\left(-\frac{x^2}2\right)x^{2n+1} dx $$using parity to get rid of the $\{x<0\}$ part.
As you know that $$ \frac d{dx} \exp\left(-\frac{x^2}2\right) = -x \exp\left(-\frac{x^2}2\right) $$ you can integrate by parts: $$ E_n = \left[-2 \frac1{\sqrt{2\pi}} \exp\left(-\frac{x^2}2\right)x^{2n} \right]_0^\infty + 2\times 2n \int_0^\infty \frac1{\sqrt{2\pi}} \exp\left(-\frac{x^2}2\right)x^{2n-1} dx \\ = 2n E_{n-1} $$ if $n\neq 0$ and if $n=0$: $$ E_0 = 2 \int_0^\infty \frac1{\sqrt{2\pi}} \exp\left(-\frac{x^2}2\right)x dx = \left[-2 \frac1{\sqrt{2\pi}} \exp\left(-\frac{x^2}2\right) \right]_0^\infty \\=\sqrt \frac 2\pi $$
and so:
$$ E_n = 2^n n! \sqrt \frac 2\pi $$