Welch’s ANOVA

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Statistical inference.

In statistical inference, Welch’s ANOVA is a test of the equality of several group means that weights each group mean by its estimated precision and does not assume a common population variance. It is a test of the equality of the means of two or more independent groups that does not assume the groups share a common population variance; it is also called Welch’s one-way test. It is the multi-group counterpart of Welch’s two-sample t procedure: where the classic one-way analysis of variance pools every group’s observations into a single error mean square, Welch’s procedure weights each group mean by the precision with which it is estimated, and then corrects both the statistic and its reference degrees of freedom for the uncertainty in the separate variance estimates. The procedure was published by Welch in 1951 as an alternative approach to the comparison of several mean values .[1]

Let the groups be indexed by j=1,…,kj = 1, \ldots, k. In group jj there are nj≥2n_j \ge 2 independent observations with population mean μj\mu_j and population variance σj2\sigma_j^2, sample mean Yˉj\bar Y_j and sample variance sj2s_j^2, computed with divisor nj−1n_j - 1. Write N=∑j=1knjN = \sum_{j=1}^{k} n_j for the total sample size. The null hypothesis is

H0:μ1=μ2=⋯=μk,H_0: \mu_1 = \mu_2 = \cdots = \mu_k,

against the alternative that at least two of the μj\mu_j differ. No condition σ12=⋯=σk2\sigma_1^2 = \cdots = \sigma_k^2 is imposed. The test is an omnibus test: rejection establishes that the means are not all equal, and nothing more specific. Which pairs differ is a separate question, answered by a follow-up procedure such as Games–Howell, described below. Like its two-sample counterpart, the test is approximate: its statistic does not have an exact FF distribution in finite samples, and the sense in which the FF reference is an approximation is stated precisely in the section on the statistic.

Welch’s ANOVA

Welch’s ANOVA
Fact Value
Topic Statistical inference
Listed on Statistical inference

The assumption that the classic test spends, and what its failure costs

The classic one-way analysis of variance writes each observation as a group mean plus an error, estimates one common error variance from the pooled within-group sum of squares, and refers the ratio of the between-group mean square to that pooled estimate to an FF distribution on (k−1,N−k)(k - 1, N - k) degrees of freedom .[2] The pooling is not a computational convenience. It is the step that makes the reference distribution exact under normal sampling: if every σj2\sigma_j^2 equals a common σ2\sigma^2, the pooled mean square estimates that σ2\sigma^2 whichever group it is computed from, and the numerator and denominator of the FF ratio are independent scaled chi-squared variables. If the σj2\sigma_j^2 differ, the pooled mean square estimates a sample-size-weighted average of unequal quantities, and neither the size nor the power of the classic test is the value its FF table reports.

The damage depends on how the unequal variances are paired with the unequal sample sizes, and this interaction, not heterogeneity alone, is the central practical fact. Two quantities must be kept separate. The size of a test is its rejection probability when H0H_0 is true, and size alone is what the nominal level purports to fix; the power is its rejection probability when the means differ, about which the nominal level says nothing. Heterogeneity distorts the size in a direction set by the pairing. When the larger groups have the larger variances, the pooled denominator is inflated by precisely the groups that dominate the numerator’s weighting, and the classic test becomes conservative: its size falls below the nominal level. When the smaller groups have the larger variances, the pooled denominator understates the variability of the comparisons that carry the between-group sum of squares, and the classic test becomes liberal: its size exceeds the nominal level, so a nominally 5%5\% test may have a materially larger actual type I error rate. These are the two polar pairings, and they state tendencies, not a universal law: with three or more groups the pairing of sizes with variances can be mixed, and the actual size then depends on the whole configuration of sizes and variances rather than on either extreme. Power moves as well when the calibration fails, but it is not measured against the nominal level and can only be assessed at a stated alternative. The worked example below sits in the first, conservative configuration — variances 2.52.5, 8/38/3 and 192/7192/7 paired with sizes 55, 44 and 88 — and simulation at the nominal 5%5\% level separates the two quantities for it: from normal populations with those variances, the classic test rejects in only about 3%3\% of samples when the three means are equal, which is its distorted size, and in about 83%83\% of samples when the means are 1010, 1515 and 1818, which is its power at that alternative. With equal sample sizes the two effects largely cancel and the classic test is comparatively robust to heterogeneity; with unequal njn_j they do not. Tomarken and Serlin’s comparison of analysis-of-variance alternatives under variance heterogeneity documents this pattern across noncentrality structures ,[3] and the quantitative review by Lix, Keselman and Keselman reaches the same conclusion across the published simulation record: the classic FF test’s error rates are trustworthy under heterogeneity chiefly when group sizes are equal or nearly so .[4] The two-sample literature makes the identical point for k=2k = 2: pooling is the step that fails first, and it fails in a direction determined by the pairing of sample size with variance .[5]

