I am reading a book on Monte Carlo Simulation and I want to know where the formula below come from.
$$E\left[ X^4\right] {\text{ }} = 3\sigma _x^4 + 6\sigma _x^2\mu _x^2 + \mu _x^4$$
Suppose $X$ is a Gaussian random variable: $X \sim N\left({\mu_x},\sigma _x^2\right)$. Thanks.
This follows from the computation of $$ \mathbb{E}[X^4] = \frac{1}{\sqrt{2\pi}\sigma_x}\int_{-\infty}^\infty x^4 e^{-\frac{(x-\mu_x)^2}{2\sigma_x^2}}dx $$ for instance (the definition of the 4th raw moment of a Gaussian r.v.). See e.g. this page on Wolfram Mathworld, Eq. (31) and (36).