One-way ANOVA
Compare independent groups with classical or Welch one-way ANOVA, including F inference, effect size and method assumptions.
Question, try, then observe
Three different-looking means: different populations?
Illustrative scores from three distinct student groups. Change center spacing and within-group spread; read observations, mean squares and the F right tail. Shapes distinguish the groups.
What did you just see?
Means five points apart tell a different story when students within a group vary by one point versus fifteen points. Read separation together with within-group dispersion.
Read the observations, not only the means
Circles, squares and triangles represent the three groups. Short solid lines show group means and a dashed line shows the grand mean. Separating centers raises between-group variation; spreading observations raises within-group variation. Counts affect precision and df as well.
F compares two mean squares
Between SS weights group-center distances from the grand mean by group counts. Within SS sums observation distances from their own group centers. Dividing by k−1 and N−k gives mean squares. Classical F is their ratio; its right-tail area is the model-based p-value.
Choose classical or Welch
Classical ANOVA assumes a common error variance, approximately normal within-group errors and independent observations. Welch weights groups using their estimated variances and adjusts F and df; it does not use the same SS decomposition. Unequal variances combined with unequal counts make method choice especially important.
Post-hoc comparisons and multiplicity
Repeating unadjusted pairwise t-tests inflates the chance of at least one false rejection across the family. Tukey HSD addresses all pairwise mean comparisons with common variance; Tukey–Kramer allows unequal counts. Games–Howell addresses unequal variances and counts. Choose a method for the planned question and assumptions, not the smallest p-value.
Significance, effect size and value
η² is Between SS divided by Total SS: the between-group share of sample variation. The p-value describes compatibility with H₀; η² describes a variance share. Practical value also needs differences in original units and a cost judgment. These measures answer different questions.
Another example
- Enter at least three named groups of observations; unequal counts are supported.
- Select classical or Welch according to the variance assumption, and set α.
- Read group summaries, F and p-value; classical ANOVA also supplies SS/MS and η². Consider adjusted follow-up comparisons afterward.
Show formal definition and formula
One-way ANOVA tests population mean equality across independent groups defined by one factor. It is named analysis of variance because a decomposition of variation supplies the test of means.
Classical sums of squares and F
Welch weights and correction
Welch df and classical effect size
- k, N, nⱼ
- Group count, total count and group j count.
- x̄ⱼ, x̄
- Group mean and count-weighted grand mean.
- SSB, SSW, MS
- Between/within sums of squares; MS=SS/df.
- wⱼ, W, x̄w, C
- Welch weights, total weight, weighted mean and correction.
- ν₁, ν₂, η²
- F numerator/denominator df; classical sample effect size.
- H₀
- All group population means are equal.
Common mistakes
A significant omnibus ANOVA supports at least one population mean difference, not differences in every pair. η² describes the sample's between-group share of variation, not causation. Welch F must not be placed in a classical SS/MS decomposition.
Frequently asked questions
Which groups differ after a significant ANOVA?
Use planned contrasts or properly adjusted post-hoc comparisons. This version provides omnibus inference and method guidance; it does not compute automatic Tukey or Games–Howell pairwise decisions.
Does Welch fix every assumption problem?
No. Welch addresses unequal variances in mean comparisons with unequal counts, but still needs independent, suitably distributed observations and can be sensitive to outliers.
Can I directly compare three return strategies?
Strategies measured over the same market months may share shocks and serial dependence. Check the data structure first. Independent one-way ANOVA does not model repeated measures or time series.
You can now explore…
- Separate between and within variation
- Distinguish significance, effect size and post hoc testing