What Is ANOVA? A Simple SPSS Guide with Demo Data
Run one-way ANOVA in SPSS with demo data and screenshots. Check assumptions, interpret the overall test and Tukey comparisons, and report the results.
Published

Analysis of variance (ANOVA) is a statistical test used to compare the population means of three or more groups through differences in their observed sample averages. Researchers use one-way ANOVA when they have one categorical grouping variable and a numerical outcome—for example, comparing average quiz scores across three teaching methods. The overall test assesses whether all group means could be equal; if it provides evidence of a difference, follow-up comparisons help identify which groups differ.
The key word is overall. A significant ANOVA result tells you that the data provide evidence that the population averages are not all equal. It does not tell you which groups differ. We use a follow-up comparison to answer that second question. NIST explains this overall test of group means.
Let's work through one small example, then run it in SPSS. You do not need to memorise the formula. Start by understanding the comparison.
A simple example: three ways to revise for a quiz
Imagine 18 students preparing for the same quiz. Six revise on their own, six watch a video lesson, and six attend a teacher-led revision session. Each student belongs to one group and takes the quiz once. Scores are measured on a 0–100 scale.
Our question is: Do the three revision groups have different average quiz scores? SPSS calls an average a mean, so you can read “mean score” as “average score” throughout this guide. If your question instead compares two independent groups, see the independent-samples t-test walkthrough.
The table contains all the invented scores used in the demonstration. Read each column as a different group of six students. The students on the same horizontal line are not matched pairs; the layout simply saves space.
| Self-study | Video lesson | Teacher-led |
|---|---|---|
| 65 | 67 | 75 |
| 68 | 69 | 77 |
| 70 | 72 | 80 |
| 71 | 73 | 81 |
| 73 | 75 | 83 |
| 73 | 76 | 84 |
| Average: 70 | Average: 72 | Average: 80 |
For example, the six Self-study scores add up to 420. Divide 420 by six students and the average is 70. The other group averages are 72 and 80. Those averages describe the sample. ANOVA adds an assessment of the evidence for a difference in the populations the groups represent.
These are simulated teaching data, not results from a real educational study. The group differences were constructed to make the lesson easy to follow. Every screenshot and downloadable data file uses these same 18 scores.

Why is it called analysis of variance?
Even students in the same revision group do not all get the same score. In the Self-study group, scores range from 65 to 73. That is variation within a group. The differences between the averages of 70, 72 and 80 are variation between groups.
ANOVA compares these two sources of variation. If the group averages are far apart relative to the variation within groups, the data give more evidence against equal population means. The result is summarised by an F statistic. You will see it in the SPSS output later. NIST describes this separation of the variation.
Our starting assumption, called the null hypothesis, is that all three population averages are equal. The alternative is that at least one differs. “At least one” matters: two groups might be quite similar while a third is different.
Running a separate ordinary t-test for every pair creates a multiple-testing problem: the chance of at least one false positive across the set can increase. Tukey's method handles the set of pairwise comparisons together. That is why we use an ANOVA and an appropriate follow-up procedure for this example. NIST explains Tukey's simultaneous comparisons.
What does “one-way” mean?
In our example, there is one grouping variable: revision method. Researchers call a grouping variable a factor. Its three categories—Self-study, Video lesson and Teacher-led—are its levels. One factor with three levels still calls for a one-way ANOVA. “One-way” does not mean one group.
ANOVA also has designs for other research questions. The table helps you recognise when the walkthrough below fits your study.
| Study design | Example | Relevant approach |
|---|---|---|
| One factor, different students in each group | Three revision methods | One-way ANOVA for independent groups |
| Two factors | Revision method and lesson length | Two-way ANOVA |
| The same students measured repeatedly | Scores at three time points | Repeated-measures ANOVA |
Two-way ANOVA can examine both factors and whether their patterns depend on one another, called an interaction. Repeated-measures ANOVA accounts for measurements linked to the same person. These describe different design features; a repeated-measures analysis can also have one factor. Our demonstration uses one factor and different students in each group. See NIST's two-way explanation and IBM's description of repeated-measures designs.
Download and arrange the demo data
Open anova-practice.sav from the SPSS practice bundle. The bundle includes the labelled data, commands to recreate the analysis, and the actual SPSS output. The CSV is available separately. If you run the commands yourself, change the save paths to a folder on your computer first.
Download the demo CSV · Download the SPSS bundle: data, commands and output
In SPSS, use one row per student, with a score column and a revision-method column. Do not copy the three-column teaching table directly into three outcome variables. For this independent-groups procedure, SPSS needs one outcome column plus a column identifying each student's group. If the grouping and outcome roles are unclear, review independent and dependent variables before arranging the data.
The variable method stores the codes 1 = Self-study, 2 = Video lesson, 3 = Teacher-led. The variable score holds the quiz result. The variable id identifies each student. Set method to Nominal in Variable View because it names categories, and score to Scale because it is quantitative.