A preliminary test of equal variances does not repair this. Testing H0:σ12=⋯=σk2H_0: \sigma_1^2 = \cdots = \sigma_k^2 first, for example with Levene’s test, and choosing the classic or the Welch procedure according to the outcome, makes the final procedure a two-stage procedure whose error rates are those of neither stage: the preliminary test has low power exactly in the small samples where the choice matters, and conditioning the main test on its outcome distorts the main test’s calibration. The defensible practice is to select the procedure from the design and the plausibility of a common variance before examining the test outcomes, or to use the Welch procedure by default when a common variance is not part of the scientific model.

Precision weights and a weighted grand mean

For group jj, the variance of the sample mean Yˉj\bar Y_j is σj2/nj\sigma_j^2 / n_j, estimated by sj2/njs_j^2 / n_j. Welch’s weight for group jj is the reciprocal of that estimated variance,

wj=njsj2,W=∑j=1kwj,w_j = \frac{n_j}{s_j^2}, \qquad W = \sum_{j=1}^{k} w_j,

where WW is the total weight .[1] A group receives a large weight when its mean is estimated precisely, either because njn_j is large or because sj2s_j^2 is small. These are the weights that a weighted least-squares estimate of a common mean would use if the σj2\sigma_j^2 were known, with the population variances replaced by their sample estimates; that substitution is the source of every approximation that follows.

The weighted grand mean is

Yˉw=∑j=1kwjYˉjW.\bar Y_w = \frac{\sum_{j=1}^{k} w_j \bar Y_j}{W}.

It is not the ordinary grand mean Yˉ=∑jnjYˉj/N\bar Y = \sum_j n_j \bar Y_j / N, and the difference matters. The ordinary grand mean weights groups by sample size alone, so a large but imprecise group moves it substantially; the weighted grand mean weights by precision, so the centre against which the group means are compared is the best available estimate of the common mean under H0H_0, given the separate variances. The weighted between-group sum of squares is

Q=∑j=1kwj(Yˉj−Yˉw)2.Q = \sum_{j=1}^{k} w_j (\bar Y_j - \bar Y_w)^2.

If the variances were known and H0H_0 were true, QQ, with population weights in place of the wjw_j, would have a chi-squared distribution on k−1k - 1 degrees of freedom. With estimated weights it does not, and the statistic below is the correction of QQ that Welch constructed for that reason .[1]

The Welch statistic, its correction term and its degrees of freedom

Define the correction quantity

A=∑j=1k(1−wj/W)2nj−1.A = \sum_{j=1}^{k} \frac{(1 - w_j / W)^2}{n_j - 1}.

At fixed group size, each summand decreases as group jj’s share of the total weight grows: for nj=5n_j = 5 it is (1−0.1)2/4=0.2025(1 - 0.1)^2 / 4 = 0.2025 at a weight share of 0.10.1, but only (1−0.9)2/4=0.0025(1 - 0.9)^2 / 4 = 0.0025 at a share of 0.90.9. A small group carrying a low weight can therefore contribute substantially to AA — close to 1/(nj−1)1/(n_j - 1) when its share is negligible — while a group that dominates the total weight contributes almost nothing through its own summand; a summand is small when the share is large or the group is based on many observations. Welch’s statistic is

FW=Q/(k−1)1+2(k−2)k2−1A,F_W = \frac{Q / (k - 1)}{1 + \dfrac{2(k - 2)}{k^2 - 1} A},

referred to an FF distribution on numerator degrees of freedom

ν1=k−1\nu_1 = k - 1

and denominator degrees of freedom

ν2=k2−13A\nu_2 = \frac{k^2 - 1}{3A}

.[1] Three features of this construction require exact statement.

