Computing expectation value of x for a Gaussian distribution

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
9 replies · 3K views
cscott
Messages
778
Reaction score
1

Homework Statement



Can somebody help me integrate [tex]\int{x\cdot p(x)}[/tex] where [itex]p(x)[/itex] is the Gaussian distribution (from here http://hyperphysics.phy-astr.gsu.edu/hbase/math/gaufcn.html)

The Attempt at a Solution



I can't really get anywhere. It's true that [itex]\int{e^{x^2}}[/itex] has no analytical solution, right?
 
Last edited:
Physics news on Phys.org
Yes, it is true that you cannot find the indefinite integral
[tex]\int e^{-x^2}dx[/tex]
in terms of elementary functions (though you can find the definite integral for some choices of upper and lower bound).

However, there is a very simple substitution that will give you
[tex]\int x e^{-x^2}dx[/tex]
 
Is [tex]\int e^{-x^2} dx[/tex]

not

[tex]\frac{e^{-x^2}}{-2x}[/tex] + K ?
 
But I can't use that easy substitution for [tex]\int{x \cdot e^{-(x-x_0)^2} dx[/tex] for some constant [itex]x_0[/itex], can I?
 
Last edited:
rock.freak667 said:
Is [tex]\int e^{-x^2} dx[/tex]

not

[tex]\frac{e^{-x^2}}{-2x}[/tex] + K ?
No, it's not. Why in the world would you think it was?
 
HallsofIvy said:
No, it's not. Why in the world would you think it was?

because [tex]\frac{d}{dx}(\frac{e^{-x^2}}{-2x}) = e^{-x^2}[/tex]
 
dextercioby said:
Why would you think that ?

Oh, don't be so cutting! I can see why the poster would think that and so can you. It's clear that the poster forgot about the derivative of the denominator (in case you hadn't worked that out).