Check whether this analysis suits your data
The ordinary one-way ANOVA assumes independent observations, approximately normal errors within groups, and equal population variances. In plain language, think about who supplied the scores, the shape of their distributions, and how much they vary within each group. Kent State's SPSS guide summarises these requirements.
Independence comes from the study design. Here, each student contributes one score to one group. If the same students tried all three methods, or students were clustered in ways the analysis ignored, you would need an analysis that accounts for those relationships.
For a real dataset, use Analyze > Descriptive Statistics > Explore. Put score in Dependent List, method in Factor List, and request boxplots and normality plots under Plots. Look for data-entry errors, influential outliers and strong skewness within groups. A normality test alone cannot certify the assumptions, particularly with small samples. Our six-per-group example teaches the steps; it is not a sample-size recommendation.
We will also request Levene's test, which looks for evidence of unequal population variances. A large p-value does not prove equal variances; it means the test did not find clear evidence against equality. Use it alongside the plots and your understanding of the data. NIST explains Levene's test.
How to run one-way ANOVA in SPSS
The screenshots show IBM SPSS Statistics 27 on Windows. Make sure all 18 cases are included and no weights or split-file settings remain active from an earlier analysis.
Choose the outcome and groups
- Select Analyze > Compare Means > One-Way ANOVA.
- Move Quiz score [score] into Dependent List. This is the outcome whose average you want to compare.
- Move Revision method [method] into Factor. This tells SPSS how to separate the students into groups.

Request the useful output
- Click Options.
- Select Descriptive, Homogeneity of variance test, Welch test, and Means plot.
- Keep the confidence level at 0.95, meaning 95%, in the SPSS 27 window shown here. This installed dialog uses a proportion even though its label includes a percent sign. Other releases may display the level as 95 instead.
- Click Continue.
The main report below uses ordinary ANOVA with Tukey comparisons. We request Welch as an additional output so you can recognise the alternative when equal variances are unsuitable; its presence does not change the ordinary ANOVA table.

Request the follow-up comparisons
- Click Post Hoc.
- Select Tukey under Equal Variances Assumed.
- Use a significance level of .05. With the 0.95 confidence setting above, the option using the same alpha as Options supplies .05.
- Click Continue, then OK.

How to read your SPSS results
Read the tables in order. Begin with what happened in the sample, then examine the overall test, and finally the pairwise comparisons. This keeps the statistical labels connected to the original question about quiz scores.
Start with the averages

The Descriptives table confirms six students per group and means of 70.00, 72.00 and 80.00. N means the number of students. Std. Deviation, often abbreviated SD, describes the spread of their scores: 3.10, 3.46 and 3.46, respectively. The teacher-led group has the highest sample average, but this table alone does not tell you whether a population difference is supported.
Read Levene's test and the ANOVA table

In Tests of Homogeneity of Variances, read the Based on Mean row. Its Sig. = .936 is Levene's p-value. It does not show clear evidence of unequal population variances. For this teaching example, we proceed with ordinary ANOVA and Tukey. Do not describe .936 as proof that the variances are identical or as the result of the test about group averages.
Now look at the ANOVA table. On the Between Groups row, F = 15.000 and Sig. < .001. The two degrees of freedom are 2 for Between Groups and 15 for Within Groups. We write the result as F(2, 15) = 15.00, p < .001.
At our chosen .05 threshold, the overall result is statistically significant. We reject the starting assumption that all three population means are equal. The conclusion is that there is evidence of a difference somewhere among the means—not that all three methods differ from one another.
A p-value is the probability of a test result at least as extreme as the observed result, assuming the null hypothesis and the other model assumptions. It is not the probability that all the averages are equal. The American Statistical Association explains this distinction.
Find which groups differ using Tukey

