Analyze · Means

One-Way ANOVA

Compares the means of one continuous variable across three or more independent groups using one-way analysis of variance.

In the menus Analyze › Means › One-Way ANOVA

Also searched as anova analysis of variance one factor anova single factor anova anova single factor f test for means compare three groups compare several groups

When to use it

You're comparing means of one continuous variable across 3 or more groups.

When not to: Data are clearly non-normal at small sample sizes (Kruskal-Wallis, run automatically alongside, is the rank-based alternative), variances differ substantially across groups per the Brown-Forsythe check (set Which version to Welch's ANOVA and the follow-up to Games-Howell, which do not assume equal spreads, rather than reading the pooled F-test and pooled post-hoc tables), or the same subjects were measured repeatedly across conditions (use repeated-measures ANOVA, not this independent-groups version).

Step by step

  1. Open it from the menu

    Click Analyze in the menu bar; under Means choose One-Way ANOVA.

  2. Fill in the form

    Choose the columns: What you measured, The groups. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: How strict to be, Which version, Which pairs differ (follow-up). Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the One-Way ANOVA form
What you measured Numeric Var requiredOne numeric column. A number column. The test compares its average across the groups.
The groups Group Var requiredOne categorical column. A category column with three or more groups. For two groups, the Two-Sample t-Test is usual.
How strict to be AlphaThe cut-off for the p-value. Below it, the card reports evidence of a difference; a smaller cut-off is stricter. Not sure? Keep 0.05. It is the usual convention in most fields.
Which versionThe F-test assumes the groups have similar spreads; Welch's ANOVA does not, so it is the safer choice. Not sure? Choose Welch's ANOVA with Games-Howell. It works whether or not the spreads are equal. The F-test is the classic version for equal spreads.
Which pairs differ (follow-up) Post-hoc testAfter the overall test, compares every pair of groups. Tukey HSD goes with the F-test; Games-Howell with Welch's ANOVA. Use Tukey HSD with the F-test, and Games-Howell with Welch's ANOVA. Not sure? Choose Welch's ANOVA with Games-Howell.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Independence of observations

If it does not hold: Observations within and across groups must be independent; violating this invalidates the F-test regardless of what the normality and variance checks show.

How to check: Not checkable from the data alone: it is a property of how the data were collected.

Normality (of residuals, not of the raw data)

If it does not hold: Non-normal data within one or more groups distort the F-test's true Type I error rate, though the test is fairly robust to mild violations, especially when group sizes are similar.

How to check: Shapiro-Wilk (and Anderson-Darling where applicable) run separately on each group, reported directly on the card.

Homogeneity of variance (homoscedasticity)

If it does not hold: Unequal variance across groups, especially combined with unequal group sizes, distorts the F-test's true Type I error rate: it can become too liberal or too conservative depending on which group is larger and which is noisier.

How to check: The Brown-Forsythe statistic (median-centered Levene's test), reported directly on the card and explicitly named as Brown-Forsythe rather than plain Levene, since KernelStats' own Equal Variances Test reserves that name for its mean-centered option (its default is this same Brown-Forsythe check), and the two forms can print materially different numbers on the same data.

A worked example

Comparing average test scores across three teaching methods (n=25 per group).

Result: F(2, 72) = 9.84, p < .001, eta-squared = 0.21 (large); Tukey HSD shows method C significantly outperforms both A and B, with A and B not significantly different from each other.

Scores differ substantially across the teaching methods, not merely detectably (a causal reading, that the methods produced the difference, needs random assignment of students to methods), and the post-hoc comparisons pinpoint method C specifically as the standout; methods A and B cannot yet be distinguished from each other at this sample size.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Do average test scores differ across the three teaching methods?
  • Explain the one-way ANOVA in plain words.
  • What does eta-squared mean?

Last reviewed November 16, 2026.

Report an unclear step