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