Question

In: Statistics and Probability

Find the 95% confidence interval of the mean of a vector in r code. The vector...

Find the 95% confidence interval of the mean of a vector in r code. The vector length is 100.

Solutions

Expert Solution

## R command

## Generated a sample of size n=100, mean=10 and standard deviation (s)=2.

x=rnorm(n=100, mean=10, s=2)

n=length(x) ## Sample size
n

M=mean(x) #Mean of the sample
M

S=sd(x) ## Standard deviation of the sample
S

Q=qt(p=0.975, df=n-1) # Critical value of t for 95% CI
ME=Q*S/sqrt(n) # Margin of Error

# 95% confidence interval for population mean
Lower_bound=M-ME
Lower_bound
Upper_bound=M+ME
Upper_bound

## End


Related Solutions

Find a 95% confidence interval for predicting the mean length of fish in a particular pond...
Find a 95% confidence interval for predicting the mean length of fish in a particular pond if the sample data contained the following length in centimeters 23 45 43 34 26 36 67 45 43 55 53 42 87 65 45 51 53 54 54 48 49 54 53 52 54
Find the margin of error for a 95% confidence interval (nearest hundredths) of the mean test...
Find the margin of error for a 95% confidence interval (nearest hundredths) of the mean test score of Statistics students at Clayton State University given the following sample data scores: 87 85 56 82 67 77 73 71 90 74 76 79 81 84 Find a 99% confidence interval estimate (nearest hundredth) using the data in #12. The height (in inches) of males in the United States is believed to be Normally distributed, with mean µ. The average height of...
What does a 95% confidence interval mean?
What does a 95% confidence interval mean?
95% Confidence Interval: 86.19 ± 0.364 (85.8 to 86.6) "With 95% confidence the population mean is...
95% Confidence Interval: 86.19 ± 0.364 (85.8 to 86.6) "With 95% confidence the population mean is between 85.8 and 86.6, based on 33945 samples." Short Styles: 86.19 (95% CI 85.8 to 86.6) 86.19, 95% CI [85.8, 86.6] Margin of Error: 0.364 What is the impact of your margin of error on your findings? Explain. Is there enough evidence to reject the null hypotheses, explain in plain English?
Use the given data to find the 95% confidence interval estimate of the population mean μ...
Use the given data to find the 95% confidence interval estimate of the population mean μ . Assume that the population has a normal distribution. IQ scores of professional athletes: Sample size n=25 Mean=103 Standard deviation s=15 Answer: ____ <μ< _____
Use the given data to find the 95% confidence interval estimate of the population mean μ....
Use the given data to find the 95% confidence interval estimate of the population mean μ. Assume that the population has a normal distribution. IQ scores of professional athletes: Sample size n=20 Mean x¯¯¯=104 Standard deviation s=14 <μ<
A pizza shop owner wishes to find the 95% confidence interval of the true mean cost...
A pizza shop owner wishes to find the 95% confidence interval of the true mean cost of a large plain pizza. How large should the sample be if she wishes to be accurate to within $0.14 ? A previous study showed that the standard deviation of the price was $0.40. Round your final answer up to the next whole number.
For the data set below, calculate r, r 2, and a 95% confidence interval in r...
For the data set below, calculate r, r 2, and a 95% confidence interval in r units. Then write a one- to two-sentence conclusion statement that includes whether the null hypothesis was rejected or not. Assume a two-tailed hypothesis and α = .05. Case 1 Case 2 Case 3 Case 4 Case 5 Case 6 X 1.05 1.15 1.30 2.00 1.75 1.00 Y 2 2 3 4 5 2
Find the 95% confidence interval for the mean number of times people itch themselves per hour...
Find the 95% confidence interval for the mean number of times people itch themselves per hour (iph), given that a sample of 20 people had a mean rate of 1.3 iph with a standard deviation of 0.5 iph. Assume an unknown σ and a close to normally distributed population.
Find out the 95% confidence interval for a sample whose Mean=10.50 and Standard Deviation is= 2.0....
Find out the 95% confidence interval for a sample whose Mean=10.50 and Standard Deviation is= 2.0. The sample size is n=50. ** please I need the answer in the computer typing not hand writing. Subject: Statistic
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT