To set up an independent (between groups) one-way ANOVA you will need two columns of data, one for the idependent variable (a categorical variable which specifies which group each case belongs to) and one for the dependent variable (the thing you measured).
Go to the Analyze menu and select the submenu Compare Means. In this submenu you'll see several tests. The one that we're interested in today is One-way ANOVA. | |
![]() | |
After selecting One-way ANOVA you'll get a window that looks like this. Here you should select the variables that you are testing. Your "Dependent List" is your dependent variable (the continuous variable that you measured). Your "Factor" is the independent variable that assigns each subject to a group. | |
![]() |
|
Here is what the output will look like. | |
![]() |
|
Notice that the output is given in the standard ANOVA table output. SPSS doesn't tell you to reject or fail to reject the H0, nor does it give you the Fcrit. To make your decision about the H0 you must compare the p-value with your a-level. If the p-value is equal to or smaller than the your a-level, then you should reject the H0, otherwise you should fail to reject H0. |
Sources between groups within groups |
Sum of squares |
Degrees of Freedom |
Mean square |
F statistis |
Significance level of F |
Post Hoc Multiple Comparisons: Post hoc means "after the fact." "Multiple comparisons" means that all possible pairs of factors are compared. There are many options regarding post hoc tests on SPSS. However, some are more commonly used than others.
Go to the Analyze menu and select the submenu Compare Means. In this submenu you'll see several tests. The one that we're interested in today is One-way ANOVA. | |||||
![]() |
|||||
After selecting One-way ANOVA you'll get a window that looks like this. Here you should select the variables that you are testing. Your test variable is your dependent variable. Your group variable is the independent variable that assigns each subject to a group. | |||||
![]() |
|||||
|
To the right is what the output from SPSS looks like. The results of Comparision 1 (group 1 vs 2) is significant (p = 0.001) Comparison 2 (group 1 vs 3) is not significant (p > 0.05) Comparison 3 (group 2 vs 3) is significant (p = 0.001) |
|
The output for these three tests is presented below. For each, you will see the results of each pairwise comparision. For example, the Tukey HSD test, book alone vs. notes alone, is significant (p = 0.004), while book alone vs. borrowed notes is not significant (p > 0.05). The next set is notes alone vs book alone and notes alone vs borrowed, and the set after that is borrowed against book alone and borrowed against notes alone. The results for the other post hoc tests are aranged in the same way.
Based on these results (either the planned comparisons, if we had some reason in advance to test the groups against one another, or the post hocs, if we found rejected the H0 based on our ANOVA first) we can reject several of the alternative hypotheses:
m1 not equal to m2 not equal to m3 | REJECT | m1 not equal to m2 = m3 | REJECT |
m1 = m2 not equal to m3 | REJECT |
m1 = m3 not equal to m2 | FAIL TO REJECT |