Evaluate the 95% CIs for the mean and the standard deviation of a population. How would I do this in R program?
I used the t-test for the mean but not sure about the standard deviation.
Obtain the sample size n and the (sample) standard deviation s.
Calculate the critical values needed for your calculation using the χ2-distribution:
The R code is:
qchisq(alpha/2,n-1,lower.tail=TRUE) qchisq(alpha/2,n-1,lower.tail=FALSE)
You can calculate the confidence interval:
Since you want the C.I. for the standard deviation, you need to take the square root of everything in the trilinear inequality:
Get Answers For Free
Most questions answered within 1 hours.