
Problems:
• Test the null hypothesis that the variance 9 at a 10 % significance level and at a 1 % significance level. • Repeat steps 2-4 above for a new sample (generated via the same process) but with only 10 observations. • Construct another sample (from the same population) with 50 observations. Test the hypothesis that both samples of 50 observations each came from normal populations with the same mean (use α = 5%)
mu = 3
sd = sqrt(7)
x <- rnorm(50)*sd + 12#Generate a sample of 50 observations from a random N (12; 7) population
t.test(x, mu = 3)#Test the null hypothesis that the mean
t.test(x, mu = 11.75,conf.level =0.99 )
var.test(x,rnorm(50,12,3),ratio=1,conf.level=0.9)#Test the null hypothesis that the variance 





原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。