PLEASE SOMEONE SOLVE THIS PROBLEM USING R SOFTWARE. I NEED THE R CODE AND CORREC
ID: 2925912 • Letter: P
Question
PLEASE SOMEONE SOLVE THIS PROBLEM USING R SOFTWARE. I NEED THE R CODE AND CORRECT ANSWER! I WILL GIVE GOOD RATING IF R CODE AND CORRECT ANSWER IS GIVEN. THANK YOU!!!
6. Bon Air Elementary School has 1000 students. The principal of the school thinks that the average IQ of students at Bon Air is at least 110. To prove her point, she administers an IQ test to 30 randomly selected students. Among the sampled students, the average IQ is 108 with a standard deviation of 10. Based on these results, can we reject the principal's original hypothesis? (Answer this question by finding a 95% confidence of the mean of IQ in this school). Copy your R code and the result.Explanation / Answer
R-CODE
> xbar = 108 # sample mean
> mu0 = 110 # hypothesized value
> sigma = 10 # population standard deviation
> n = 30 # sample size
> z = (xbarmu0)/(sigma/sqrt(n))
> z # test statistic
[1] -1.09545
We then compute the critical value at .05 significance level.
> alpha = .05
> z.alpha = qnorm(1alpha)
> z.alpha # critical value
[1] 1.6449
> pval = pnorm(z, lower.tail=FALSE)
> pval # upper tail pvalue
[1] 0.13666
we have evidence that the average IQ of student at Bon ait is at least 110
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.