由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - ttest in matlab
相关主题
How to make 3d plots in Matlab?问一个C++的binary search tree类实现问题
请问matlab里有办法查询webpage上的data并record下来嘛?正在期末考试中,跪求2道C++题目!在线等!!!!!!!!!!!!!!
how to plot the matrix in GNUplot?MATLAB Matrix Numeric Tools Help site
a question about data transfer in MPIwhat is wrong with my matlab?
How to get very uniformly distribution number between 0 and 1 using CMATLAB积分求教
MPI随机数请教终于完成一模拟matlab基本矩阵运算的C库
如何在xlswrite中使用strcat定义的文件名,谢谢!Analytic solution for an ODE
[请教]uniformly random sampling请教:如何用least square approach解超定方程组
相关话题的讨论汇总
话题: ttest话题: matlab话题: right话题: should话题: left
进入Computation版参与讨论
1 (共1页)
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

1 (共1页)
进入Computation版参与讨论
相关主题
请教:如何用least square approach解超定方程组How to get very uniformly distribution number between 0 and 1 using C
[转载] 有人知道如何把MATLAB .M 文件转换成C吗?MPI随机数请教
急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!如何在xlswrite中使用strcat定义的文件名,谢谢!
Re: 急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![请教]uniformly random sampling
How to make 3d plots in Matlab?问一个C++的binary search tree类实现问题
请问matlab里有办法查询webpage上的data并record下来嘛?正在期末考试中,跪求2道C++题目!在线等!!!!!!!!!!!!!!
how to plot the matrix in GNUplot?MATLAB Matrix Numeric Tools Help site
a question about data transfer in MPIwhat is wrong with my matlab?
相关话题的讨论汇总
话题: ttest话题: matlab话题: right话题: should话题: left