Re: [R] Get an expected value for Order Statistics by applying double integrals

2012-12-11 Thread kyong park
Thomas, Thanks for enlighting me about using pnorm.The reason I was going to use the double integral was for the cumulative distribution fuction F(X) in the formula. I just tried your method, and it worked which saved me a lot of time. Thanks. Kyong On Thu, Dec 6, 2012 at 3:41 PM, Thomas Stew

Re: [R] Get an expected value for Order Statistics by applying double integrals

2012-12-06 Thread Thomas Stewart
Kyong- It isn't clear to me why are you using a double integral. You have the pdf and your goal is to calculate the expected value of a univariate random variable (the first order statistic). Shouldn't the expected value be E[X_(1)] = int x * 5 * f(x) * (1-F(x))^4 dx? A single integral? Here

[R] Get an expected value for Order Statistics by applying double integrals

2012-12-06 Thread kyong park
Hi R users, I’d like to get an expected value for a minimum value from order statistics of sample size, say, 5 for standard normal distribution, and the formula would be 5* Integral (from -inf to Inf) x*f(x)* (1-F(x))^4,where f(x) and F(x) are a standard normal density and a cumulative dist