语境
我需要比较两组学生。这些小组的学生做了一些工作,后来进行了评估。现在我有了每个学生的准确性的价值观。结果如下:
0.2 0.065 0.123 0.075 0.181 0.054 0.185 0.106 0.142
和
0.269 0.357 0.2 0.221 0.275 0.277 0.253 0.127 0.246
我想检查第一组在准确性方面是否比第二组更好。由于样本很小,我考虑使用 t 检验来比较样本。
H0假设是两组的准确率相等
H1假设是第1组的准确率大于第2组的准确率。
我使用了以下 R 函数:
t.test(precisionAdHoc$adhoc, precisionH4U$H4U, "g", 0, FALSE, TRUE, 0.95)
whereprecisionAdHoc$adhoc保存第一组的数据并precisionH4U$4HU保存第二组的数据。
我得到以下结果:
data: precisionAdHoc$adhoc and precisionH4U$H4U
t = -4.3687, df = 16, p-value = 0.9998
alternative hypothesis: true difference in means is greater than 0
95 percent confidence interval:
-0.1701334 Inf
sample estimates:
mean of x mean of y
0.1256667 0.2472222
问题
- 我是否
t.test正确使用了该功能?如果没有,我做错了什么?我应该如何纠正它? - 如果函数是正确的,我应该如何解释结果?