Quick definition: Analysis of variance (ANOVA) tests whether group means are compatible with one common population mean by comparing variation between groups with variation within groups. A significant omnibus ANOVA says that at least one mean differs; it does not identify every differing pair.
What is ANOVA?
ANOVA is a family of linear-model methods for comparing means across groups. Its classic one-way form asks whether a continuous outcome has the same expected mean in k independent groups. Although it is commonly introduced for three or more groups, it also works for two groups and gives the same conclusion as the corresponding equal-variance two-sample t-test.
The null hypothesis is μ1 = μ2 = … = μk. The alternative is only that at least one group mean differs. ANOVA therefore avoids beginning with every possible pairwise comparison, which would inflate the chance of a false positive. It supplies an omnibus test before appropriately targeted follow-up analysis.
ANOVA mechanics and the F-statistic
ANOVA partitions total outcome variation into variation explained by group membership and residual variation within groups. Let ȳj be group j’s mean, ȳ the grand mean, and nj its size. The between-group sum of squares is SSB = Σ nj(ȳj − ȳ)². The within-group sum of squares is SSW = ΣΣ(yij − ȳj)².
Divide SSB by k − 1 to obtain the between-group mean square, MSB. Divide SSW by N − k to obtain MSW. The test statistic is F = MSB / MSW. If all group means are equal, both quantities estimate the same residual variation and F tends to be near one. Large F values indicate that group means are farther apart than ordinary within-group noise would predict.
The p-value is calculated from an F distribution with k − 1 and N − k degrees of freedom. At a predeclared alpha, reject the common-mean null when that p-value is at or below alpha. Report an effect size too: eta-squared, η² = SSB / SST, is the share of observed variance attributed to groups in the sample; omega-squared is a less biased population-oriented alternative.
Assumptions and boundaries
Classic one-way ANOVA assumes independent observations, approximately normal residuals within groups, and comparable residual variances. Independence is usually the most important design requirement. If a user contributes multiple rows, users are nested in stores, or the same participants receive several conditions, ordinary one-way ANOVA understates uncertainty. Use repeated-measures, mixed-effects, cluster-robust, or cluster-level methods instead.
ANOVA is often reasonably robust to mild non-normality with balanced, sufficiently large groups. It is less robust with small, unequal groups combined with strong skew or unequal variances. Residual plots, group sample sizes, and spread should be reviewed—not merely a normality-test p-value. Welch’s ANOVA is a useful alternative when variances differ; it tests mean differences without the equal-variance assumption.
The outcome also needs a meaningful mean. Binary conversion outcomes are usually clearer in a binomial or logistic model, and counts often need count models. A transformation may help with a positive long-tailed outcome, but it changes the estimand and interpretation. Do not use ANOVA as a generic remedy for invalid tracking, nonrandom assignment, or an ill-defined metric.
Important: A significant omnibus F test does not mean every variant beats control, nor does it establish causality without valid randomization and data quality. Pairwise claims require planned contrasts or multiplicity-adjusted comparisons.
Common ANOVA designs
One-way ANOVA has one categorical factor, such as landing-page layout. Two-way ANOVA adds a second factor, such as layout and device category, and can test main effects plus an interaction: whether the layout effect changes by device. Factorial ANOVA extends this idea to several assigned factors.
Repeated-measures ANOVA analyzes several measurements from the same unit and requires a covariance assumption called sphericity in its simplest form. Mixed models are frequently more flexible for product data because they can handle repeated observations, missingness under defined assumptions, and unequal timing. ANCOVA adds a continuous covariate; in experiments, a pre-treatment covariate can reduce variance, similar in purpose to CUPED.
ANOVA in A/B and multivariate testing
ANOVA fits experiments that randomize users among three or more experiences and use a continuous primary outcome, such as mean revenue per eligible user, task-completion time, or average items viewed. For a four-variant product test, it gives one global test of whether any experience changes the mean rather than six uncorrected pairwise tests.
The analysis unit must match randomization. If assignment occurs at user level, first aggregate relevant events to a user-level outcome. Include zeros when the estimand is revenue per eligible user, rather than conditioning on users who bought. Establish exposure logging, exclusions, and treatment assignment before examining results. Sample ratio mismatch can invalidate the simple randomized interpretation before an F statistic is ever calculated.
If the omnibus test is significant, use the comparison scheme that was specified in the plan. Dunnett’s procedure is efficient when every treatment is compared only with a common control. Tukey’s honestly significant difference procedure supports all pairwise comparisons. Holm adjustment is flexible for a selected family of contrasts. These methods address the issue discussed in multiple comparisons for A/B tests.
ANOVA does not eliminate other multiplicity decisions. A team that tests many outcomes, segments, interim looks, or release cohorts needs an overall analysis plan. Keep one primary metric and designate secondary, diagnostic, and exploratory analyses; primary and guardrail metrics provides the governance rationale.
Worked example: four checkout layouts
A retailer randomizes 8,000 eligible visitors equally among control and three checkout layouts. The outcome is net revenue per randomized visitor over seven days. The group means are $5.00, $5.18, $5.45, and $5.12. One-way ANOVA produces F(3, 7996) = 4.32 and p = 0.0048 at a predeclared α = 0.05.
The team can reject the equal-means null: the data are inconsistent with all four layouts having the same expected revenue. It cannot claim that each treatment differs from control. Its preplanned Dunnett comparisons show that the $5.45 layout is above control after adjustment, while the $5.18 and $5.12 layouts are not distinguishable from control. The team reports adjusted intervals, absolute dollar lift, revenue distribution checks, conversion, refunds, and latency guardrails.
Suppose the global p-value had been 0.20. The appropriate statement would be that the study did not find sufficient evidence of any mean difference under the planned test. It would not prove the layouts identical; confidence intervals and planned minimum detectable effects show whether commercially relevant differences remain plausible.
Interpreting ANOVA results
Report the design, outcome, unit, F statistic and degrees of freedom, p-value, effect size, and follow-up procedure. For example: “A one-way ANOVA of user-level net revenue found an overall layout effect, F(3,7996) = 4.32, p = .0048, η² = .0016; preplanned Dunnett-adjusted comparisons identified layout C versus control.” The small eta-squared in this example can still be financially relevant at scale, but it should be evaluated in business units.
Inspect estimates and intervals rather than treating the F result as a winner selector. A significant F can arise from a tiny, precisely estimated difference; a non-significant F can coexist with uncertainty too wide to rule out worthwhile lift. Confidence intervals for planned contrasts are usually the clearest product-facing result.
Common ANOVA mistakes
- Stopping at the omnibus result. It does not reveal which groups differ or how much.
- Running all pairwise t-tests unadjusted. This raises family-wise false-positive risk.
- Ignoring heteroscedasticity and dependence. Use Welch, robust, clustered, repeated-measures, or mixed methods when the design requires them.
- Analyzing a post-treatment subset. Conditioning on purchase can bias comparisons when variants affect purchasing.
- Equating significance with importance. Present effects in product units and compare them with a practical threshold.
Frequently asked questions about ANOVA
Can ANOVA compare only three or more groups?
No. It can compare two, but a t-test is usually more familiar; for two groups the standard equal-variance tests are mathematically equivalent.
What does a significant ANOVA prove?
Only that at least one group mean differs under the model. It does not tell which pair differs or prove the change caused the difference absent a valid experiment.
When should I use Welch’s ANOVA?
Use it when group variances are meaningfully unequal, particularly with unequal group sizes. It is not a solution for correlated observations.
Is ANOVA appropriate for conversion rate?
A proportion test, chi-square test, or logistic regression normally communicates binary conversion outcomes more naturally. ANOVA may approximate a binary analysis at large samples, but it is rarely the first choice.
Do I need post-hoc testing after ANOVA?
Only if the decision needs specific group comparisons. Prefer contrasts specified in advance; otherwise use a suitable multiplicity-adjusted post-hoc method.
Summary
ANOVA compares between-group variation with within-group variation to test a common-mean hypothesis. It is valuable for multi-variant experiments with a meaningful continuous outcome, provided the analysis unit, variance behavior, dependence, and follow-up comparison family are planned correctly.
Sources
- NIST/SEMATECH e-Handbook: One-Way ANOVA
- Penn State STAT 502: Analysis of Variance
- NIST/SEMATECH e-Handbook: Multiple Comparisons