a. The F-Statistic
Math 115
| Topic | Comparison | Statistic | Example |
|---|---|---|---|
| 11 | One mean | \bar{x} | Cherry Blossom |
| 12 | Two independent means | \bar{x}_1 - \bar{x}_2 | Birth weights |
| 13 | Two paired means | \bar{x}_d | Textbook prices |
| 15 (today) | Three or more means | F | Vocabulary by class |
Topic 15 extends topic 12. Topic 12 compared two means with a single difference \bar{x}_1 - \bar{x}_2. With three or more means, one difference can’t summarize the picture — so we need a new statistic: F.
Do vocabulary test scores differ by self-identified social class? General Social Survey — random sample of 795 U.S. adults.
Hypotheses.
| Class | n | \bar{x}_i | s_i |
|---|---|---|---|
| Lower | 41 | 5.07 | 2.24 |
| Working | 407 | 5.75 | 1.87 |
| Middle | 331 | 6.76 | 1.89 |
| Upper | 16 | 6.19 | 2.34 |
Boxes show each class’s median and spread; ◆ = group mean (what ANOVA compares); dashed line = overall mean \approx 6.14. Middle sits highest, Lower lowest; Upper is noisy with only 16 people. Real differences in the means, or sampling noise?
The obvious idea: compare the classes two at a time with the t-tests we already know.
Comparing all four classes pairwise takes 6 separate t-tests — Lower–Working, Lower–Middle, and so on, every class against every other.
Each t-test carries its own 5% chance of a Type I error (a false positive) when its null is true.
That’s fine for one test. But we’re about to run six — what happens to the overall risk?
If all six nulls were true, the chance of at least one false rejection is:
1 - (0.95)^6 \approx 0.265
That’s about 26.5% — over five times the 5% we intended.
The overall error balloons. Running many separate tests trades a controlled per-test error for a much larger overall chance of a false alarm.
We need a single overall test that asks one yes/no question with one \alpha.
ANOVA (Analysis of Variance) tests whether any of k group means differ:
The idea: weigh the variability between the group means against the variability within the groups — developed next.
Yes/no, not which. ANOVA tells us whether at least one group differs — it doesn’t say which groups. Pinpointing the specific pair(s) is the job of topic 16 (multiple comparisons).
Two sources of variability in the data:
The logic of ANOVA. If H_0 is true, the group means should sit as close to the overall mean as random sampling within each group would predict — the between-group spread carries no signal beyond that sampling noise.
If between is much larger than within → evidence that real group differences are pulling the means apart.
Two made-up datasets, three groups each, differing only in within-group scatter. Judge from the raw data alone.
Back to the vocabulary data — each spread as a number (from software):
Between groups (means vs overall):
SSG = \sum n_i (\bar{x}_i - \bar{x})^2 \approx 237
Within groups (values vs group mean):
SSE = \sum \sum (x_{ij} - \bar{x}_i)^2 \approx 2870
A raw sum of squares isn’t a fair yardstick on its own — it grows as more data piles in, so SSE and SSG can’t be compared head-to-head. Next: turn each into an average (a mean square).
Divide each sum of squares by its own degrees of freedom to get an average — a mean square:
Between (MSG) — df_1 = k - 1 = 3
MSG = \frac{SSG}{df_1} = \frac{237}{3} = \; ?
Within (MSE) — df_2 = n - k = 791
MSE = \frac{SSE}{df_2} = \frac{2870}{791} = \; ?
Try it: compute both mean squares, then compare them. MSG = 79 and MSE \approx 3.6. Both estimate the same underlying noise — how much individual scores vary within a group. MSE measures it directly; under H_0, MSG estimates that same noise, so the two land close. Here MSG \gg MSE — the class means vary more than noise alone, a hint they really differ.
The test statistic is the ratio of the two mean squares:
F = \frac{MSG}{MSE}
Try it: compute F for vocabulary (MSG \approx 79, MSE \approx 3.6). F = \dfrac{79}{3.6} \approx 22 — between-group variability is about 22× the within-group variability. Far above 1: suggestive evidence against H_0.
SSG = \sum_i n_i (\bar{x}_i - \bar{x})^2 has one piece per class (overall mean \bar{x} \approx 6.14):
| Class | n_i | \bar{x}_i | (\bar{x}_i - \bar{x}) |
|---|---|---|---|
| Lower | 41 | 5.07 | -1.07 |
| Working | 407 | 5.75 | -0.4 |
| Middle | 331 | 6.76 | 0.62 |
| Upper | 16 | 6.19 | 0.04 |
Compute the contribution to SSG from the Lower class: n_{\text{Lower}} (\bar{x}_{\text{Lower}} - \bar{x})^2. 41 \times (-1.07)^2 \approx 41 \times 1.14 \approx 47 — about 20% of SSG = 237.
Lower has the biggest gap from the overall mean (-1.07). Which class contributes the most to SSG — and why? Middle dominates: 331 \times (0.62)^2 \approx 127 — about half of SSG. Its gap is smaller than Lower’s, but its weight n_i is far larger. SSG rewards groups that are both off-center and large.
Next time (15b): the F-distribution, conditions, the p-value, and the decision.
wordsum) by self-identified social class.