What is exact and what is approximate. The definitions of wjw_j, Yˉw\bar Y_w, QQ and AA are exact arithmetic functions of the sample summaries. Nothing distributional is exact thereafter. The reference statement FW≈Fν1,ν2F_W \approx F_{\nu_1, \nu_2} under H0H_0 is an approximation obtained by matching moments of the distribution of QQ, in the manner of the Welch–Satterthwaite approximation for a linear combination of variance estimates .[6] The denominator degrees of freedom ν2\nu_2 are estimated from the same data as the statistic, are generally not an integer, and are not a count of observations. The correction factor in the denominator of FWF_W is part of the same moment-matching: it inflates the statistic’s denominator so that the first two moments of the corrected statistic agree more closely with those of the reference FF. A pp-value from this procedure is therefore an approximate pp-value even when every group is exactly normally distributed. It is not an exact test at any sample size, and reporting it as though it were exact misstates what was computed.

The case k=2k = 2. When k=2k = 2, the factor 2(k−2)2(k - 2) is zero, so the correction factor is 11, and FWF_W reduces to QQ. In that case QQ is exactly the square of Welch’s two-sample tt statistic, and ν2=1/A\nu_2 = 1 / A is exactly the Welch–Satterthwaite degrees of freedom of that tt statistic. Welch’s ANOVA is therefore a genuine generalisation of the two-sample procedure, not merely an analogue of it: the 1947 two-sample approximation [7] is the k=2k = 2 special case of the 1951 construction. The two-sample interval built on that tt statistic is treated in the article on the Welch interval. Standard software exposes the same relationship: in R, oneway.test with var.equal = FALSE applies Welch’s 1951 approximate method, described there as generalising the two-sample Welch test to arbitrarily many samples .[8]

Behaviour when the variances are equal. If the sj2s_j^2 are all similar, the weights are approximately proportional to the njn_j, and Yˉw\bar Y_w is close to the ordinary grand mean. Similarity of the variances does not by itself make AA small: with equal weights and a common group size nn, A=(k−1)2/(k(n−1))A = (k - 1)^2 / (k (n - 1)), so three groups of size two with exactly equal sample variances still give A=4/3A = 4/3 and ν2=2\nu_2 = 2. It is large group sizes, for fixed kk, that make AA small, the correction factor close to 11 and ν2\nu_2 large; in that regime the Welch statistic gives a result close to the classic FF on the same data, though not identical to it, because the reference degrees of freedom still differ. The cost of using Welch’s procedure when the classic assumptions happen to hold is a small loss of power; the cost of using the classic procedure when they fail can be a type I error rate far from the nominal level. That asymmetry is the argument for Welch’s procedure as a default in the two-sample case ,[5] and it carries over to kk groups.

A distinct alternative — the Brown–Forsythe statistic

Welch’s statistic is not the only heteroscedastic alternative to the classic FF, and it should not be conflated with the statistic proposed by Brown and Forsythe in the same problem. Brown and Forsythe examined the small-sample behaviour of several statistics for testing the equality of means and proposed a statistic, conventionally denoted F∗F^*, that retains the classic unweighted between-group sum of squares in the numerator and instead replaces the pooled denominator by a weighted combination of the separate group variances, with Satterthwaite-type degrees of freedom .[9] The architectural difference is genuine: Welch reweights the numerator around a precision-weighted centre and corrects the result, whereas Brown and Forsythe leave the classic numerator intact and repair only the denominator. The two statistics can therefore disagree on the same data, and a report must name which was computed.

A further naming hazard is specific to this pair of authors. Brown and Forsythe also published, in 1974, robust tests for the equality of variances, in which the median-centred form of Levene’s test originates .[10] That Brown–Forsythe test answers a question about spread, is treated in the article on Levene’s test, and is not an alternative test of equal means. Citing “Brown–Forsythe (1974)” without the journal or the subject leaves the reference ambiguous between two different papers solving two different problems.

Statistical use

Follow-up comparisons — the Games–Howell procedure

Rejection of H0H_0 leaves open which pairs of means differ. Applying ordinary pairwise tt tests, or Tukey’s procedure, after a Welch omnibus test reintroduces the assumption the omnibus test was chosen to avoid, because both pool the variances. The Games–Howell procedure, studied by Games and Howell in 1976 for pairwise comparisons with unequal sample sizes and unequal variances ,[11] pools nothing. For groups ii and jj, write vi=si2/niv_i = s_i^2 / n_i and vj=sj2/njv_j = s_j^2 / n_j for the estimated variances of the two sample means. The pair’s standard error is vi+vj\sqrt{v_i + v_j}, its degrees of freedom are the pair-specific Welch–Satterthwaite value

νij=(vi+vj)2vi2/(ni−1)+vj2/(nj−1),\nu_{ij} = \frac{(v_i + v_j)^2}{v_i^2 / (n_i - 1) + v_j^2 / (n_j - 1)},

and its statistic is referred not to a tt distribution but to the studentised range distribution for kk groups on νij\nu_{ij} degrees of freedom, which is what charges the procedure for examining all pairs rather than one pre-specified pair .[11] Each pair therefore has its own degrees of freedom. In the worked example above, the three pair-specific values are ν12≈6.4615\nu_{12} \approx 6.4615, ν13≈8.8608\nu_{13} \approx 8.8608 and ν23≈9.1773\nu_{23} \approx 9.1773, all well below the 1414 error degrees of freedom a pooled procedure would have used for every pair. The corresponding simultaneous confidence intervals have the form of a mean difference plus or minus a studentised-range critical value, for kk groups and that pair’s νij\nu_{ij}, multiplied by (vi+vj)/2\sqrt{(v_i + v_j)/2}. Because the calibration is itself approximate — a studentised range referred to estimated, pair-specific degrees of freedom — Games–Howell intervals and tests should be reported with their degrees of freedom, and their familywise error control should be described as approximate.

Two limits deserve emphasis. First, Games–Howell is a follow-up to a mean comparison: it inherits the normality sensitivity of the underlying mean estimates, and with very small groups its pair-specific degrees of freedom can be so low that no comparison has useful power. Second, performing Games–Howell comparisons only after a significant omnibus result, and performing them unconditionally, are different procedures with different error properties; which was done should be stated.

When to use it. Welch’s ANOVA is the appropriate omnibus test of equal means for kk independent groups when a common population variance is not assumed — because the design gives no reason to expect one, because the groups are known to differ in spread, or because group sizes are unequal and even moderate heterogeneity would then distort the classic test. Tomarken and Serlin’s simulations support the Welch statistic, among the alternatives they compared, as retaining its nominal error rates under heterogeneity combined with unequal group sizes ,[3] and the review by Lix, Keselman and Keselman recommends heteroscedastic procedures over the classic FF in the same circumstances .[4]

Reporting. A complete report states kk, the njn_j, the group means and standard deviations, FWF_W, both degrees of freedom including the non-integer ν2\nu_2, and the approximate pp-value, and names the procedure as Welch’s. Reporting only “F(2,8.91)=14.27F(2, 8.91) = 14.27, p=.002p = .002” without naming the procedure invites a reader to assume the classic test with an inexplicably fractional degrees of freedom. Software defaults differ and must be checked: in R, oneway.test defaults to var.equal = FALSE and hence to Welch’s procedure, while aov computes the classic test .[8]

Three groups, unequal sizes and unequal variances

Three independent groups are

  • Group 1: 8,9,10,11,128, 9, 10, 11, 12, so n1=5n_1 = 5;
  • Group 2: 13,15,17,1513, 15, 17, 15, so n2=4n_2 = 4;
  • Group 3: 10,14,18,22,26,14,18,2210, 14, 18, 22, 26, 14, 18, 22, so n3=8n_3 = 8.

The total sample size is N=17N = 17. The group means are Yˉ1=10\bar Y_1 = 10, Yˉ2=15\bar Y_2 = 15 and Yˉ3=18\bar Y_3 = 18. The within-group sums of squares are 1010, 88 and 192192, so the sample variances are

s12=104=2.5,s22=83≈2.6667,s32=1927≈27.4286.s_1^2 = \frac{10}{4} = 2.5, \qquad s_2^2 = \frac{8}{3} \approx 2.6667, \qquad s_3^2 = \frac{192}{7} \approx 27.4286.

Group 3 is both the largest group and by far the most variable: its variance is roughly eleven times that of group 1. This is the pairing — larger group, larger variance — under which the classic test is expected to be conservative.

The weights are

w1=52.5=2,w2=48/3=1.5,w3=8192/7≈0.2917,w_1 = \frac{5}{2.5} = 2, \qquad w_2 = \frac{4}{8/3} = 1.5, \qquad w_3 = \frac{8}{192/7} \approx 0.2917,

