Skip to content

Confidence Interval

3 messages · Rachel Keyes, Ben Bolker, rak1304

#
Rachel Keyes <rkeyes87 <at> hotmail.com> writes:
standard normal N(0,1) samples
brackets) Calculate the sample
for the mean mew=0 is given
that 0 does not belong to Ik.  How
Nsamp<-100
no idea what I am
appreciated as I have no experience of
This sounds an awful lot like a homework problem.
Can you convince us not by giving us a little more context?

I will say that you seem to have made a pretty good start.
A hint is that if you have a logical condition,
sum(condition) will count the number of cases. For
example, sum(means>0) will count the number of positive
means.  ?abs and ?">" may help too.

 By the way, I think that's supposed to be "mu" and not "mew".

  Ben Bolker
#
Yes it is a homework problem, I included the whole question as I thought it
would make it easier to explain however I am unsure of how to do the
confidence interval part.  As far as I am aware I have set up a matrix with
my 100 samples of 100 and have calculated means.  Do I need to set up a new
matrix of these means and then do a confidence interval from there? Also
when I searched 'confint' in R I am confused as to how to adapt it to my
problem.

I am looking for the interval of each individual mean plus or minus 1.96/10

I wasnt aware of abs(x) and sum(means>0) so thankyou for pointing them out
to me.
Ben Bolker wrote: