Why Unequal Cell Sizes Invite Mistakes
In a factorial ANOVA, a cell is one combination of factor levels. When cell sizes differ, summaries that look similar can answer different questions: an average across observed individuals may give more influence to heavily sampled cells, while an average of cell means may give every cell equal influence. Cell means may also have different precision, and the factors need not be orthogonal. Avoiding mistakes starts with naming exactly what is being averaged and how it is weighted.
The examples use a two-factor design to make these issues visible. The same principles apply to designs with more factors: a marginal mean averages across combinations of the other factors, so the averaging weights matter.
Set Up the Cell-Means Model
Let \(i\) index the levels of factor A, \(j\) index the levels of factor B, and \(k\) index observations within a cell. Write \(n_{ij}\) for the number of observations in cell \((i,j)\), and \(\bar{x}_{ij}\) for that cell's sample mean. The corresponding population cell mean is \(\mu_{ij}\).
A cell mean summarizes the observations in one specific combination of factor levels. A marginal mean summarizes across levels of another factor. In an unbalanced design, “the marginal mean” is incomplete unless the weights are specified. An observed-sample marginal mean uses the cell counts in the sample; an equal-weight marginal mean gives each included cell the same weight. Either can be useful, but they need not be equal or answer the same question.
Mistake 1: Treating a Marginal Mean as a Cell Mean
A cell mean belongs to one cell, such as the mean for A1 and B2. A marginal mean combines results from multiple cells, so it cannot be used as though it described one particular combination. This distinction matters especially when cell means differ across levels of a factor.
Worked Example: Separating Cell Means From Marginal Means
Suppose a hypothetical study records a score, in points, for two levels of A and two levels of B. The cell summaries are:
| Cell | Sample size \(n_{ij}\) | Cell mean \(\bar{x}_{ij}\) (points) |
|---|---|---|
| A1, B1 | 20 | 10 |
| A1, B2 | 5 | 14 |
| A2, B1 | 5 | 12 |
| A2, B2 | 20 | 16 |
The cell mean for A1, B2 is 14 points. It is not the same as the marginal mean for A1, which combines the A1, B1 and A1, B2 cells. Weighting by the observed numbers of people gives
For A2, the corresponding observed-sample marginal mean is
If the intended summary instead gives B1 and B2 equal weight within each A level, the averages are \( (10+14)/2=12 \) points for A1 and \( (12+16)/2=14 \) points for A2. These are different summaries from the observed-sample marginal means. The cell means themselves remain 10, 14, 12, and 16 points; averaging them does not turn a marginal mean into a cell mean.
Correction: Identify the cell when describing a cell mean, and name the averaging rule when describing a marginal mean. Do not label 10.8 points as “the A1, B2 mean”; that cell mean is 14 points.
Mistake 2: Assuming All Cell Means Are Equally Precise
A mean based on more observations is generally more precise than a mean based on fewer observations, provided observations have the same variance and meet the independence assumptions. Treating all cell means as equally precise can therefore misrepresent how much information each one contains.
The reason follows from independence. A cell mean is the average of \(n_{ij}\) observations, so its error is the average of \(n_{ij}\) independent errors. The variance of a sum of independent errors is the sum of their variances; dividing that sum by \(n_{ij}^2\) gives
Taking the square root gives the standard deviation of the cell mean, \(\sigma/\sqrt{n_{ij}}\), and replacing \(\sigma\) by a suitable estimate \(s\) gives its estimated standard error. This calculation relies on independent observations with a common variance; unequal sample sizes alone do not justify different variance assumptions, but they do produce different standard errors under this model.
Worked Example: Comparing Cell-Mean Precision
Suppose two hypothetical cells measure recovery time in days. The first has \(n_1=4\) observations and the second has \(n_2=16\). Assume independent observations and a common within-cell standard deviation estimated as \(s=4\) days.
For the first cell, the estimated standard error of its sample mean is
For the second cell, it is
The second mean has half the estimated standard error, not because its mean must be closer to the population mean in this particular sample, but because a sample of 16 observations has greater precision than a sample of 4 under the stated model. Both estimates use the same \(s\), units, and assumptions; the difference comes from \(n\).
Correction: Do not treat the two sample means as equally precise just because both are means in a factorial table. Report or account for their sample sizes when evaluating their uncertainty.
Mistake 3: Assuming Unequal Designs Are Orthogonal
In a balanced factorial design, factor comparisons can have convenient orthogonality properties. Unequal cell counts can remove those properties: information about one factor may no longer be separated cleanly from information about another. A useful check is to code the two factor levels as \(-1\) and \(+1\). The cross-product of the two coded columns is the sum of the products of their codes across observations. If it is not zero, those columns are not orthogonal in the observed design.
Worked Example: Checking Orthogonality From Cell Counts
Consider hypothetical counts of 18, 2, 2, and 18 observations in cells A1B1, A1B2, A2B1, and A2B2, respectively. Code A1 and B1 as \(-1\), and A2 and B2 as \(+1\). The product of the A and B codes is \(+1\) in A1B1 and A2B2, and \(-1\) in A1B2 and A2B1. Thus the cross-product is
Since this cross-product is not zero, the coded factor columns are not orthogonal in this design. In contrast, with equal counts in all four cells, the positive and negative products would cancel. Here the large counts are concentrated in the two cells where A and B have matching codes.
This is a design-level warning, not a claim that every analysis must use one particular adjustment or that the factors are causally related. It means that an analyst should not assume that a comparison involving one factor is automatically independent of how the other factor is represented. The design and the question being asked must guide the analysis.
Correction: Check the cell-count pattern before assuming orthogonality. In an unbalanced design, avoid reasoning that depends on factor effects being separated automatically.
Mistake 4: Reporting an Average Without Its Weights
A weighted average has a precise interpretation only when its weights are clear. The observed-sample grand mean weights each cell by its number of observations. An equal-cell grand mean weights each cell equally. They summarize different target compositions when counts differ. Neither is universally correct: choose weights that match the question, and state them.
Worked Example: Naming the Weights Behind an Overall Average
Use the counts in the orthogonality example, and suppose the hypothetical cell means, in points, are 10 for A1B1, 14 for A1B2, 12 for A2B1, and 20 for A2B2. The observed-sample grand mean weights each cell mean by its cell count:
An equal-cell grand mean instead gives each of the four cell means weight \(1/4\):
The difference, 14.8 versus 14 points, reflects different weights, not an arithmetic error. The first summarizes the observed sample composition; the second summarizes a hypothetical composition with equal representation from each cell. If the goal is to describe the observed sample, the first weighting is natural. If the goal is a comparison standardized to equal cell representation, the second may be relevant. The intended target must be stated rather than inferred from the number alone.
Correction: When reporting a grand or marginal average, give the weighting rule in words or in the formula. “The average was 14.8 points” is less informative than “the observed-sample grand mean, weighted by the cell counts, was 14.8 points.”
A Short Audit Before Interpreting a Summary
These errors can be caught by asking a few precise questions before writing an interpretation. The goal is not to calculate every possible summary; it is to make sure the reported number corresponds to the intended quantity and that its uncertainty is not hidden.
Is the number a cell mean, a marginal mean, or a grand mean? Identify the factor levels or combinations it summarizes.
Say whether cells are weighted by their observed counts, equally, or by another stated target composition.
Compare cell sizes and use a standard-error calculation only when its independence and variance assumptions are reasonable.
Do not assume orthogonality from the factorial layout alone; inspect the cell counts and the coding or comparisons being used.
Common Mistakes and Their Corrections
- Wrong: “The A1 mean is the A1B2 cell mean.” Correction: The A1 marginal mean combines cells across B; the A1B2 mean refers to that one cell.
- Wrong: “Each cell mean is equally precise because each is one number.” Correction: Under the common-variance model, the standard error depends on the cell size through \(s/\sqrt{n_{ij}}\).
- Wrong: “The factors are orthogonal because this is a factorial design.” Correction: Unequal cell counts can make factor columns nonorthogonal; check the design rather than assuming balance.
- Wrong: “The overall mean is 14.8 points,” with no further description. Correction: State that it is the observed-sample mean weighted by cell counts, or name the alternative weights used.
- Wrong: “The observed-sample weighted mean is always the right marginal mean.” Correction: It answers a question about the observed composition; a different target composition may require different weights.
Check Your Understanding
Use the definitions and examples above to answer these questions.
- A researcher reports a mean for level A1 that combines observations from B1 and B2. Is this a cell mean or a marginal mean? What additional information would help interpret it?
- Under the common-variance model, compare the estimated standard errors of two cell means with sample sizes 9 and 36, when \(s=6\) units.
- With cell counts 10, 10, 10, and 10 in a two-by-two design, what is the cross-product of the \(-1,+1\) coded A and B columns?
- Explain the difference between an observed-sample grand mean and an equal-cell grand mean.
- Why is it misleading to call a weighted average “the marginal mean” without stating how its cell weights were chosen?