with total weight W≈3.7917W \approx 3.7917. Group 3, despite contributing 88 of the 1717 observations, receives only w3/w1=0.2917/2=7/48≈0.1458w_3 / w_1 = 0.2917 / 2 = 7/48 \approx 0.1458 of the weight of group 1 — slightly more than one seventh (1/7≈0.14291/7 \approx 0.1429), but still a small fraction of it — because its mean is estimated imprecisely. The weighted grand mean is

Yˉw=2(10)+1.5(15)+0.2917(18)3.7917≈12.5934,\bar Y_w = \frac{2(10) + 1.5(15) + 0.2917(18)}{3.7917} \approx 12.5934,

well below the ordinary grand mean Yˉ≈14.9412\bar Y \approx 14.9412, which group 3’s size pulls upward. The weighted between-group sum of squares is

Q=2(10−12.5934)2+1.5(15−12.5934)2+0.2917(18−12.5934)2≈30.6648.Q = 2(10 - 12.5934)^2 + 1.5(15 - 12.5934)^2 + 0.2917(18 - 12.5934)^2 \approx 30.6648.

The correction quantity is

A=(1−2/3.7917)24+(1−1.5/3.7917)23+(1−0.2917/3.7917)27≈0.2993,A = \frac{(1 - 2/3.7917)^2}{4} + \frac{(1 - 1.5/3.7917)^2}{3} + \frac{(1 - 0.2917/3.7917)^2}{7} \approx 0.2993,

so the correction factor is 1+2(3−2)32−1(0.2993)≈1.07481 + \frac{2(3 - 2)}{3^2 - 1}(0.2993) \approx 1.0748 and

FW=30.6648/21.0748≈14.2650,F_W = \frac{30.6648 / 2}{1.0748} \approx 14.2650,

on ν1=2\nu_1 = 2 and ν2=83(0.2993)≈8.9094\nu_2 = \dfrac{8}{3(0.2993)} \approx 8.9094 degrees of freedom. The upper-tail probability of an F2, 8.9094F_{2, \, 8.9094} distribution at 14.265014.2650 is p≈0.0017p \approx 0.0017. At the 5%5\% level, and at the 1%1\% level, H0H_0 is rejected: the three means are not all equal.

For contrast, the classic analysis of the same 1717 observations gives a between-group sum of squares of 196.9412196.9412 on 22 degrees of freedom, a within-group sum of squares of 210210 on 1414 degrees of freedom, mean squares 98.470698.4706 and 1515, and F≈6.5647F \approx 6.5647 on (2,14)(2, 14) degrees of freedom, with p≈0.0097p \approx 0.0097. The classic test also rejects at 5%5\%, but its pp-value is nearly six times the Welch pp-value, and the discrepancy is in the direction the pairing predicts: the large, highly variable third group inflates the pooled error mean square to 1515, although two of the three groups have variances near 2.52.5, and the pooled denominator thereby understates how precisely groups 1 and 2 locate their means. Neither pp-value should be read to more precision than the approximations support; the comparison, not the third decimal place, is the point.

Your turn. Three new groups are

  • Group A: 5,7,9,75, 7, 9, 7;
  • Group B: 9,10,11,12,139, 10, 11, 12, 13;
  • Group C: 12,16,20,24,16,2012, 16, 20, 24, 16, 20.

Compute the group means and sample variances, the weights, the weighted grand mean, QQ, AA, FWF_W, both degrees of freedom and the approximate pp-value. Do you reject H0H_0 at the 5%5\% level?

The sample sizes are nA=4n_A = 4, nB=5n_B = 5 and nC=6n_C = 6. The means are 77, 1111 and 1818, and the sample variances are 8/3≈2.66678/3 \approx 2.6667, 2.52.5 and 17.617.6. The weights are wA=1.5w_A = 1.5, wB=2w_B = 2 and wC≈0.3409w_C \approx 0.3409, with W≈3.8409W \approx 3.8409 and weighted grand mean Yˉw≈10.0592\bar Y_w \approx 10.0592. Then Q≈37.3047Q \approx 37.3047 and A≈0.3473A \approx 0.3473, the correction factor is approximately 1.08681.0868, and FW≈17.1622F_W \approx 17.1622 on ν1=2\nu_1 = 2 and ν2≈7.6779\nu_2 \approx 7.6779 degrees of freedom, giving p≈0.0015p \approx 0.0015. Reject H0H_0 at the 5%5\% level. Note that the classic FF on these data is approximately 17.713217.7132 on (2,12)(2, 12) degrees of freedom: here it is slightly larger than the Welch statistic, because the Welch correction factor and the reduced denominator degrees of freedom, not the weighting alone, determine the outcome. Welch’s procedure is not a device for obtaining a larger statistic.

