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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.