关于 matlab中使用t检验的问题X=[-6.990.99-1.46-1.73.082.09-2.232.85-6-0.74.724.686.233.542.860.39];>> Y= [-4.592.62-1.670.867.344.99-1.523.96-3.980.999.224.124.754.534.43-1.14];>> [H,P,CI]=ttest(X,Y);H =1P =0.0061CI =-2.3530-0.4670H=1,拒绝
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 13:04:57
关于 matlab中使用t检验的问题X=[-6.990.99-1.46-1.73.082.09-2.232.85-6-0.74.724.686.233.542.860.39];>> Y= [-4.592.62-1.670.867.344.99-1.523.96-3.980.999.224.124.754.534.43-1.14];>> [H,P,CI]=ttest(X,Y);H =1P =0.0061CI =-2.3530-0.4670H=1,拒绝
关于 matlab中使用t检验的问题
X=[-6.99
0.99
-1.46
-1.7
3.08
2.09
-2.23
2.85
-6
-0.7
4.72
4.68
6.23
3.54
2.86
0.39];
>> Y= [-4.59
2.62
-1.67
0.86
7.34
4.99
-1.52
3.96
-3.98
0.99
9.22
4.12
4.75
4.53
4.43
-1.14];
>> [H,P,CI]=ttest(X,Y);
H =
1
P =
0.0061
CI =
-2.3530
-0.4670
H=1,拒绝零假设,那零假设是什么?
关于 matlab中使用t检验的问题X=[-6.990.99-1.46-1.73.082.09-2.232.85-6-0.74.724.686.233.542.860.39];>> Y= [-4.592.62-1.670.867.344.99-1.523.96-3.980.999.224.124.754.534.43-1.14];>> [H,P,CI]=ttest(X,Y);H =1P =0.0061CI =-2.3530-0.4670H=1,拒绝
对于X、Y两个正态总体的样本,其t检验应使用ttest2()函数来检验假设.
>> [H,P,CI]=ttest2(X,Y)
H =
0 (表示在显著性水平为0.05下,不能拒绝原假设,H0:μ1=μ2,H1:μ1