Random-Effects ANOVA: Variance Among Sampled Levels
When an ANOVA factor is random
Use a one-way random-effects model when the observed factor levels are selected from a wider population and the goal is to describe variation among possible levels.
For example, an investigator might randomly sample laboratories, manufacturing lots, or instructors and measure several observations within each.
The central question is then not merely whether the selected named levels have equal means; it is how much outcome variation is attributable to differences among the population of levels.
For level i and observation j, the balanced model is
Yij = μ + ai + eij,
where level effects ai are treated as independent draws with mean 0 and variance σa2, and within-level errors eij are independent with mean 0 and variance σe2.
The model assumes the random level effect and error are independent. Normality is often used for conventional interval and test calculations; study design still determines whether generalization is defensible.
Two variances and a correlation
The total variance of one observation is σa2 + σe2. Two different observations from the same level share ai, so their covariance is σa2. Their intraclass correlation (ICC) is
ρ = σa2 / (σa2 + σe2).
The ICC is not the fraction of a particular person's score caused by its group. It is a population-model correlation for two observations sampled from the same level under the stated variance decomposition.
Balanced mean-square calculation
With n observations in every level, the expected within-level mean square is E(MSwithin) = σe2, while E(MSbetween) = σe2 + nσa2. A method-of-moments estimate is therefore
σ̂a2 = (MSbetween − MSwithin)/n.
Worked example. Suppose six sampled sites each contribute five measurements and the ANOVA mean squares are MSbetween = 30 and MSwithin = 10 (outcome units squared).
Then σ̂e2 = 10 and σ̂a2 = (30 − 10)/5 = 4. The estimated ICC is 4/(4 + 10) = 0.286. The denominator in the variance-component estimate is the number of observations per site, not the number of sites.
Finite samples can give MSbetween below MSwithin, producing a negative method-of-moments estimate even though a true variance cannot be negative. That is sampling variability, not evidence of negative variation; the handling depends on the chosen estimation method and should be reported rather than hidden.
Boundaries of the conclusion
- Random effects generalize to the population represented by the sampling scheme, not automatically to every setting.
- The model concerns variance components; it does not identify a causal reason why one level differs from another.
- Unequal numbers per level require methods that account for the actual design; the simple balanced formula above does not apply unchanged.
In a random-effects model, the estimated between-level variance is 9 units2 and the estimated within-level error variance is 16 units2. What is the estimated intraclass correlation for two observations from the same level?
A balanced random-effects study has four observations per sampled level. Its ANOVA mean squares are MSbetween = 27 units2 and MSwithin = 7 units2. Using the balanced method-of-moments relation, what is the estimated between-level variance component?