Question #28401

give me an exampe to perform levene's test. i have school project that make an app for QUEST algorithm. after do chi square or anova f test, sometimes i have to do levene's test. if you don't mind help me with an example

Expert's answer

Question #28401give me an exampe to perform levene's test. i have school project that make an app for QUEST algorithm. after do chi square or anova f test, sometimes i have to do levene's test. if you don't mind help me with an example Solution. Levene's test is used to test if kk samples have equal variances. Equal variances across samples is called homogeneity of variance. Suppose that your big sample Y=(Y1,,,Yk,cdot)Y = (Y_{1,\cdot},\ldots ,Y_{k,cdot}) is divided into kk "small" samples Yi,,1ikY_{i,\cdot},1\leq i\leq k . Leven's test tests whether r.v.s inside small groups possess the same variance. Statistic of the test is


W=(Nk)i=1kNi(Zi,Z,)2(k1)i=1kj=1Ni(Zi,jZi,)2W = \frac {(N - k) \sum_ {i = 1} ^ {k} N _ {i} (\overline {{Z _ {i , \cdot}}} - \overline {{Z _ {\cdot , \cdot}}}) ^ {2}}{(k - 1) \sum_ {i = 1} ^ {k} \sum_ {j = 1} ^ {N _ {i}} (Z _ {i , j} - \overline {{Z _ {i , \cdot}}}) ^ {2}}


here Zi,j=Yi,jYi,Z_{i,j} = |Y_{i,j} - \overline{Y_{i,\cdot}}| , Yi,\overline{Y_{i,\cdot}} is the mean of the i-th group. Respectively, Zi,\overline{Z_{i,\cdot}} are the group means of Zi,jZ_{i,j} , Yi,\overline{Y_{i,\cdot}} is the mean of the all Zi,jZ_{i,j} , N,NiN, N_i are respectively the size of the big and small samples. After calculating this statistics you should compare it with Fa,k1,NkF_{a,k-1,N-k} (take α=0.05\alpha = 0.05 for instance) quantile of Fisher distribution with k1k-1 and NkN-k degrees of freedom. If W>Fa,k1,NkW > F_{a,k-1,N-k} , then the null hypothesis is rejected, that is the variance inside the small samples differs. Otherwise, we accept the null hypothesis.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS