Skip to content

Writing program for these

4 messages · Ben Boyadjian, Ben Bolker, Siri Bjoner +1 more

#
Ben Boyadjian <benjy_cy_21 <at> hotmail.com> writes:
ifs.
distribution then
If this is the standard uniform U(0,1) distribution (which I assume
from your phrase "*the* uniform distribution" (emphasis added))
then there will be no integers in the sample ... ??
freedom and then calculate
Looks like homework questions, which are not answered on this list.
Please read the posting guide; if these are *not* homework questions,
please give us a plausible context.  (Even if these are not homework
questions, the posting guide asks that you "do your homework" in a
broader sense by indicating what steps you have taken to solve your
problem on your own before posting.)

 One hint for the second question: ?rt

  good luck,
    Ben Bolker
#
Siterer "Sascha Vieweg" <saschaview at gmail.com>:
Yes, probably just hoped that if he changed the subject someone would  
do his homework for him...
#
On 11-01-27 14:24, Ben Bolker wrote:

            
Double post?
x <- c(1, 1.3)
x==round(x, 0)
Rather ugly and long winded, but works:

z <- rt(1000, 3)
q <- quantile(z, c(.05, .95))
mean(z[z>q[1] & z<q[2]])