The Multiple Comparisons table gives the follow-up results. The column Mean Difference (I − J) subtracts the second named group from the first. Teacher-led minus Self-study is 80 − 70 = 10 points. Reversing the order gives −10; it describes the same comparison.
| Comparison | Difference in average score | Tukey-adjusted p-value |
|---|---|---|
| Teacher-led minus Self-study | 10 points | < .001 |
| Teacher-led minus Video lesson | 8 points | .002 |
| Video lesson minus Self-study | 2 points | .567 |
The teacher-led group differs significantly from both other groups at .05. The Video lesson versus Self-study comparison does not reach that threshold. A difference of two points is present in the sample, but these data do not provide sufficient evidence of a population difference for that pair. This does not establish that the two methods are equivalent.
Tukey also gives 95% confidence intervals for the pairwise differences, adjusted for the set of comparisons. Teacher-led minus Self-study has an interval of 4.98 to 15.02 points; Teacher-led minus Video lesson has 2.98 to 13.02. Both exclude zero. Video lesson minus Self-study has −3.02 to 7.02, which includes zero. These intervals concern average differences, not the range of individual students' scores.
A simple paragraph explaining the result
Plain-language explanation: “The teacher-led group scored 80 on average, compared with 72 for the video group and 70 for the self-study group. The overall ANOVA found evidence of a difference among the group means. Follow-up comparisons showed that the teacher-led group differed from both other groups. The video and self-study groups did not show a statistically significant difference.”
Example research write-up: “A one-way ANOVA found a statistically significant difference in quiz scores among the three revision groups, F(2, 15) = 15.00, p < .001. Tukey HSD comparisons showed higher scores in the Teacher-led group (M = 80.00, SD = 3.46) than in Self-study (M = 70.00, SD = 3.10; mean difference = 10.00, p < .001) and Video lesson (M = 72.00, SD = 3.46; mean difference = 8.00, p = .002). Video lesson and Self-study did not differ significantly (p = .567).”
These statements describe the simulated dataset. Even with real data, statistical significance alone would not show that the revision method caused the difference. Group allocation, previous attainment and other influences would matter. Report how the study was designed before making a claim about effectiveness.
What if the group variances are very different?
The output includes a Robust Tests of Equality of Means table containing Welch's ANOVA. Welch allows unequal population variances. If your study needs that approach, use the Welch result and a suitable unequal-variance follow-up, such as Games–Howell, rather than treating Tukey as the correction for unequal variances. IBM lists the unequal-variance post-hoc procedures.
The choice should reflect your design, distributions and analysis plan, rather than whichever test gives the smallest p-value. Also, Welch does not solve dependence between observations. If the same students are measured repeatedly, return to the study design and use an appropriate repeated-measures or related model.
Check your understanding
Suppose the same six students try all three revision methods and provide three scores each. You cannot treat those eighteen scores as eighteen independent students in the procedure demonstrated here. The scores are linked to the same people, so the analysis must account for that link.
For an independent one-way ANOVA, finish this sentence before opening SPSS: “I am comparing the average ___ across groups defined by ___.” In our example, that becomes “I am comparing average quiz scores across groups defined by revision method.” Then remember the two questions: ANOVA asks whether the means are all equal; follow-up comparisons help identify which pairs differ.
Frequently asked questions
Can one-way ANOVA compare two groups?
Yes. With two independent groups and the same equal-variance assumptions, the conventional ANOVA F statistic equals the square of the corresponding two-sided pooled t statistic. The t-test guide is often the simpler route for that comparison.
Does a significant ANOVA mean every group differs?
No. The overall test concerns equality of all population means. Use planned contrasts or suitable multiple-comparison procedures to investigate the comparisons your question requires, and report their uncertainty.
Does a small p-value tell me how large the difference is?
No. Report group summaries, meaningful differences and an appropriate effect-size estimate with uncertainty where available. Statistical evidence against equal means does not by itself establish practical importance.
If you need a baseline-adjusted group comparison, see the ANCOVA walkthrough. For an association between two numerical measurements, start with correlation in SPSS.




Discussion