Why Balance and Sample Size Matter
One-way ANOVA compares the means of several groups by contrasting variation between the group means with variation within the groups. Its usual F test is derived under a model with independent, normally distributed errors having the same variance in every group. Real data can depart from those assumptions. The practical question is not simply whether a diagnostic plot looks perfectly ideal, but whether a departure is likely to make the test's conclusions unreliable.
Two features affect that sensitivity: balance, meaning that groups have equal or similar sample sizes, and the number of observations within each group. Adequate group sizes often make the F test less sensitive to moderate nonnormality. Balance can reduce the effect of unequal variances. Neither feature guarantees a valid test: severe skew, influential outliers, dependence, or a strong combination of imbalance and unequal variances can still be consequential.
The Model and the Role of Group Sizes
Write an observation in group \(i\) as \(Y_{ij}=\mu_i+\varepsilon_{ij}\), where \(\mu_i\) is that group's population mean and \(\varepsilon_{ij}\) is its error. The usual one-way ANOVA model assumes independent errors with mean zero, a common variance \(\sigma^2\), and a normal distribution. Under the null hypothesis \(H_0:\mu_1=\cdots=\mu_k\), these assumptions give the usual F reference distribution. Independence is primarily justified by how the observations were collected; balance cannot repair dependence.
The standard ANOVA statistic is \(F=MS_{\text{between}}/MS_{\text{within}}\). The numerator measures variation among the observed group means, and the denominator estimates variation within groups. When variances differ, the group means have different sampling variances: approximately \(\sigma_i^2/n_i\) if group \(i\)'s population variance is \(\sigma_i^2\). Thus both the variance and the sample size of each group affect how much its mean fluctuates. The way those features line up matters.
A useful justification comes from comparing the expected mean squares under equal population means but possibly unequal variances. Assume independent observations with common mean \(\mu\) under \(H_0\), while group \(i\) has variance \(\sigma_i^2\). The grand mean is \(\bar{Y}_{..}=\sum_i n_i\bar{Y}_{i.}/N\), and the between-groups mean square is \(MS_{\text{between}}=\sum_i n_i(\bar{Y}_{i.}-\bar{Y}_{..})^2/(k-1)\). Independence gives the following expectation:
The pooled within-groups mean square averages the group variances with weights determined by their residual degrees of freedom:
If every group has size \(n\), then \(N=kn\). Substitution shows that both expectations equal the simple average of the group variances:
This matching helps explain why balance often reduces sensitivity to unequal variances: the two parts of the F ratio are, on average, on a compatible scale under the null. It is a justification for a robustness tendency, not a proof that the statistic has an exact F distribution when variances differ. Matching expectations alone does not determine the full distribution of a ratio.
Worked Example: Balanced Groups With Different Variances
Suppose three independent groups each contain 12 observations, and their hypothetical population variances are 4, 9, and 16 outcome-units squared. Assume their population means are equal. Check what the expected mean squares indicate.
Here \(k=3\), \(n=12\), and \(N=36\), so the design is balanced. Using the balanced-design result, \(E(MS_{\text{between}})=(4+9+16)/3=29/3=9.667\) outcome-units squared. Also, \(E(MS_{\text{within}})=[11(4)+11(9)+11(16)]/33=319/33=9.667\) outcome-units squared.
The expected scales match despite the variance ratio \(16/4=4\). That is one reason balance can make the ordinary F test less sensitive to variance differences. The calculation does not establish that a particular observed test has the correct p-value: the group variances differ, so the exact equal-variance model still does not hold. The degree of concern also depends on the observed data and how severe the variance differences are.
Nonnormality: What Larger Group Sizes Can—and Cannot—Do
The normality condition concerns the errors within each group, not whether the combined raw outcomes look normal. When group sizes are adequate, the sampling distributions of the group means often become closer to normal even if individual outcomes are moderately skewed, provided the observations are independent and the population variances are finite. This can make inference based on the group means less sensitive to moderate nonnormality.
There is no universal sample-size cutoff that makes a distribution harmless. The group sizes should be considered separately: a large \(N\) can conceal one small group if the other groups are much larger. Strong skew, heavy tails, or an influential observation can have a substantial effect on a mean and on the within-group variance, especially when a group is small. Increasing sample size also does not fix dependence or automatically remove unequal-variance problems caused by imbalance.
Worked Example: Moderate Skew With Similar Group Sizes
Imagine a hypothetical study comparing mean completion times across three independent training methods. Each method has 24 observations, and the residual Q-Q plots show some curvature in the tails but no isolated extreme point. The residual plots show roughly similar spreads. The study design supports treating observations as independent.
The total sample size is \(N=24+24+24=72\), with \(k=3\) groups and 23 residual degrees of freedom in each group. Sizes are balanced, and each group has a moderate number of observations. Given the stated diagnostics, moderate tail departures are less concerning than they would be with very small groups; the mean-based F test may be reasonably robust to this degree of nonnormality.
This is a qualified assessment, not a calculation of a p-value and not a guarantee that the test is valid. If a residual plot instead showed a severe tail or one unusually influential observation, the group size of 24 would not by itself dismiss that warning. Similarly, similar residual spreads support—but do not prove—the common-variance condition.
Why Imbalance and Unequal Variances Can Conflict
With unequal sizes, the pooled within-groups variance estimate gives more weight to groups with more residual degrees of freedom. But the variability of a difference between two group means depends on each group's variance divided by its own sample size. If a small group has a large variance, that group mean can be especially unstable while contributing relatively little weight to the pooled variance estimate. The resulting F statistic may be too large too often under \(H_0\), making the test anti-conservative: its actual Type I error rate can exceed \(\alpha\). If the larger variances are instead in the larger groups, the usual test can be conservative, with an actual Type I error rate below \(\alpha\).
A two-group comparison makes the mismatch visible. For two groups, the ordinary one-way ANOVA F statistic is the square of the pooled-variance two-sample t statistic. Under equal means but unequal variances, the actual variance of the difference in sample means is \(\sigma_1^2/n_1+\sigma_2^2/n_2\). The pooled variance estimate has expected value \(\{(n_1-1)\sigma_1^2+(n_2-1)\sigma_2^2\}/(n_1+n_2-2)\). If the design is unbalanced, the usual test's estimated uncertainty can therefore disagree with the actual uncertainty, depending on which group has the larger variance.
Worked Example: A Small, High-Variance Group
Consider a hypothetical two-group comparison with equal population means, \(n_1=5\), \(n_2=20\), \(\sigma_1^2=16\), and \(\sigma_2^2=4\). The small group has the larger variance. Compare the actual variance of the difference in sample means with the variance suggested on average by the pooled method.
The actual variance is \(\operatorname{Var}(\bar{Y}_{1.}-\bar{Y}_{2.})=16/5+4/20=3.20+0.20=3.40\) outcome-units squared.
The expected pooled variance estimate is \(E(s_p^2)=\{(5-1)(16)+(20-1)(4)\}/(5+20-2)=(64+76)/23=6.087\) outcome-units squared. The ordinary method uses that pooled estimate multiplied by \(1/5+1/20=0.25\), giving an expected estimated variance of \(6.087(0.25)=1.522\) outcome-units squared for the difference.
The actual variance, 3.40, is about \(3.40/1.522=2.234\) times the pooled method's expected variance estimate. This mismatch indicates why the ordinary test can understate uncertainty and become anti-conservative in this configuration. The comparison describes a variance mismatch; it does not itself provide an F statistic or p-value.
Worked Example: The Same Imbalance, Variances Reversed
Keep \(n_1=5\) and \(n_2=20\), but now let the hypothetical variances be \(\sigma_1^2=4\) and \(\sigma_2^2=16\). The larger group has the larger variance. Again assume equal population means.
The actual variance of the difference is \(4/5+16/20=0.80+0.80=1.60\) outcome-units squared. The expected pooled variance estimate is \(\{4(4)+19(16)\}/23=(16+304)/23=13.913\) outcome-units squared. The ordinary method's expected estimated variance for the difference is therefore \(13.913(1/5+1/20)=13.913(0.25)=3.478\) outcome-units squared.
Here the pooled method's expected estimate is \(3.478/1.60=2.174\) times the actual variance. It can overstate uncertainty, making the test conservative. This reversal illustrates why saying only “the groups are unequal in size” is not enough: the alignment between group size and variance matters.
Using the Diagnostics in Context
Residual Q-Q plots and residual-versus-fitted plots help assess distributional shape and changing spread; study design informs whether independence is plausible. These diagnostics are useful alongside sample sizes, not substitutes for them. In particular, inspect each group’s size and residual pattern rather than relying on the total \(N\) or on a single pooled plot. A variance test can add evidence about spread differences, but no diagnostic test turns an assumption into a certainty.
A practical assessment should consider the combination of evidence. Similar group sizes and adequate observations per group are reassuring when departures from normality are moderate and no influential residuals are apparent. Strongly unequal spreads combined with substantial imbalance warrant much greater caution, especially when the smallest group is the most variable. Robustness is about the reliability of the procedure for the situation at hand, not a label that can be assigned from balance alone.
Check Your Understanding
Use the balance, sample-size, and variance ideas to assess each situation.
- Three independent groups have equal sizes of 18. Their residual spreads differ somewhat, and their Q-Q plots show mild tail departures. Which features make the ordinary F test more or less concerning?
- Why does a large total sample size not guarantee that every group mean is well supported?
- Two groups have sizes 6 and 24. Under the null, which variance arrangement is more likely to make the usual pooled test anti-conservative: the larger variance in the group of 6 or in the group of 24? Explain.
- For a balanced design with unequal group variances, what does matching expected mean squares help explain, and what does it fail to prove?
- Name one important ANOVA condition that balance cannot repair, and explain why the study design matters for assessing it.