[R] Please help with one problem
Jannis
bt_jannis at yahoo.de
Fri Dec 17 01:04:56 CET 2010
Hi,
I would suggest two things:
1. Use a subject related to your problem when posting to the list!
2. State a question (as Sarah has already said)!
Like this nobody can really understand what you want (or at least I cant!).
Jannis
diavolo_vam schrieb:
> 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. )
>
>
> Thank you very much!
>
More information about the R-help
mailing list