ANOVA Between-vs-Within Variance & Multiple Testing Lab
Manipulate group separation and within-group jitter to decompose SST = SSB + SSW and see why multiple t-tests inflate α.
Test whether 3+ group means differ by comparing signal variance between groups against background noise variance within groups.
Multi-variant design optimization, agricultural yield trials, and material alloy strength comparisons.
Why does running many separate -tests inflate false alarms —and how does ANOVA test equality of group means in a single ratio?
Pythagorean orthogonality splits Total Sum of Squares cleanly into Between-Group signal and Within-Group noise: .
Dividing each sum by its degrees of freedom creates Mean Squares whose ratio stays near under equal means and spikes cleanly when at least one treatment differs.
Why shouldn't we just run ten separate t-tests to compare 5 drugs—and why is a test of means literally named 'Analysis of Variance'?
Drag group means apart (increasing MSB) and widen within-group noise (increasing MSW) to watch SST = SSB + SSW, F = MSB/MSW, and the family-wise false-positive meter.
ANOVA detects group differences across discrete treatments; Module S.6 models continuous predictors with Regression, Regularization, and Bayesian updating.
Wait—why is a test for means called Analysis of Variance (ANOVA)? Imagine 3 study groups taking the same exam. Even if every group learns identically, dots bounce up and down inside each group (that's background Within-Group Noise). If the study methods actually differ, the group centers pull far apart from the overall average (that's Between-Group Signal). Ronald Fisher realized you can compare all groups in one single shot by taking the ratio —dodging the false-alarm explosion you'd get from running lots of separate -tests!
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Every point's total distance from the grand mean splits cleanly: . Squaring and summing cancels the cross-term cleanly to zero!
Under , both and estimate the exact same , so . Meanwhile, tells you what fraction of total score variance the groups explain!
Suppose groups () give and :
And of total score variation comes from group choice!
A tiny ANOVA -value does NOT tell you which pair differs (A vs. B, or C vs. the rest)! Once rejects , run Tukey HSD or Bonferroni () post-hoc comparisons to pinpoint the culprit without false alarms.
Notice ? In Module S.6 (S.6.1), when group categories turn into a continuous predictor , turns straight into Ordinary Least Squares Regression & !
Squaring and summing eliminates every cross-product identically because residuals within each group sum to zero, decomposing total scatter cleanly into .
Because both mean squares estimate when all group means match (), the ratio hovers near under and spikes only when means diverge.
Running all pairwise -tests at inflates false alarms to ! Use the omnibus -test first, then Bonferroni or Tukey HSD for pairwise differences.
Manipulate group separation and within-group jitter to decompose SST = SSB + SSW and see why multiple t-tests inflate α.
Separate true group shifts from random scatter inside each group, then track how the -ratio reacts.
Notice that is strictly right-skewed and always ≥ 0 because it is a ratio of two squared variances. Under a true null hypothesis (try Signal = 0.0), , so hovers near 1.0.
Even when ALL groups are truly identical, testing every pair inflates your chance of at least one false alarm.