One-Way Analysis of Variance (ANOVA)
Course: MPC-006 Statistics in Psychology Β· Block 3 Β· Unit 3
Pages: 77β95 Β· π Download PDF
Prerequisite: t-Test for Independent & Correlated Samples | Significance of Difference Between Two Means
Why ANOVA? The Problem with Multiple t-Testsβ
Suppose you are comparing the effectiveness of three teaching methods across three groups of students. Your instinct might be to run multiple t-tests: Method A vs B, Method B vs C, Method A vs C β three tests in total. With eight groups this balloons to 28 comparisons. Two serious problems emerge:
1. Inflated Type I Error (Alpha Inflation)
Each t-test carries a 5% chance of a false positive at Ξ± = .05. Running three tests means the overall probability of making at least one false rejection is approximately:
The error rate has nearly tripled. With 28 tests it approaches 76% β virtually guaranteeing a spurious finding. This phenomenon is called familywise error rate (FWER) inflation.
2. t-Test Ignores Within-Group Variance
Consider this dataset from the PDF (p. 78):
| Group | Scores | Sum | Mean |
|---|---|---|---|
| Girls | 15, 20, 5, 10, 35 | 85 | 17 ms |
| Boys | 20, 15, 20, 20, 10 | 85 | 17 ms |
Both groups have identical means (17 ms). A t-test would find no significant difference. Yet girls show extreme variability (range 5β35) while boys are tightly clustered (range 10β20). The groups differ meaningfully, but the t-test misses this because it only compares means β not the spread within each group.
ANOVA solves both problems by testing all group differences simultaneously, using the ratio of between-group variance to within-group variance as its test statistic β the F-ratio.
ANOVA was invented by Sir Ronald A. Fisher (1890β1962), widely regarded as the father of modern statistics. He first published the method in 1923, originally applying it to agricultural field experiments. The "F" in F-ratio stands for Fisher. His foundational text Statistical Methods for Research Workers (1925) transformed hypothesis testing across the sciences. Wikipedia: Ronald Fisher
The Logic of ANOVAβ
ANOVA partitions the total variance in a dataset into two independent components:
Between-groups variance (SS_A) captures differences among group means β this reflects the treatment effect plus random error.
Within-groups variance (SS_W) captures variability inside each group β this is pure random/error variance (individual differences, measurement error).
If the treatment truly has an effect, the between-groups variance will be large relative to within-groups variance. The F-ratio quantifies this:
When , between-group variation is no larger than random noise β no treatment effect. When , the groups differ beyond what chance can explain.
Variance: The Foundationβ
Before computing ANOVA, you must have a solid grasp of variance β the measure at the heart of the analysis.
Standard Deviation (Ο) measures spread as average distance from the mean, in the same units as the data. Variance (ΟΒ²) is its square:
Or using degrees of freedom (sample variance):
Key Characteristics of Varianceβ
| Property | Explanation |
|---|---|
| Always positive (β₯ 0) | Squaring eliminates negative deviations |
| Units are squared | Variance in msΒ² if data is in ms |
| Unaffected by adding/subtracting a constant | |
| Additive for independent components | |
| Ο = βΟΒ² | Standard deviation recovers original units |
SD has direction (like length): it tells you how far scores typically stray from the mean.
Variance is an area (lengthΒ²): it lives on the normal curve as a surface, not a distance. ANOVA works with variances β not SDs β precisely because variances add (SDs do not).
Step-by-Step ANOVA Procedureβ
Notationβ
| Symbol | Meaning |
|---|---|
| Number of groups | |
| Cases per group (equal groups) | |
| Total cases = | |
| Group sums | |
| Sum of all squared scores | |
| Group means | |
| Correction term |
The 8-Step Formula Sequenceβ
Step 1: Correction Term
Step 2: Total Sum of Squares
Step 3: Between-Groups Sum of Squares
Step 4: Within-Groups Sum of Squares
Step 5: Between-Groups Mean Square
Step 6: Within-Groups Mean Square
Step 7: F-Ratio
Step 8: ANOVA Summary Table
| Source | df | SS | MSS | F |
|---|---|---|---|---|
| Between Groups | ||||
| Within Groups (Error) | β | |||
| Total | β | β |
Worked Example 1: Intelligence Across Streamsβ
Source: PDF p. 83β85
Three groups of 5 students each (Arts, Commerce, Science) took an intelligence test. Do the streams differ?
Data:
| S.No. | Arts () | Commerce () | Science () |
|---|---|---|---|
| 1 | 15 | 12 | 12 |
| 2 | 14 | 14 | 15 |
| 3 | 11 | 10 | 14 |
| 4 | 12 | 13 | 10 |
| 5 | 10 | 11 | 10 |
| Ξ£ | 62 | 60 | 61 |
| M | 12.40 | 12.00 | 12.20 |
, ,
:
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
Summary Table:
| Source | df | SS | MSS | F |
|---|---|---|---|---|
| Between Groups | 2 | 0.40 | 0.20 | 0.05 |
| Within Groups | 12 | 48.00 | 4.00 | β |
| Total | 14 | 48.40 | β | β |
Decision: for dfβ = 2, dfβ = 12 at .05 level = 3.88. Obtained F = 0.05 < 3.88.
Retain Hβ. The three streams do not differ significantly in intelligence.
Worked Example 2: Four Drugs & Physical Growth (with Post-Hoc)β
Source: PDF p. 85β88
20 rats randomly assigned to 4 drug groups (5 each). Gain in weight (oz) after 1 month:
| S.No. | Drug P | Drug Q | Drug R | Drug S |
|---|---|---|---|---|
| 1 | 4 | 9 | 2 | 7 |
| 2 | 5 | 10 | 6 | 7 |
| 3 | 1 | 9 | 6 | 4 |
| 4 | 0 | 6 | 5 | 2 |
| 5 | 2 | 6 | 2 | 7 |
| Ξ£ | 12 | 40 | 21 | 27 |
| M | 2.40 | 8.00 | 4.20 | 5.40 |
, ,
:
Cx
| Source | df | SS | MSS | F |
|---|---|---|---|---|
| Between Groups | 3 | 82.80 | 27.60 | 6.38 |
| Within Groups | 16 | 69.20 | 4.325 | β |
| Total | 19 | 152.00 | β | β |
Decision: for dfβ = 3, dfβ = 16 = 5.29. Obtained F = 6.38 > 5.29.
Reject Hβ at .01 level. The four drugs are not equally effective.
Post-Hoc Comparisons (Paired t-Tests)β
Since F is significant, we use t-tests to identify which drugs differ:
| Comparison | Difference | t-value | df | Significant? |
|---|---|---|---|---|
| P vs Q | 5.60 | 4.28 | 16 | β .01 level |
| P vs R | 1.80 | 1.37 | 16 | β n.s. |
| P vs S | 3.00 | 2.29 | 16 | β .05 level |
| Q vs R | 3.80 | 2.90 | 16 | β .05 level |
| Q vs S | 2.60 | 1.98 | 16 | β n.s. |
| R vs S | 1.20 | 0.92 | 16 | β n.s. |
Conclusion: Drug Q (mean = 8.00) is significantly superior to P and R. Drug Q and Drug S are approximately equivalent. Drug P is least effective.
ANOVA Assumptionsβ
ANOVA is a parametric test built on four assumptions. Violating them can invalidate conclusions:
What happens when assumptions are violated?
| Assumption | Violation Effect | Remedy |
|---|---|---|
| Normality | F-test becomes inaccurate with small N | Use Welch ANOVA or non-parametric Kruskal-Wallis |
| Homogeneity | F inflated or deflated | Welch's correction; Brown-Forsythe ANOVA |
| Independence | Severely biased results | Redesign study; use repeated measures ANOVA |
ANOVA is generally robust to mild normality violations when group sizes are equal and large (N β₯ 30 per group), due to the central limit theorem. Homogeneity of variance is more critical β especially with unequal sample sizes.
F-Test and t-Test: The Mathematical Relationshipβ
The F-test and t-test are not independent tests β they are mathematically linked:
This means when you have exactly two groups, the one-way ANOVA F-test gives identical results to the independent samples t-test. The F-ratio with dfβ = 1 equals the square of the t-value.
Why use ANOVA over multiple t-tests then?
| Feature | Multiple t-Tests | One-Way ANOVA |
|---|---|---|
| Number of tests | 1 | |
| Type I error control | Poor (inflated) | Excellent (familywise) |
| Within-group variance | Ignored | Explicitly modeled |
| Efficiency | Low | High |
| Post-hoc flexibility | N/A | Many options (Tukey, ScheffΓ©, Bonferroni) |
The relationship also confirms that within-group variance is embedded in the F-test in a way it never is in simple t-tests β that is why F is the preferred approach when comparing 3+ groups.
Using the F-Tableβ
F-tables have two df dimensions:
- dfβ (columns) = = between-groups df = "greater mean squares"
- dfβ (rows) = = within-groups df = "smaller mean squares"
Most tables show two values per cell: the normal-print value is for .05 level and the bold/dark-print value is for .01 level.
Reading the table (Example 1): dfβ = 2, dfβ = 12
β Find column 2, row 12 β Fββ
= 3.88, Fββ = 6.93
β Obtained F = 0.05 β much less than 3.88 β not significant
Reading the table (Example 2): dfβ = 3, dfβ = 16
β Fββ
= 3.24, Fββ = 5.29
β Obtained F = 6.38 β exceeds Fββ β significant at .01 level
dfβ = (number of groups β 1)
dfβ = (total N β number of groups)
df_total = N β 1 = dfβ + dfβ
Merits and Limitationsβ
- β Merits
- β οΈ Limitations
- Simultaneous comparison of 3+ groups without inflating Type I error
- Evaluates both between-group and within-group variance β more complete picture than t-test
- Economical: one overall F-test replaces pairwise tests
- Foundation for complex designs: two-way ANOVA, repeated measures, MANOVA all build on one-way ANOVA
- Versatile: applicable to experimental (random assignment) and quasi-experimental designs
- Supports interaction effects in factorial extensions
- Assumption-sensitive: normality and homogeneity of variance required
- Omnibus test only: significant F tells you that groups differ, not which pairs differ β post-hoc tests needed
- Time-consuming with large k: post-hoc comparisons multiply rapidly
- Requires F-table: cannot interpret results without critical value reference
- Cannot be used when groups are severely unequal in size without adjustment
- Sensitive to outliers, which can distort the F-ratio substantially
Post-Hoc Tests: Beyond the F-Ratioβ
When F is significant, you need post-hoc (after the fact) comparisons to pinpoint which groups differ. The PDF uses simple paired t-tests (the Least Significant Difference or LSD approach). Modern alternatives with better error control include:
| Post-Hoc Test | Error Control | Best When |
|---|---|---|
| LSD (t-tests) | None (liberal) | All pairs planned a priori |
| Bonferroni | Adjusts Ξ± by m = number of comparisons | Few planned comparisons |
| Tukey's HSD | Familywise .05 | All pairwise comparisons |
| ScheffΓ© | Most conservative | Complex contrasts |
| Games-Howell | Unequal variances | Heteroscedastic data |
Indian Research Contextβ
ANOVA is among the most commonly used statistical techniques in Indian psychological research. Some applications:
Educational Psychology: ANOVA studies comparing academic performance across government, aided, and private school students are a staple of M.Ed. and M.A. (Education) dissertations across Indian universities. Studies regularly examine whether stream selection (Science/Arts/Commerce) interacts with socioeconomic background in predicting academic self-efficacy.
Clinical Psychology: Indian researchers have used one-way ANOVA to compare depression and anxiety scores across diagnostic groups (clinical, at-risk, control) in hospitals affiliated with NIMHANS (Bengaluru) and AIIMS (New Delhi).
Occupational Psychology: ANOVA comparing job satisfaction scores across public sector, private sector, and self-employed workers has been a recurrent theme in Indian organizational research, particularly in states with diverse employment landscapes (Maharashtra, Tamil Nadu, Kerala).
Agrarian Research Heritage: Fisher developed ANOVA for agriculture β and Indian agricultural universities (e.g., IARI, ICAR-affiliated colleges) have used it extensively since the 1950s for comparing crop yield across fertilizer treatments, mirroring the original Fisherian applications.
Real-World Applications in Psychologyβ
- Clinical trials: Comparing outcomes across a control group, low-dose, and high-dose drug groups β standard in RCTs
- Educational interventions: Testing whether three instructional formats (lecture, flipped classroom, peer learning) differ in learning outcomes
- Neuropsychology: Comparing reaction times across healthy controls, MCI patients, and Alzheimer's patients
- Consumer psychology: Measuring purchase intent across five advertisement formats
- Occupational psychology: Comparing burnout scores across three shift-work schedules
Memory Aidsβ
π§ The ANOVA Acronym: B-W-Fβ
Between Γ· Within = F-ratio
"Between and Within give you F"
π΅ The Steps Rhymeβ
"Correct, Square Total, Subtract Among,
Within's what's left when variance belongs.
Mean-Squares by df, then F you see,
Check the table β reject or keep Hβ free."
π’ The df Triangleβ
N - 1 (total)
/ \
k - 1 N - k
(between) (within)
Total df splits into between-groups df and within-groups df β they always add up.
β‘ F vs t Quick Ruleβ
If you have 2 groups β t-test
If you have 3+ groups β ANOVA (F-test)
After a significant F with 3+ groups β Post-hoc t-tests
Always:
External Resourcesβ
π Essential Readingβ
- Wikipedia: Analysis of Variance β comprehensive overview with history and extensions
- Wikipedia: F-test β mathematical foundations of the F-distribution
- Statistics How To: One-Way ANOVA β step-by-step tutorials with examples
π Video Lecturesβ
- Crash Course Statistics #33: ANOVA β conceptual introduction, highly accessible
- StatQuest: One-Way ANOVA (Josh Starmer) β visual explanation of between vs within variance
- Khan Academy: ANOVA β interactive problem sets with F-ratio interpretation
π Research Papers (2020β2025)β
- Blanca, M.J., et al. (2023). ANOVA versus Kruskal-Wallis: Which test to use when the normality assumption is violated? Psicothema, 35(1). β examines robustness across conditions
- Delacre, M., et al. (2019). Taking parametric assumptions seriously. International Review of Social Psychology, 32(1). [doi:10.5334/irsp.198] β argues for Welch's ANOVA as default
- Sullivan, G.M., & Feinn, R. (2012). Using effect size β or why the P value is not enough. Journal of Graduate Medical Education, 4(3), 279β282. β on reporting eta-squared (Ξ·Β²) alongside F
π Online Toolsβ
- Social Science Statistics: One-Way ANOVA Calculator β free browser-based calculator
- Real Statistics: ANOVA in Excel β includes Excel formulas and interpretation guidance
Self-Assessment Questionsβ
π’ Knowledge (Recall)β
-
Define variance and state how it differs from standard deviation. Why is variance (not SD) the preferred measure in ANOVA?
-
State all four assumptions underlying one-way ANOVA. What test can be used to verify the homogeneity of variance assumption?
-
Complete the ANOVA summary table for a study with k = 4 groups and N = 24 total observations, given SS_A = 36 and SS_T = 108.
(Calculate df, SS_W, MSS_A, MSS_W, and F.)
π‘ Comprehension (Understanding)β
-
Explain why ANOVA is preferred over multiple t-tests when comparing more than two group means. Use the concept of familywise error rate in your answer.
-
In the drugs example (Example 2), the F-ratio was 6.38 and significant at .01 level. But post-hoc comparisons showed that Groups B and D (Drugs Q and S) did not differ significantly from each other. How is it possible that the overall F is significant but some pairs are not?
-
What does an F-ratio of 1.0 indicate? What does an F-ratio of 15.0 suggest about between-group vs within-group variance?
π΄ Application (Problem-Solving)β
- Solve this problem: Four methods of stress management were tested on 4 groups of 6 participants each. The group anxiety scores (post-treatment) were:
| Method A | Method B | Method C | Method D |
|---|---|---|---|
| 12, 10, 14, 13, 11, 12 | 8, 7, 9, 8, 6, 10 | 15, 14, 16, 15, 13, 14 | 10, 9, 11, 10, 8, 10 |
Apply one-way ANOVA and determine whether the methods differ significantly in reducing anxiety (use F-table if available, or compare your calculated F with Fββ for appropriate df).
Summaryβ
| Concept | Key Point |
|---|---|
| ANOVA vs t-test | ANOVA tests 3+ groups simultaneously; avoids alpha inflation |
| F-ratio | β between Γ· within variance |
| SS partition | (always) |
| df partition | = |
| Significant F | Reject Hβ β proceed to post-hoc comparisons |
| Non-significant F | Retain Hβ β stop; no pair differences are significant |
| F and t relationship | ; for two groups, results are identical |
| Assumptions | Normality, homogeneity of variance, independence, random sampling |
| Invented by | Sir Ronald Fisher (1923) β originally for agricultural experiments |
Source PDFs:
- π Block-3/Unit-3.pdf β Pages 77β95
- π MPC-006 Statistics in Psychology, IGNOU