Common misconceptions

“Welch’s ANOVA is the classic ANOVA with a different degrees-of-freedom adjustment.” It is not. The weights change the centre, the numerator and the statistic itself, before any degrees-of-freedom question arises. Two analyses that differ only in their reference degrees of freedom would report the same FF; the worked example reports 14.265014.2650 and 6.56476.5647 on the same data.

“A Levene test should be run first to decide between the classic and Welch tests.” Levene’s test examines the equal-variance hypothesis ,[12] but using its outcome as a switch creates a two-stage procedure calibrated as neither of its stages. Failure to reject equal variances, in particular, is not evidence that pooling is safe; it is frequently only evidence that the groups are small.

“Welch’s ANOVA assumes the variances are unequal.” It does not. It permits them to be unequal. If they are in fact equal, the procedure remains valid and loses little; the assumption it drops is an assumption, not a requirement in the opposite direction.

“The Brown–Forsythe test and Welch’s ANOVA are two names for one statistic.” They are not, as the section above shows: they differ in whether the numerator is reweighted, and “Brown–Forsythe” additionally names a test of variances that is a different procedure again .[9]

“A significant Welch result identifies the groups that differ.” It does not. It is an omnibus result over all kk means. Pairwise claims require a follow-up procedure with its own multiplicity calibration, such as Games–Howell.

Assumptions and limits

What it still assumes. Removing the equal-variance assumption removes one assumption, not all of them. The observations must be independent within and between groups. The FF approximation is derived under normal sampling in each group, and although the moment-matching gives the procedure some tolerance of non-normality, strongly skewed distributions with small njn_j degrade both the Welch and the classic calibrations; the weights themselves are ratios involving sj2s_j^2, a statistic whose own sampling variability is large under skewness and heavy tails. Each njn_j must be at least 22, and a group whose sample variance is zero — all observations identical — receives an infinite weight and breaks the construction; such a group is a data problem, not a limiting case of the test. Where normality itself is untenable and the question can be reframed in terms of distributions or ranks rather than means, a rank procedure such as the Kruskal–Wallis test answers a different null hypothesis, equality of the group distributions, and should be chosen for that reason, not as a drop-in replacement reporting on means. The distributional null is not a weaker form of the null of equal means: when the means exist, distributions that coincide have the same mean, so equality of distributions implies equality of means and constrains the populations more, not less. What it does not supply is a statement about means themselves.

What it does not supply. The test gives no estimate of any difference and no confidence interval for one; the weighted grand mean Yˉw\bar Y_w is a computational centre under H0H_0, not an estimate of a population quantity of independent interest, and it changes if the group variances change even when the group means do not. Effect sizes and pairwise intervals must come from the follow-up procedure. Nor does a non-significant result establish that the means are equal: with small denominator degrees of freedom — ν2≈8.91\nu_2 \approx 8.91 in the worked example, against the classic 1414 — the test may have little power against differences of practical size.

Connections

  • One-way analysis of variance: the classic test of the same null hypothesis, whose pooled error mean square and exact FF reference under a common variance are the point of departure for everything in this article.
  • Welch interval: the two-sample Welch procedure for a difference of means. Welch’s ANOVA with k=2k = 2 reproduces its tt statistic squared and its Welch–Satterthwaite degrees of freedom exactly.
  • Levene’s test: a test of the equal-variance hypothesis itself, formed by an analysis of variance on absolute deviations. It examines the assumption Welch’s ANOVA declines to make; it is not a preliminary switch for choosing between the two mean tests.
  • Kruskal–Wallis test: a rank test for the one-way layout. It tests whether the groups’ distributions coincide, not whether their means are equal, and is the alternative when a statement about means is not defensible.
  • F distribution: the reference distribution for the Welch statistic, used here as a moment-matched approximation with an estimated, generally non-integer denominator degrees of freedom, rather than as the exact law it is for the classic statistic under its assumptions.
  • Two-sample t test: the pooled two-sample test, whose equal-variance assumption is the k=2k = 2 case of the assumption examined in this article.

