# Re: [R] how to generate a normal distribution with mean=1, min=0.2, max=0.8

From: Mike Miller <mbmiller+l_at_gmail.com>
Date: Fri, 29 Apr 2011 15:06:23 -0500 (CDT)

On Fri, 29 Apr 2011, David Winsemius wrote:

> On Apr 29, 2011, at 1:29 PM, Mike Miller wrote:
>
>> On Fri, 29 Apr 2011, Giovanni Petris wrote:
>>
>>> Well, but the original poster also refers to 0.2 and 0.8 as "expected min
>>> and max", in which case we are back to a joke...
>>
>> Well, he is a lot better with English than I am with Mandarin. He seemed
>> to like the truncated normal answers, so we'll let those be his answers.
>>
>> It is possible to choose parameters for a normal distribution with 500
>> observations such that the expected value of the maximum is .8 and the
>> expected value of the minimum is .2. Obviously, the mean would be .5,
>> not 1, but what would the variance then have to be to provide the
>> correct expected max and min? That's another legitimate question.
>
> You would need to specify an N since the expected first and last order
> statistic would decrease/increase with increasing N.

Right -- I chose N=500, as did the OP. I think the order statistics for the normal are pretty complex, but it wouldn't be hard to use the density for order statistics for the uniform to compute the appropriate values for a standard normal, then rescale.

You'd have to multiply the beta density times the inverse normal cdf and get the weighted average for a set of points. It doesn't sound terribly difficult but I don't want to do it! ;-)

Mike

R-help_at_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. Received on Fri 29 Apr 2011 - 20:10:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 20:10:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.