What is the expectation of a Gaussian PDF?

For $X \sim N(x|\mu,\sigma)$ with probability density function $p(x)$, what is $E[p(x)]$?

• Please also read the self-study tag wiki before modifying your question Apr 1 '16 at 4:02
• @Glen_b ok so I wrongly understood the self-study tag, I didn't get this from a textbook or something, I'm actually writing a program that would use this result, so would it be fine if i just remove the self-study tag? Apr 1 '16 at 4:08
• @Glen_b I added this tag because I was told before that this tag might be helpful for some entry-level questions (and it really is) here (stats.stackexchange.com/questions/199298/… Apr 1 '16 at 4:11
• You'd likely be asked to add the tag for any routine textbook-style question, which (say) might be set as an exercise (which this certainly qualifies for). If you had not done so I'd have asked you to add it anyway. Asking about concepts is fine, as is seeking some level of guidance to a solution -- for example, the guidance "use the law of the unconscious statistician to write the expectation as an integral, combine the exponents giving a single squared term, recognize the Gaussian density, pull extra constants out the front of the integral; the density integrates to 1" should be okay Apr 1 '16 at 4:50
• However, if you could explain the application in your question a bit further there might be some argument to remove the tag and reopen (in spite of it then spoiling the value of a lot of future student's assignments) Apr 1 '16 at 5:13

There might be an easier way to do this using properties of the Normal distribution, but I present a direct answer from the definition of expectation. The pdf of $X \sim N(\mu, \sigma^2)$ is
$$p(x) = \dfrac{1}{\sqrt{2\pi \sigma^2}} \exp \left(-\dfrac{(x - \mu)^2}{2\sigma^2} \right)$$
where the last step is because the integrand is the pdf for a $N(\mu, \sigma^2/2)$ random variable.
• and for multivariate Gaussians this would be $(4\pi)^{D/2}|\Sigma|^{1/2}$ right? Apr 1 '16 at 3:59
• Please note that for self-study questions, the requested behavior is to provide hints and guidance to lead the asker in the correct direction rather than provide a complete solution. Apr 1 '16 at 3:59