Sarah Goslee sarah.goslee at gmail.com
Thu Dec 16 19:42:32 CET 2010

```My first instinct is to suggest that you ask your professor or TA for
help, since this looks remarkably like a homework problem. We are
not here to do your work for you.

Failing that, what have you tried? Have you gotten error messages or
otherwise gone wrong? We will help with specific R questions presented
with complete information as described in the posting guide. This isn't
an R question.

Sarah

On Thu, Dec 16, 2010 at 1:12 PM, diavolo_vam <venci9n at abv.bg> wrote:
>
> It is interesting to graph the distribution of the standardized average as n
> increases. Do this when the Xi are
> uniform on [0; 1]. Look at the histogram when n is 1, 5, 10 and 25. Do you
> see the normal curve taking shape?
> (A rule of thumb is that if the Xi are not too skewed, then n > 25 should
> make the average approximately
> normal. You might want
>> f=function(n,a=0,b=1) {
> mu=(b+a)/2
> sigma=(b-a)/sqrt(12)
> (mean(runif(n,a,b))-mu)/(sigma/sqrt(n))
> }
> where the formulas for the mean and standard deviation are given. )
>
>

--
Sarah Goslee
http://www.functionaldiversity.org

```