Check yourself

  1. Using only groups 1 and 2 of the worked example — means 1010 and 1515, sample variances 2.52.5 and 8/38/3, sizes 55 and 44 — compute Welch’s two-sample tt statistic, and confirm that its square and its Welch–Satterthwaite degrees of freedom agree with what the k=2k = 2 case of the formulas in this article gives.

The estimated variance of the difference is 2.5/5+(8/3)/4=0.5+0.6667=1.16672.5/5 + (8/3)/4 = 0.5 + 0.6667 = 1.1667, so t=(10−15)/1.1667≈−4.6291t = (10 - 15)/\sqrt{1.1667} \approx -4.6291 and t2≈21.4286t^2 \approx 21.4286. For k=2k = 2 the correction factor is 11 because 2(k−2)=02(k - 2) = 0, and the weighted between-group sum of squares QQ equals 21.428621.4286, so FW=t2F_W = t^2. The degrees of freedom are ν2=1/A≈6.4615\nu_2 = 1/A \approx 6.4615, and the Welch–Satterthwaite formula (v1+v2)2/(v12/4+v22/3)(v_1 + v_2)^2 / (v_1^2/4 + v_2^2/3), with v1=0.5v_1 = 0.5 and v2=0.6667v_2 = 0.6667, also gives approximately 6.46156.4615. The two constructions coincide, as they must.

  1. A study has two configurations of three groups, each with the same three population variances. In configuration X the largest variance occurs in the largest group; in configuration Y the largest variance occurs in the smallest group. For which configuration is the classic FF test liberal, and why?

Configuration Y. The classic denominator is a pooled variance dominated by the large groups. In configuration Y those large groups have the small variances, so the pooled denominator understates the variability of the group means — in particular of the small, highly variable group, whose mean is in fact imprecisely estimated but is weighted in the between-group sum of squares by its sample size alone. The FF ratio is therefore systematically too large under the null hypothesis, and the test rejects more often than its nominal level. In configuration X the same mechanism runs in reverse and the test is conservative.

  1. Three groups have weights w1=1w_1 = 1, w2=2w_2 = 2, w3=3w_3 = 3 and sample sizes n1=n2=n3=6n_1 = n_2 = n_3 = 6. Compute AA, the correction factor, and ν2\nu_2.

The total weight is W=6W = 6. Then A=(5/6)2/5+(4/6)2/5+(3/6)2/5=0.1389+0.0889+0.0500≈0.2778A = (5/6)^2/5 + (4/6)^2/5 + (3/6)^2/5 = 0.1389 + 0.0889 + 0.0500 \approx 0.2778. The correction factor is 1+2(1)8(0.2778)≈1.06941 + \frac{2(1)}{8}(0.2778) \approx 1.0694, and ν2=8/(3×0.2778)=9.6\nu_2 = 8 / (3 \times 0.2778) = 9.6. Note that ν2=9.6\nu_2 = 9.6 is far below the classic denominator degrees of freedom N−k=15N - k = 15 for these sample sizes: estimating three separate variances, one of them from a group supplying half the total weight, costs substantial reference degrees of freedom.

History

The two-sample problem came first. Welch’s 1947 paper in Biometrika addressed the generalisation of Student’s problem when several different population variances are involved, giving the approximate degrees of freedom now attached to the two-sample Welch tt statistic ;[7] Satterthwaite had published the underlying moment-matching approximation for estimates of variance components in 1946 .[6] Welch’s 1951 paper, “On the comparison of several mean values: an alternative approach”, in the same journal, extended the construction from two means to kk means, producing the weighted statistic, correction term and denominator degrees of freedom used in this article .[1] The paper’s title is itself the statement of intent: the classic analysis of variance was not repaired but replaced, for this problem, by a statistic built from the separate variances from the outset.

