What is the definition of your test statistic? (Hint: It will involve a t-distribution that involves the mean and standard deviation of the sample).
Please help!!! I cant figure out how to solve this
The following data is the age at death (in days) for infants who died from sudden infant death syndrome (SIDS). Construct a 95% confidence interval for the true difference in mean age at death for male and female SIDS victims.
Female 55 120 135 154 54 115
Male 56 60 60 106 140 147
Thanks for any help anyone can give
I did it originally by finding a mean difference of 10.333 and standard deviation of 59.24. So then I did 10.333 ± invT(.975,1)(59.24/√6). but then I got a huge confidence interval. I am having trouble figuring out where I am going wrong
You will have two standard errors: One for male and one for female.
Show us your working out for the standard errors (i.e. the standard deviations of the sample). Also remember that the sample variance needs to be divided by the size of the sample for a comparison of means.
Using R, I got the following standard error for the difference:
 55 120 135 154 54 115
 56 60 60 106 140 147
> (((var(x)*6/5)/6) + ((var(y)*6/5)/6))^0.5
Now the size of the interval for a 95% interval is 2*1.96*se which is
> 1.96*2*(((var(x)*6/5)/6) + ((var(y)*6/5)/6))^0.5
You also have to remember that for estimating the variance you need to divide by (n-1) and not n which means that if you divided by n, your estimate will be smaller than it should be.