matlab 没有vartestn,Multiple-sample tests for equal variances

The Levene, Brown-Forsythe, and O’Brien

tests are used to test if multiple data samples have equal variances,

against the alternative that at least two of the data samples do not

have equal variances.

The test statistic is

W=(N−k)∑i=1kNi(Z¯i.−Z¯..)2(k−1)∑i=1k∑j=1Ni(Zij−Z¯i.)2,

where Ni is

the sample size of the ith group, and k is

the number of groups. Depending on the type of test specified with

the TestType name-value pair arguments, Zij can

have one of four definitions:

If you specify LeveneAbsolute, vartestn uses Zij=|Yij−Y¯i.|, where Y¯i. is the mean of the ith

subgroup.

If you specify LeveneQuadratic, vartestn uses Zij2=(Yij−Y¯i.)2, where Y¯i. is the mean of the ith

subgroup.

If you specify BrownForsythe, vartestn uses Zij=|Yij−Y˜i.|, where Y˜i. is the median of the ith

subgroup.

If you specify OBrien, vartestn uses

Zij=(0.5+ni−2)ni(yij−y¯i)2−0.5(ni−1)σi2(ni−1)(ni−2),

where ni is

the size of the ith group, σi2 is

its sample variance.

In all cases, the test statistic has an F-distribution

with k – 1 numerator degrees of freedom,

and N – k denominator

degrees of freedom.

The Levene, Brown-Forsythe, and O’Brien tests are less

sensitive to departures from normality than Bartlett’s test,

so they are useful alternatives if you suspect the samples come from

nonnormal distributions.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值