ANOVA Explained: How to Perform One-Way and Two-Way ANOVA in SPSS
What is ANOVA? A Simple Explanation
ANOVA stands for Analysis of Variance. Despite the fancy name, the concept is straightforward.
Imagine you want to compare exam scores from three different universities: UoN, KU, and Moi. You notice their average scores are slightly different. But is that difference real, or just random chance?
ANOVA answers this question by looking at variance—how spread out the scores are. It asks: Is the difference between the groups big enough that it probably isn’t just luck?
| Concept | Simple Meaning |
|---|---|
| Between-group variance | Differences among the universities |
| Within-group variance | Differences inside each university |
| F-statistic | Between-group ÷ Within-group (signal to noise) |
If the F-statistic is large and the p-value is less than 0.05, congratulations—you have found a statistically significant difference.
One-Way vs. Two-Way ANOVA: Which One Do You Need?
Before you touch SPSS, you need to know which test to run.
One-Way ANOVA
Use this when you have one independent variable with three or more categories.
Example: Comparing exam scores (DV) across three universities (IV: University with levels UoN, KU, Moi).
Research question: Is there a significant difference in performance among students from UoN, KU, and Moi?
Two-Way ANOVA
Use this when you have two independent variables. This allows you to test for an interaction effect.
Example: Comparing exam scores (DV) based on University (UoN, KU, Moi) AND Gender (Male, Female).
Research question: Does the effect of university on performance depend on gender?
The Two-Way ANOVA is more powerful because it can reveal whether two factors work together to influence your results.
Assumptions of ANOVA (Check These First)
Before running any test, ensure your data meets these three assumptions. If not, your results may be invalid.
| Assumption | What It Means | How to Check in SPSS |
|---|---|---|
| Normality | Data is roughly bell-shaped | Shapiro-Wilk test or Q-Q plots |
| Homogeneity of variance | Spread of scores is similar across groups | Levene’s test (we will cover this) |
| Independence | Each respondent belongs to only one group | Study design (no repeated measures) |
For Kenyan thesis purposes, Levene’s test is the most commonly reported assumption check.
Step-by-Step: One-Way ANOVA in SPSS
Step 1: State Your Hypotheses
Null hypothesis (H₀): There is no significant difference in exam scores among UoN, KU, and Moi students.
Alternative hypothesis (H₁): There is a significant difference in exam scores among at least two of the universities.
Step 2: Set Up Your Data
In SPSS Data View, create two columns:
Column 1 (Score): All exam scores in one column.
Column 2 (University): Code groups as 1 = UoN, 2 = KU, 3 = Moi.
Step 3: Run the Test
Navigate to: Analyze > Compare Means > One-Way ANOVA
Move your dependent variable (Score) into the Dependent List.
Move your independent variable (University) into the Factor box.
Step 4: Click “Post Hoc”
Post hoc tests tell you which specific groups are different. Click Post Hoc and select Tukey (most common for equal sample sizes) or Bonferroni (more conservative).
Step 5: Click “Options”
Select Descriptives (to see means and standard deviations) and Homogeneity of variance test (to check Levene’s test).
Click Continue, then OK.
How to Read One-Way ANOVA Output
SPSS will generate several tables. Focus on these four:
Table 1: Descriptives
This shows the mean and standard deviation for each university. Look here first to see which group scored highest.
Table 2: Test of Homogeneity of Variances (Levene’s Test)
Look at the Sig. column.
If p > 0.05, you have met the assumption. Good.
If p < 0.05, the assumption is violated. You may need to use Welch’s ANOVA instead.
Table 3: The ANOVA Table (The Main Event)
This is what you have been waiting for.
| Source | Sum of Squares | df | Mean Square | F | Sig. |
|---|---|---|---|---|---|
| Between Groups | 125.45 | 2 | 62.73 | 5.23 | 0.008 |
| Within Groups | 450.30 | 45 | 10.01 | ||
| Total | 575.75 | 47 |
Look at the Sig. (p-value) column.
If p < 0.05, the result is statistically significant. You reject the null hypothesis.
In this example, p = 0.008, which means there is a significant difference somewhere.
Table 4: Post Hoc Tests (Tukey HSD)
This table tells you exactly where the difference lies.
| (I) University | (J) University | Mean Difference | Sig. |
|---|---|---|---|
| UoN | KU | 3.45 | 0.042 |
| UoN | Moi | 4.12 | 0.008 |
| KU | Moi | 0.67 | 0.750 |
Interpretation: UoN performed significantly better than both KU and Moi (p < 0.05). There was no significant difference between KU and Moi.
Step-by-Step: Two-Way ANOVA in SPSS
When you have two independent variables, use Two-Way ANOVA.
Navigate to: Analyze > General Linear Model > Univariate
Dependent Variable: Exam Score
Fixed Factor(s): University AND Gender
Click Plots to create an interaction graph. Put one factor on the horizontal axis and the other as separate lines. Click Add, then Continue.
Click OK to run.
Reading Two-Way Output
Look at the Tests of Between-Subjects Effects table. Focus on three rows:
| Source | F | Sig. |
|---|---|---|
| University | 5.23 | 0.008 |
| Gender | 0.45 | 0.720 |
| University * Gender | 3.12 | 0.045 |
Main effect of University: Significant (p = 0.008). University matters.
Main effect of Gender: Not significant (p = 0.720). Gender does not matter.
Interaction effect (University * Gender): Significant (p = 0.045). This means the effect of university on performance depends on gender. Look at your profile plot to interpret this visually.
How to Report ANOVA Results in Your Thesis
Here are ready-to-use templates for your thesis or research paper.
Reporting One-Way ANOVA (APA Format)
*A one-way analysis of variance (ANOVA) was conducted to examine the effect of university type on student exam scores. The results revealed a statistically significant difference among the three universities, F(2, 45) = 5.23, p = 0.008. Post hoc comparisons using the Tukey HSD test indicated that the mean score for UoN (M = 78.5, SD = 4.2) was significantly higher than both KU (M = 75.0, SD = 3.8) and Moi (M = 74.3, SD = 4.0). No significant difference was found between KU and Moi.*
Reporting Two-Way ANOVA (APA Format)
*A two-way ANOVA was conducted to examine the effects of university and gender on exam scores. There was a significant main effect of university, F(2, 42) = 5.23, p = 0.008. There was no significant main effect of gender, F(1, 42) = 0.45, p = 0.720. However, there was a significant interaction effect between university and gender, F(2, 42) = 3.12, p = 0.045, indicating that the effect of university on performance depended on the student’s gender.*
Common Mistakes Kenyan Students Make with ANOVA
| Mistake | Why It Is a Problem |
|---|---|
| Running ANOVA for only 2 groups | A T-test is simpler and more appropriate |
| Forgetting Post Hoc tests | ANOVA tells you a difference exists, but not where |
| Ignoring Levene’s test | If variances are unequal, your results may be wrong |
| Misreading the p-value | p = 0.000 does not mean zero; it means p < 0.0005 |
Frequently Asked Questions
1. What is the difference between ANOVA and a T-test?
A T-test compares two groups. ANOVA compares three or more groups.
2. What if my data is not normal?
Use the non-parametric alternative: Kruskal-Wallis test.
3. What does p = 0.000 mean?
It means p < 0.0005. Your result is statistically significant.
4. Can I run ANOVA with unequal sample sizes?
Yes, but use the Welch ANOVA or be cautious with interpretation.
Conclusion
ANOVA does not have to be scary. Once you understand the logic—comparing between-group variance to within-group variance—the test makes sense. One-Way ANOVA handles a single factor with three or more groups. Two-Way ANOVA adds a second factor and reveals interaction effects.
The key steps are simple:
-
Check your assumptions (Levene’s test)
-
Run the test in SPSS
-
Read the p-value in the ANOVA table
-
Use Post Hoc (Tukey) to find where the difference lies
-
Report using the APA templates above
If you run into trouble with SPSS, if your p-values do not make sense, or if you simply do not have the time to figure this out alone, you do not have to struggle.
At Proposal Writers Kenya, we specialize in helping students complete their data analysis chapter accurately and on time. Whether you need someone to run your SPSS tests, interpret the output, or write up the results section for your thesis, our experts are here to help.
Click here to get help with your Data Analysis today – and finally move forward with your research.