24. 等分散性検定(F検定)
> var.test(t_sample.x,t_sample.y)
F test to compare two variances
data: t_sample.x and t_sample.y
F = 0.9877, num df = 999, denom df = 999, p-value = 0.8448
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
0.8724221 1.1181794
sample estimates:
ratio of variances
0.9876864帰無仮説:「2群間の分散に差がな
い」
有意水準(p値) 0.05以上なので
「帰無仮説を棄却するに値しな
い」
帰無仮説を採択する。
等分散と判定する
28. t検定
> t.test(t_sample.x,t_sample.y,var.equal=T)
Two Sample t-test
data: t_sample.x and t_sample.y
t = 42.5748, df = 1998, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
18.00265 19.74127
sample estimates:
mean of x mean of y
49.50618 30.63422帰無仮説:「2群間の平均値に差がな
い」
有意水準(p値) 0.05以下なので
「帰無仮説を棄却する」
対立仮説を採択する。
平均値に差があると
判定する