Test for equality of variances: Parametric and nonparametric Levene's test in SPSS - YouTube

Channel: Kent L枚fgren

[1]
Test for equality of variances, parametric and nonparametric, Levene's test in SPSS. Hi and
[10]
welcome. Equality of variances is a necessary assumption for some parametric and nonparametric
[17]
statistical methods. For example, an underlying assumption for both analysis of variance, which is
[24]
a parametric method, and the Kruskal-Wallis one-way analysis, a nonparametric method, is that
[31]
groups compared have highly equal variances and, as a consequence, we must be able to test for
[39]
equality of variances in both normal distributed data and non-normally distributed data. So, if
[47]
you have normally distributed data, you should perform the parametric Levene's test and if you
[54]
have non-normally distributed data, you should perform the nonparametric Levene's test.
[60]
In this tutorial, I will show you how to perform both, using SPSS's and I will show you the
[67]
necessary references and how to write out your results.
[72]
How to perform the parametric Levene's test: In this example, I have two variables, gender and
[81]
exam scores and I know for a fact that my data are normally distributed. In SPSS, the Levene's
[88]
test for normally distributed data is built into the ANOVA procedure, so let's run ANOVA. In
[95]
the menu of SPSS, click on analyze, select compare means, and then one-way ANOVA.
[103]
Put your data variable in the dependent list. In our example, it's exam scores. Put your groups in
[109]
the factor field. In our example, it's gender. Click on options and select homogeneity of variance
[118]
test and then click continue and okay.
[123]
Focus on the test of homogeneity of variances and the P value and, as you know, in SPSS's, the
[132]
P value is always labeled SIG. The known hypothesis for the parametric Levene's test is that
[138]
there is an equality of variance. If the P value is below 0.05, we reject the null hypothesis and
[147]
assume that we don't have equality of variance. If it is above 0.05, we keep the null hypothesis
[156]
and assume equality of variance.
[159]
If I perform the parametric Levene's test, this is how I would write out my results.
[182]
How to perform the nonparametric Levene's test: In this example, I have two variables,
[196]
hometown and final exam score and I know for a fact that my data are not normally distributed.
[203]
In SPSS's, it's not yet possible to execute the Levene's test for non-normally distributed data in
[212]
one step. We need to prepare our data by taking some initial steps to create three new variables
[219]
with ranked data, group mean ranks, and deviations from those mean ranks.
[226]
Step one, create the ranked data and put them into a new variable. This is how I do it with my
[235]
example data. In the SPSS's menu, select transform, then rank cases. Put your data into the field
[245]
variable. In my example, it's score, and then click okay. SPSS will automatically create and label
[254]
a new variable, R Score, where the letter R stands for ranked.
[262]
In this new variable, each student has been given an individual rank, based on their individual
[269]
exam scores. Students with low exam scores are given lower rankings than students who
[276]
performed better.
[278]
Step two, based on these individual rankings, it's time to determine the mean ranks for each
[284]
group. So, yet another variable has to be created in SPSS and this is how I do it. In the menu,
[292]
select data and then aggregate. Put the variable previously created, R Score, into the field
[300]
summaries of variable. Click on function and select mean. This will collect the numbers in the
[307]
variable R Score and aggregate them in the form of mean values. Put your groups in the field
[314]
break variable, in our example, town, and then click okay.
[320]
SPSS's will now automatically create and label a new variable. This time, it's called R
[327]
Score_Mean_1. In this new variable, each student has been given a value based on their group.
[336]
All members of the same group or town, in my example, will have the same value. It is the groups
[342]
mean rank.
[345]
Step three, create a third variable, containing a mixture of each individual's deviation from his or
[351]
her group's mean rank. This measure cannot contain negative values, because the Levene's test is
[359]
performed on positive measures. For each student in my example, I subtract the individual rank
[368]
value from his or her group mean rank and to perform this and to create this third variable and to
[375]
also make sure that all values are positive, I do the following: in the menu, select transform and
[382]
then compute variable. Then, on the target variable, create a label for this third, new variable.
[390]
Let's call it Ind Diff, which will be our abbreviation for Individual Differences.
[398]
In the field numeric expression, enter the formula R Score Mean 1 minus R Score and, before we
[408]
click okay and execute this computation, we must instruct SPSS that we only want positive
[416]
values, i.e. that any minuses must be transformed into pluses. So, in the field function group,
[423]
click once on all, and then select the entire expression, R Score Mean 1 minus R Score and
[432]
double click on ABS in the field functions and special variables. ABS is an abbreviation for
[442]
absolute value, which is never negative and, as you can see, the expression will change. You have
[450]
now instructed SPSS to transform all results to absolute values. Click okay and the third variable
[459]
is now created and it contains individual measures of spread, i.e. how far each individual is to his
[468]
or her group's mean.
[471]
Step four, now it's time to perform an ANOVA on these individual differences. In the menu,
[477]
select analyze and compare means and then one way ANOVA. Put individual differences in the
[484]
field dependent list and the variable groups in the field factor. Click on okay to execute.
[494]
The null hypothesis is that there is an equality of variance. If the P value is above 0.05, we keep
[506]
the null hypothesis and assume equality of variance. However, if the P value is below 0.05, we
[514]
reject the null hypothesis and assume that the differences in variance were spread between the
[521]
groups are statistically significant.
[524]
If I perform the nonparametric Levene's test, this is how I would write out my results.
[530]
Here are the references for this tutorial. When it comes to the Levene's test for normally
[544]
distributed data, you can pretty much use any statistical handbook. I like Martin and Bridgmon's
[550]
from 2012.
[553]
When it comes to Levene's test for non-normally distributed data, use these articles by
[558]
Nordstokke and Zumbo and Cairns and Saklofske.
[563]
Good luck with testing your data in SPSS for equality of variances, either through a parametric
[575]
or a nonparametric Levene's test.
[577]
Captions by GetTranscribed.com