STA 260.1 · Introduction to Probability and Statistics
Our notes
2 min readWhy not many t tests
Comparing four groups in pairs needs 6 t tests; at 5% each, the chance of at least one false alarm rises to about 26%. ANOVA tests all means at once.
The idea
H₀: μ₁ = μ₂ = … = μ_k. H₁: at least one mean differs.
Total variation splits into:
- between groups (SSB): how far group means are from the grand mean;
- within groups (SSW, also called error or residual): how far observations are from their own group mean.
SST = SSB + SSW.
The table
| Source | SS | df | MS | F |
|---|---|---|---|---|
| Between | SSB | k − 1 | SSB/(k − 1) | MSB/MSW |
| Within | SSW | N − k | SSW/(N − k) | |
| Total | SST | N − 1 |
If H₀ is true, F follows the F distribution with (k − 1, N − k) degrees of freedom; large F means the group means differ more than chance allows.
Worked example
Yields (tonnes per plot) under three fertiliser rates:
- A: 4, 5, 6 (mean 5)
- B: 6, 7, 8 (mean 7)
- C: 8, 9, 10 (mean 9)
Grand mean = 7.
SSB = 3[(5 − 7)² + (7 − 7)² + (9 − 7)²] = 3(4 + 0 + 4) = 24.
SSW = each group has squared deviations 1 + 0 + 1 = 2, so 6.
SST check: Σ(x − 7)² = 9 + 4 + 1 + 1 + 0 + 1 + 1 + 4 + 9 = 30 = 24 + 6 ✓.
MSB = 24/2 = 12; MSW = 6/6 = 1; F = 12.
F₀.₀₅(2, 6) = 5.14. 12 > 5.14: reject H₀; the rates give different mean yields.
(Checked by computer: F = 12.0.)
Assumptions
- Observations independent.
- Each group roughly normal.
- Equal variances in the groups (check the largest SD is not more than about twice the smallest).
After a significant F
F says "some means differ", not which. Follow with a multiple-comparison method (Tukey's HSD, LSD, Scheffé) to find the pairs.
Two-way ANOVA (a glance)
Two factors at once (fertiliser and variety), with an interaction term when the effect of one depends on the other. You will meet it in design of experiments.
Exams usually ask
- Complete an ANOVA table from data or from partly given sums of squares.
- State H₀, df, the critical F and the conclusion.
- List the assumptions.
Common mistake
Using N − 1 for the within-groups df. It is N − k: each group mean uses up one degree of freedom.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Introductory Statistics 2e, 13.1 One-Way ANOVA
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 13.1 One-Way ANOVA, CC BY-NC-SA 4.0 · licence
-
Introductory Statistics 2e, 13.2 The F Distribution and the F-Ratio
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 13.2 The F Distribution and the F-Ratio, CC BY-NC-SA 4.0 · licence
-
One-way analysis of variance
(opens en.wikipedia.org in a new tab)
Wikipedia, One-way analysis of variance, CC BY-SA 4.0 · licence
-
F-test
(opens en.wikipedia.org in a new tab)
Wikipedia, F-test, CC BY-SA 4.0 · licence
-
NOUN BIO 206: Biostatistics
NOUN course book (PDF, about 1.2 MB). Statistics for agriculture and biology: descriptive statistics, sampling, probability.
(opens nou.edu.ng in a new tab)
-
OpenStax, Introductory Statistics 2e (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introductory Statistics 2e (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
One-Way ANOVA [Analysis of Variance] simply explained
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
What is ANOVA (Analysis of Variance) in Statistics ? | Explained with Examples (ANOVA F - test)
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
ANOVA 1: Calculating SST (total sum of squares) | Probability and Statistics | Khan Academy
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Analysis of Variance (ANOVA) and F statistics .... MADE EASY!!!
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.