[R] Expectation of E(x^1/2)

Ben Bolker bolker at ufl.edu
Sun Apr 11 06:59:02 CEST 2010


 Haneef Anver <haneef9 <at> yahoo.com> writes:

> I am trying to find the expectation of x^1/2 where x~N(a,b) 
> ( Normal with mean a and variance b). 
> Any feedback would be highly appreciated. 

  I have no idea at the moment how to start doing
this analytically, but is this at all helpful?

> mean(sqrt(complex(re=rnorm(1000000))))
[1] 0.4114712+0.4103866i



More information about the R-help mailing list