Dear Haneef,
Pls see if this suits your requirement.

sim.norm = rnorm(10000,mean=a,sd=sqrt(b))
mean.est = mean(sqrt(sim.norm))

Thx
S.

On Sat, Apr 10, 2010 at 9:31 PM, Haneef Anver <hane...@yahoo.com> wrote:

> Hi all,
>
>
> 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.
>
> Have great day !
>
> Haneef
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to