The procedure was slow to become a default. Textbooks continued to present the classic test as the primary method and Welch’s statistic, if at all, as a remedy to be applied after heterogeneity had been demonstrated, which inverted the logic of the two-stage problem described above. The simulation literature of the 1970s and 1980s supplied the evidence that changed the recommendation: Brown and Forsythe’s 1974 small-sample study compared statistics for the equality of several means under heterogeneity ,[9] Games and Howell provided the matching pairwise procedure in 1976 ,[11] and Tomarken and Serlin’s 1986 comparison under specific noncentrality structures documented the classic test’s failure modes when unequal variances met unequal sample sizes .[3] Lix, Keselman and Keselman’s 1996 quantitative review consolidated that record and recommended heteroscedastic alternatives to the classic FF .[4] In current software the procedure is no longer an exotic option: R’s oneway.test applies it by default .[8]

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e a. (pp. 330–336) b. (pp. 330–336) c. (pp. 330–336) d. (pp. 330–336) e. (p. 330) Welch, B. L. (1951). On the Comparison of Several Mean Values: An Alternative Approach. Biometrika, 38(3-4), 330–336. https://doi.org/10.1093/biomet/38.3-4.330
  2. ^ (§7.4.3.1) Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.3.1: One-way ANOVA overview. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/prc/section4/prc431.htm
  3. ^ a b c a. (pp. 90–99) b. (pp. 90–99) c. (pp. 90–99) Tomarken, A. J. & Serlin, R. C. (1986). Comparison of ANOVA Alternatives Under Variance Heterogeneity and Specific Noncentrality Structures. Psychological Bulletin, 99(1), 90–99. https://doi.org/10.1037/0033-2909.99.1.90
  4. ^ a b c a. (pp. 579–619) b. (pp. 579–619) c. (pp. 579–619) Lix, L. M., Keselman, J. C. & Keselman, H. J. (1996). Consequences of Assumption Violations Revisited: A Quantitative Review of Alternatives to the One-Way Analysis of Variance F Test. Review of Educational Research, 66(4), 579–619. https://doi.org/10.3102/00346543066004579
  5. ^ a b a. (pp. 95–96) b. (pp. 95–96) Delacre, M., Lakens, D. & Leys, C. (2017). Why Psychologists Should by Default Use Welch’s t-test Instead of Student’s t-test. International Review of Social Psychology, 30(1), 92–101. https://doi.org/10.5334/irsp.82
  6. ^ a b a. (pp. 110–114) b. (pp. 110–114) Satterthwaite, F. E. (1946). An Approximate Distribution of Estimates of Variance Components. Biometrics Bulletin, 2(6), 110–114. https://doi.org/10.2307/3002019
  7. ^ a b a. (pp. 28–35) b. (pp. 28–35) Welch, B. L. (1947). The Generalization of ‘Student's’ Problem When Several Different Population Varlances Are Involved. Biometrika, 34(1-2), 28–35. https://doi.org/10.1093/biomet/34.1-2.28
  8. ^ a b c a. (Arguments, `var.equal`) b. (Arguments, `var.equal`) c. (Arguments, `var.equal`) R Core Team (2026). Test for Equal Means in a One-Way Layout (R documentation). R Foundation for Statistical Computing. https://stat.ethz.ch/R-manual/R-devel/library/stats/html/oneway.test.html
  9. ^ a b c a. (pp. 129–132) b. (pp. 129–132) c. (pp. 129–132) Brown, M. B. & Forsythe, A. B. (1974). The Small Sample Behavior of Some Statistics Which Test the Equality of Several Means. Technometrics, 16(1), 129–132. https://doi.org/10.1080/00401706.1974.10489158
  10. ^ (pp. 364–367) Brown, M. B. & Forsythe, A. B. (1974). Robust Tests for the Equality of Variances. Journal of the American Statistical Association, 69(346), 364–367. https://doi.org/10.1080/01621459.1974.10482955
  11. ^ a b c a. (pp. 113–125) b. (pp. 113–125) c. (pp. 113–125) Games, P. A. & Howell, J. F. (1976). Pairwise Multiple Comparison Procedures with Unequal N's and/or Variances: A Monte Carlo Study. Journal of Educational Statistics, 1(2), 113–125. https://doi.org/10.3102/10769986001002113
  12. ^ (§1.3.5.10) NIST/SEMATECH (2002). NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.10: Levene Test for Equality of Variances. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/eda/section3/eda35a.htm
Cite this page
Plain text
StatWiki (2026). "Welch's ANOVA." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/welch-s-anova.html
BibTeX
@misc{statwiki_welch_s_anova,
  author = {{StatWiki}},
  title = {{Welch's ANOVA}},
  year = {2026},
  url = {https://www.statwiki.io/articles/welch-s-anova.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}