r****y 发帖数: 1437 | 1 Is following results consistent with what matlab said about "ttest"
function? Should 'right' means "the mean >0", then how could it failed
to reject null hypothesis here. Or their manual is wrong, 'right' and 'left'
should be exchanged?
>> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'right')
h =
0
p =
1
>> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'left')
h =
1
p =
0 | j**u 发帖数: 6059 | 2 ...
"
left'
【在 r****y 的大作中提到】 : Is following results consistent with what matlab said about "ttest" : function? Should 'right' means "the mean >0", then how could it failed : to reject null hypothesis here. Or their manual is wrong, 'right' and 'left' : should be exchanged? : >> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'right') : h = : 0 : p = : 1 : >> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'left')
| l******n 发帖数: 9344 | 3 你这数据有问题,怎么可能是normal出来的?
"
left'
【在 r****y 的大作中提到】 : Is following results consistent with what matlab said about "ttest" : function? Should 'right' means "the mean >0", then how could it failed : to reject null hypothesis here. Or their manual is wrong, 'right' and 'left' : should be exchanged? : >> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'right') : h = : 0 : p = : 1 : >> [h, p]=ttest([-20:0.001:-10], 0, 0.05, 'left')
| r****y 发帖数: 1437 | 4 It's a statistical test. You faked a set of data and it should give
you the answer you expect ba.
【在 l******n 的大作中提到】 : 你这数据有问题,怎么可能是normal出来的? : : " : left'
| l******n 发帖数: 9344 | 5 Yes, you are right.
Matlab is also right, it does 1-side test. And the null is mean is 0. In
this case, the mean is less than 0, so 'right' is the same as 'tail=-1'
, meaning that the alternative is mean is less than 0.
Of course, it should reject the null.
give
【在 r****y 的大作中提到】 : It's a statistical test. You faked a set of data and it should give : you the answer you expect ba.
| r****y 发帖数: 1437 | 6 Hehe, seems you should go to read matlab mannual ah.
【在 l******n 的大作中提到】 : Yes, you are right. : Matlab is also right, it does 1-side test. And the null is mean is 0. In : this case, the mean is less than 0, so 'right' is the same as 'tail=-1' : , meaning that the alternative is mean is less than 0. : Of course, it should reject the null. : : give
|
|