matlab f检验,[转载]matlab进行F检验

本文介绍了如何在Matlab中使用vartest2函数进行两样本方差等性F检验,包括不同参数的用法、假设检验以及如何获取p值和置信区间,通过实例展示了在汽车模型年份数据上应用F检验的过程。
摘要由CSDN通过智能技术生成

Two-sample F-test for equal variances

Syntax

H = vartest2(X,Y)

H = vartest2(X,Y,alpha)

H = vartest2(X,Y,alpha,tail)

[H,P] = vartest2(...)

[H,P,CI] = vartest2(...)

[H,P,CI,STATS] = vartest2(...)

[...] = vartest2(X,Y,alpha,tail,dim)

Description

H = vartest2(X,Y) performs an F test of the hypothesis that two independent samples, in the vectors X and Y, come from normal distributions with the same variance, against the alternative that they come from normal distributions with different variances. The result is H = 0 if the null hypothesis (variances are equal) cannot be rejected at the 5% significance level, or H = 1 if the null hypothesis can be rejected at the 5% level. X and Y can have different lengths. X and Y can also be matrices or n-dimensional arrays.

For matrices, vartest2 performs separate tests along each c

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值