Skip to main content

One-Way Analysis of Variance (ANOVA)

Unit Overview

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:

1βˆ’(1βˆ’0.05)3=1βˆ’0.857=0.143β‰ˆ14%1 - (1 - 0.05)^3 = 1 - 0.857 = 0.143 \approx 14\%

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):

GroupScoresSumMean
Girls15, 20, 5, 10, 358517 ms
Boys20, 15, 20, 20, 108517 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.

Historical Note

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:

SSTotal=SSBetween+SSWithinSS_{Total} = SS_{Between} + SS_{Within}

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:

F=MSSAΒ (Between-GroupsΒ MeanΒ Square)MSSWΒ (Within-GroupsΒ MeanΒ Square)F = \frac{MSS_A \text{ (Between-Groups Mean Square)}}{MSS_W \text{ (Within-Groups Mean Square)}}

When Fβ‰ˆ1F \approx 1, between-group variation is no larger than random noise β€” no treatment effect. When F≫1F \gg 1, 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:

Οƒ2=βˆ‘(Xβˆ’M)2N\sigma^2 = \frac{\sum(X - M)^2}{N}

Or using degrees of freedom (sample variance):

s2=βˆ‘(Xβˆ’M)2Nβˆ’1s^2 = \frac{\sum(X - M)^2}{N - 1}

Key Characteristics of Variance​

PropertyExplanation
Always positive (β‰₯ 0)Squaring eliminates negative deviations
Units are squaredVariance in msΒ² if data is in ms
Unaffected by adding/subtracting a constantVar(X+c)=Var(X)Var(X + c) = Var(X)
Additive for independent componentsVar(A+B)=Var(A)+Var(B)Var(A + B) = Var(A) + Var(B)
Οƒ = βˆšΟƒΒ²Standard deviation recovers original units
SD vs Variance

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​

SymbolMeaning
kkNumber of groups
nnCases per group (equal groups)
NNTotal cases = nΓ—kn \times k
βˆ‘Xa,βˆ‘Xb...\sum X_a, \sum X_b ...Group sums
βˆ‘X2\sum X^2Sum of all squared scores
Ma,Mb...M_a, M_b ...Group means
CxCxCorrection term

The 8-Step Formula Sequence​

Step 1: Correction Term Cx=(βˆ‘X)2NCx = \frac{(\sum X)^2}{N}

Step 2: Total Sum of Squares SST=βˆ‘X2βˆ’CxSS_T = \sum X^2 - Cx

Step 3: Between-Groups Sum of Squares SSA=(βˆ‘Xa)2na+(βˆ‘Xb)2nb+β‹―+(βˆ‘Xk)2nkβˆ’CxSS_A = \frac{(\sum X_a)^2}{n_a} + \frac{(\sum X_b)^2}{n_b} + \cdots + \frac{(\sum X_k)^2}{n_k} - Cx

Step 4: Within-Groups Sum of Squares SSW=SSTβˆ’SSASS_W = SS_T - SS_A

Step 5: Between-Groups Mean Square MSSA=SSAkβˆ’1MSS_A = \frac{SS_A}{k - 1}

Step 6: Within-Groups Mean Square MSSW=SSWNβˆ’kMSS_W = \frac{SS_W}{N - k}

Step 7: F-Ratio F=MSSAMSSWF = \frac{MSS_A}{MSS_W}

Step 8: ANOVA Summary Table

SourcedfSSMSSF
Between Groupskβˆ’1k-1SSASS_AMSSAMSS_AFF
Within Groups (Error)Nβˆ’kN-kSSWSS_WMSSWMSS_Wβ€”
TotalNβˆ’1N-1SSTSS_Tβ€”β€”

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 (X1X_1)Commerce (X2X_2)Science (X3X_3)
1151212
2141415
3111014
4121310
5101110
Ξ£626061
M12.4012.0012.20

k=3k = 3, n=5n = 5, N=15N = 15
H0H_0: ΞΌArts=ΞΌCommerce=ΞΌScience\mu_{Arts} = \mu_{Commerce} = \mu_{Science}

Step 1: Cx=(62+60+61)215=183215=3348915=2232.60Cx = \frac{(62+60+61)^2}{15} = \frac{183^2}{15} = \frac{33489}{15} = 2232.60

Step 2: βˆ‘X2=(225+196+121+144+100)+(144+196+100+169+121)+(144+225+196+100+100)\sum X^2 = (225+196+121+144+100) + (144+196+100+169+121) + (144+225+196+100+100)
=786+730+765=2281= 786 + 730 + 765 = 2281
SST=2281βˆ’2232.60=48.40SS_T = 2281 - 2232.60 = 48.40

Step 3: SSA=6225+6025+6125βˆ’2232.60SS_A = \frac{62^2}{5} + \frac{60^2}{5} + \frac{61^2}{5} - 2232.60
=3844+3600+37215βˆ’2232.60=2233.00βˆ’2232.60=0.40= \frac{3844+3600+3721}{5} - 2232.60 = 2233.00 - 2232.60 = 0.40

Step 4: SSW=48.40βˆ’0.40=48.00SS_W = 48.40 - 0.40 = 48.00

Step 5: MSSA=0.403βˆ’1=0.402=0.20MSS_A = \frac{0.40}{3-1} = \frac{0.40}{2} = 0.20

Step 6: MSSW=48.0015βˆ’3=48.0012=4.00MSS_W = \frac{48.00}{15-3} = \frac{48.00}{12} = 4.00

Step 7: F=0.204.00=0.05F = \frac{0.20}{4.00} = 0.05

Summary Table:

SourcedfSSMSSF
Between Groups20.400.200.05
Within Groups1248.004.00β€”
Total1448.40β€”β€”

