Repeated-Measures Assumptions and Corrections
Canonical reference: Maxwell, Delaney, & Kelley (MDK) ref/mdk
The omnibus statistic of the one-way repeated-measures ANOVA is referred to an distribution with and degrees of freedom, where is the number of conditions and the number of participants. That reference distribution describes how the statistic behaves only under a set of normal-theory assumptions about the population from which the participants come. Three assumptions are involved. The first two concern independence and the distribution of the errors. The third, sphericity, is the one specific to the repeated-measures design: it concerns the variability of difference scores and arises once each participant is measured in more than two conditions. This page states the three, shows through difference scores why sphericity is exactly what the pooled error term requires, describes the test of the assumption and its limits, and presents the degrees-of-freedom corrections that adjust the omnibus reference distribution when sphericity is doubtful.
Throughout, the example is the hypothetical caffeine study of the parent page: participants each take a capsule containing , , , or mg of caffeine ( conditions), and sleep duration is recorded in hours.
Independence and normality
Independence between participants. Different participants provide independent sets of scores: the scores of one participant are independent of the scores of every other participant.
Normality. The analysis retains the normal-theory assumption about the population errors. Because the error term is built from within-participant comparisons, the distributions that matter are those of the comparison errors: the difference scores between pairs of conditions — and, more generally, any contrast of one participant’s scores across conditions — are assumed to be normally distributed in the population. This is the distributional requirement of the paired-samples test, extended to more than two conditions.
Sphericity. The population variances of all pairwise difference scores are equal. The assumption concerns the variability of difference scores, and most of this page is devoted to it.
Not assumed: independence within a participant. The scores that one participant supplies in different conditions need not be independent. They are expected to be related — a participant who sleeps long in one condition tends to sleep long in the others — and the design depends on that relationship rather than being compromised by it. In the additive model of the parent page,
is the score of participant () in condition (), is the grand level, the effect of condition , the effect of participant , and the error. The participant effect is a participant’s stable overall level, and it is what makes one participant’s scores related across conditions. Separating that level from the error is the point of the design.
Difference scores and the pooled error term
Every comparison between conditions in a repeated-measures design is, for each participant, a comparison of that participant’s own scores. For a pair of conditions and , define the pairwise difference score of participant as
Substituting the additive model shows why difference scores are the natural currency of the design:
Both and the participant effect cancel, so a participant’s difference equals the difference between the two condition effects plus a within-participant error. Under additivity, the expected condition difference is the same for every participant, so the expected participant profiles — one line per participant drawn across the conditions — are parallel. Observed profiles can depart from that pattern through within-participant error. The mean square formed from the participant-by-condition sum of squares measures those departures from parallelism.
A single participant makes the bookkeeping concrete. Participant 1 slept hours after 0 mg (the placebo capsule) and hours after 400 mg, an observed difference of hours. The additive model predicts hours, where is the estimated condition effect, is the mean of the scores in condition , and is the grand mean of all scores. The gap between the observed difference of hours and the additive difference of hours reflects within-participant error. Participant 1’s overall level plays no part in the comparison, because it cancels inside the difference.
The same two comparisons show how much the consistency of a change can differ from comparison to comparison:
- 0 mg versus 400 mg. The ten differences are hours: every participant sleeps between and hours less after 400 mg, and the profiles are nearly parallel. The mean difference is hours and the variance of the differences is .
- 100 mg versus 200 mg. The ten differences are hours: their signs and magnitudes vary across participants, so the profiles cross. The mean difference is hour and the variance of the differences is .
This is what represents: how much participants’ changes across conditions differ from person to person. Nearly parallel profiles give small residuals and crossing profiles large ones, and the variances of the difference scores agree with what the profiles show.
The error term as an average of difference variances
The link between the pooled error term and the difference-score variances is exact, and it holds for every comparison at once. Let be the sample variance (divisor ) of the difference scores between conditions and . For a complete data set, in which every participant is observed in every condition, the error mean square is exactly half the average of the pairwise difference-score variances:
where the sum runs over all unordered pairs of conditions. The six caffeine comparisons give:
| Comparison ( minus ) | |||
|---|---|---|---|
| 0 mg minus 100 mg | 0.70 | 16.1 | 1.79 |
| 0 mg minus 200 mg | 1.70 | 18.1 | 2.01 |
| 0 mg minus 400 mg | 2.60 | 4.4 | 0.49 |
| 100 mg minus 200 mg | 1.00 | 28.0 | 3.11 |
| 100 mg minus 400 mg | 1.90 | 22.9 | 2.54 |
| 200 mg minus 400 mg | 0.90 | 24.9 | 2.77 |
Here is the mean of the difference scores for the pair and their sum of squared deviations from that mean. Substituting the variances,
the same value as in the ANOVA table of the parent page. An equivalent form of the identity is :
The identity is algebraic bookkeeping, not an assumption: it holds for any complete data set, however unequal the six variances are. Its consequence for inference is what matters. is one number formed from every pairwise difference, and the omnibus uses it as the error for every comparison among the conditions simultaneously. The unadjusted test therefore proceeds as if a single difference-score variance applied to every pair of conditions. Under sphericity that is so: every pair has the same population difference variance, written below, and estimates .
Sphericity and compound symmetry
Sphericity is the assumption that the population variances of all pairwise difference scores are equal. Writing for the random variable that gives a participant’s score in condition ,
where is one common value. For three conditions this reads ; for conditions, difference variances must coincide. The assumption concerns population variances. Sample difference variances are never expected to be exactly equal, and the spread from to in the caffeine table is by itself neither a violation nor a confirmation.
Two conditions. With there is only one pairwise difference, hence only one difference variance, and nothing for sphericity to equate. The assumption places no restriction on the two-condition design: the paired-samples test requires independence between pairs and normality of the difference scores, but nothing about sphericity. The assumption becomes a separate issue only once .
Equal variances of the original scores are not enough. The variance of a difference depends on the covariance as well:
where is the population variance of the scores in condition and the population covariance between conditions and . Even if every condition has the same variance, the difference variances are equal only if all the covariances are equal as well. As a constructed illustration, take three conditions that each have variance , with correlations , , and between the three pairs of conditions. The difference variances are then
so identical original-score variances coexist with unequal difference variances: no sphericity.
Why violations matter. When the population difference variances are unequal, no single number can serve as the error for every comparison, and is no longer a fixed multiple of one variance. The statistic then need not follow the distribution with and degrees of freedom when the null hypothesis is true. The unadjusted test can be anticonservative: across repeated samples from a population whose condition means are all equal, it can reject the null hypothesis more often than the nominal significance level. Its p-values can be too small in this long-run sense, which is the same thing as an inflated Type I error rate. The statement describes the behavior of the procedure over many samples; it is not a guarantee about any one data set, and it does not mean that a corrected p-value must exceed the uncorrected one every time. The remedy is to adjust the reference distribution, by correcting its degrees of freedom, rather than the statistic.
Compound symmetry is a condition on the covariance matrix of the original scores: all variances equal and all covariances equal. For three conditions the matrix is
where is the common variance of the scores and the common correlation between any two conditions. Under compound symmetry every difference has variance , the same for every pair, so compound symmetry implies sphericity. The converse is false: sphericity constrains only the combinations , not each variance and each covariance separately, so a population can satisfy sphericity without being compound symmetric. Compound symmetry is thus sufficient but not necessary — a more restrictive condition than sphericity, easier to state and harder to meet.
Mauchly’s test without a preliminary-test gate
Mauchly’s test is the standard test of the sphericity assumption. Its null hypothesis is that sphericity holds in the population. The test statistic, , is converted into a chi-square statistic whose reference distribution and degrees of freedom are reported by the software.
A significant result provides evidence against sphericity. A nonsignificant result does not establish that sphericity holds; it only means that the sample did not detect a departure. For the caffeine data, the software output is
where the chi-square value is the small-sample-corrected form of the statistic. The test is not significant, even though the sample difference variances range from to .
Two limitations explain why a nonsignificant Mauchly result carries little weight:
- Small samples provide little power. With participants the test has little chance of detecting even a substantial departure from sphericity, so nonrejection is the likely outcome whether or not the assumption holds.
- Nonnormality can affect the test. Departures from normality can distort the test itself, so its p-value is not automatically dependable when the normality assumption is doubtful.
For these reasons MDK recommends against using Mauchly’s test as a preliminary decision rule. A correction does not have to wait for a significant result: it may be applied whether or not Mauchly’s test is significant.
Greenhouse–Geisser and Huynh–Feldt corrections
Both corrections keep the observed statistic and change the reference distribution. Each rests on a population quantity that indexes how far the covariance structure departs from sphericity and satisfies
The population equals when sphericity holds; smaller values indicate larger departures, down to the lower bound , which is for . The Greenhouse–Geisser and Huynh–Feldt procedures estimate from the data by different estimators and multiply both degrees of freedom by the estimate:
where is the generic estimate: denotes the Greenhouse–Geisser estimate and the Huynh–Feldt estimate, with each procedure substituting its own estimate into the formulas. Here and are the numerator and denominator degrees of freedom of the unadjusted test, and the asterisk marks the corrected values. The observed value stays the same. Condition means, sums of squares, mean squares, and the statistic — the condition mean square divided by the error mean square — are all untouched. Only the p-value changes, because it is now read from the distribution with the corrected degrees of freedom.
Two properties of the corrected degrees of freedom deserve emphasis. First, they are generally fractional, and they enter the distribution as they are. Second, they are a device for adjusting the reference distribution. They are not a new count of the model’s residual parameters, which remains , and they do not alter any sum of squares or mean square.
Greenhouse–Geisser for the caffeine data
The Greenhouse–Geisser estimate is ( before rounding), well inside the interval from to . Multiplying the unadjusted degrees of freedom by the unrounded estimate gives
The corrected result is reported as , . The null hypothesis of equal population means is still rejected: the data still provide evidence that population mean sleep duration is not the same across the four caffeine doses. Only the reference distribution changed. Its critical value rises from to , and the p-value — although still below — is larger than the unadjusted one. The further the estimate of departs from , the smaller the corrected degrees of freedom and the more severe the correction.
Compute the corrected degrees of freedom from the unrounded estimate. Rounding to first makes the second product , not .
Huynh–Feldt
The Huynh–Feldt procedure uses a different estimator, which for the caffeine data gives , which rounds to . A larger estimate leaves more degrees of freedom, hence a lower critical value and a smaller p-value. When its estimate is larger, as here, the Huynh–Feldt correction is therefore the less conservative of the two, and a value this close to leaves the degrees of freedom near the unadjusted and . The Huynh–Feldt estimate can exceed , in which case it is capped at ; for the caffeine data the estimate falls below , so no cap was applied. With small samples the two estimates can disagree considerably, as they do here — against at . MDK recommends the Greenhouse–Geisser correction.
Scope: follow-up comparisons and design limitations
The epsilon corrections belong to the omnibus univariate test. Follow-up comparisons among the conditions need not inherit the pooled error term and its sphericity requirement. A comparison between two conditions can instead be tested with its own difference scores: the pairwise differences are subjected to a paired-samples test on degrees of freedom, so each comparison’s error is estimated from that comparison’s difference variance alone, with no pooling across comparisons and no epsilon correction. These separate-error procedures, and the multiplicity control they require, are treated in Repeated-Measures Comparisons.
The univariate test has further limitations that a degrees-of-freedom correction does not address. The traditional analysis generally requires complete repeated observations for every included participant, and sphericity can be implausible in practice, particularly when the within-subjects factor is time. Multivariate analysis of variance and linear mixed-effects models are alternative analyses with different assumptions and capabilities rather than universal replacements. Counterbalancing the order of conditions addresses the confounding of condition with position; it does not guarantee sphericity. These matters are treated in Repeated-Measures Design Considerations.
Related pages
- One-Way Repeated-Measures ANOVA owns the notation, the partition of variability, the unadjusted omnibus , and the additive model whose assumptions this page states.
- Repeated-Measures Comparisons covers pairwise and complex comparisons that use a separate error term for each comparison.
- Repeated-Measures Design Considerations covers order effects, counterbalancing, carryover, repeated measurements over time, and the limitations of the traditional analysis.
- t tests treats the paired-samples test to which the two-condition repeated-measures analysis reduces.
- Hypothesis Testing defines the significance level and Type I error.