Decision: FcriticalF_{critical} 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 PDrug QDrug RDrug S
14927
251067
31964
40652
52627
Ξ£12402127
M2.408.004.205.40

k=4k = 4, n=5n = 5, N=20N = 20
H0H_0: ΞΌP=ΞΌQ=ΞΌR=ΞΌS\mu_P = \mu_Q = \mu_R = \mu_S

Cx =(12+40+21+27)220=100220=1000020=500= \frac{(12+40+21+27)^2}{20} = \frac{100^2}{20} = \frac{10000}{20} = 500

SSTSS_T =(46+334+105+167)βˆ’500=652βˆ’500=152= (46+334+105+167) - 500 = 652 - 500 = 152

SSASS_A =122+402+212+2725βˆ’500=144+1600+441+7295βˆ’500=29145βˆ’500=582.80βˆ’500=82.80= \frac{12^2+40^2+21^2+27^2}{5} - 500 = \frac{144+1600+441+729}{5} - 500 = \frac{2914}{5} - 500 = 582.80 - 500 = 82.80

SSWSS_W =152βˆ’82.80=69.20= 152 - 82.80 = 69.20

MSSAMSS_A =82.804βˆ’1=82.803=27.60= \frac{82.80}{4-1} = \frac{82.80}{3} = 27.60

MSSWMSS_W =69.2020βˆ’4=69.2016=4.325= \frac{69.20}{20-4} = \frac{69.20}{16} = 4.325

FF =27.604.325=6.38= \frac{27.60}{4.325} = 6.38

SourcedfSSMSSF
Between Groups382.8027.606.38
Within Groups1669.204.325β€”
Total19152.00β€”β€”

Decision: F.01F_{.01} 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:

t=M1βˆ’M2SEDMt = \frac{M_1 - M_2}{SE_{DM}}

SEDM=MSSWβ‹…1n1+1n2=4.325β‹…25=2.079Γ—0.632=1.31SE_{DM} = \sqrt{MSS_W} \cdot \sqrt{\frac{1}{n_1} + \frac{1}{n_2}} = \sqrt{4.325} \cdot \sqrt{\frac{2}{5}} = 2.079 \times 0.632 = 1.31

ComparisonDifferencet-valuedfSignificant?
P vs Q5.604.2816βœ… .01 level
P vs R1.801.3716❌ n.s.
P vs S3.002.2916βœ… .05 level
Q vs R3.802.9016βœ… .05 level
Q vs S2.601.9816❌ n.s.
R vs S1.200.9216❌ 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?

AssumptionViolation EffectRemedy
NormalityF-test becomes inaccurate with small NUse Welch ANOVA or non-parametric Kruskal-Wallis
HomogeneityF inflated or deflatedWelch's correction; Brown-Forsythe ANOVA
IndependenceSeverely biased resultsRedesign 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.

Wikipedia: Homoscedasticity


F-Test and t-Test: The Mathematical Relationship​

The F-test and t-test are not independent tests β€” they are mathematically linked:

F=t2andt=FF = t^2 \quad \text{and} \quad t = \sqrt{F}

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?

FeatureMultiple t-TestsOne-Way ANOVA
Number of tests(k2)\binom{k}{2}1
Type I error controlPoor (inflated)Excellent (familywise)
Within-group varianceIgnoredExplicitly modeled
EfficiencyLowHigh
Post-hoc flexibilityN/AMany options (Tukey, ScheffΓ©, Bonferroni)

The relationship F=t2F = t^2 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) = kβˆ’1k - 1 = between-groups df = "greater mean squares"
  • dfβ‚‚ (rows) = Nβˆ’kN - k = 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

Exam Shortcut

df₁ = (number of groups – 1)
dfβ‚‚ = (total N – number of groups)
df_total = N – 1 = df₁ + dfβ‚‚


Merits and 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 (k2)\binom{k}{2} 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

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 TestError ControlBest When
LSD (t-tests)None (liberal)All pairs planned a priori
BonferroniAdjusts Ξ± by m = number of comparisonsFew planned comparisons
Tukey's HSDFamilywise .05All pairwise comparisons
ScheffΓ©Most conservativeComplex contrasts
Games-HowellUnequal variancesHeteroscedastic data

Wikipedia: Post-hoc analysis


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: F=t2F = t^2


External Resources​

πŸ“– Essential Reading​

πŸŽ“ Video Lectures​

πŸ“š 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​


Self-Assessment Questions​

🟒 Knowledge (Recall)​

  1. Define variance and state how it differs from standard deviation. Why is variance (not SD) the preferred measure in ANOVA?

  2. State all four assumptions underlying one-way ANOVA. What test can be used to verify the homogeneity of variance assumption?

  3. 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)​

  1. 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.

  2. 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?

  3. 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)​

  1. 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 AMethod BMethod CMethod D
12, 10, 14, 13, 11, 128, 7, 9, 8, 6, 1015, 14, 16, 15, 13, 1410, 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​

ConceptKey Point
ANOVA vs t-testANOVA tests 3+ groups simultaneously; avoids alpha inflation
F-ratioMSSA/MSSWMSS_A / MSS_W β€” between Γ· within variance
SS partitionSST=SSA+SSWSS_T = SS_A + SS_W (always)
df partitiondfT=dfA+dfWdf_T = df_A + df_W = (kβˆ’1)+(Nβˆ’k)(k-1) + (N-k)
Significant FReject Hβ‚€ β†’ proceed to post-hoc comparisons
Non-significant FRetain Hβ‚€ β†’ stop; no pair differences are significant
F and t relationshipF=t2F = t^2; for two groups, results are identical
AssumptionsNormality, homogeneity of variance, independence, random sampling
Invented bySir Ronald Fisher (1923) β€” originally for agricultural experiments

Source PDFs: