One-way Repeated Measures ANOVA
Comparing Conditions Within the Same People
One-way Repeated Measures ANOVA tests whether population means differ across levels of one factor when the same participants contribute scores at every level. You might measure attention under three lighting conditions or assess confidence at several occasions. The analysis preserves the connection between each person's observations. Its central question concerns the average condition pattern, rather than differences between people's overall scores.
Identify the repeated factor
A within-participant factor is a variable whose levels are all experienced by each participant. One-way means that the analysis contains one such factor. Three measurement occasions are three levels of a time factor, rather than three separate factors.
For k conditions, the omnibus hypotheses are
The alternative is that at least one population mean differs. A significant result does not establish which conditions differ or that every pair differs. Repeated measurement also does not itself establish causation: practice, fatigue, or events occurring over time can influence scores.
Understand the error term
Some participants consistently score higher than others. Repeated measures ANOVA separates these stable participant differences from the variation used to test the condition effect. For the standard complete-data, one-factor model,
The governing test statistic is
Here, error represents variation in within-person condition patterns that the common condition effect does not explain. Removing stable participant differences can improve precision, but substantial variation in people's responses across conditions can remain.
For n participants with complete observations in k conditions, the uncorrected degrees of freedom are
Check the assumptions that matter
Participants should be independent of one another, although observations within each participant are related. The outcome should be quantitative. The usual normal-theory model assumes approximately multivariate-normal within-participant errors; inspect relevant difference scores or contrasts for severe non-normality and influential outliers.
Sphericity means that the population variances of the differences between every pair of conditions are equal. It concerns differences, rather than equality of the separate condition variances.
Situation | Implication for the usual univariate test |
|---|---|
Two conditions | Sphericity is automatic because there is only one pairwise difference. |
Three or more conditions | Sphericity becomes a substantive assumption. |
Evidence against sphericity | A correction such as Greenhouse–Geisser adjusts the reference distribution. |
Mauchly's test examines sphericity. A small p-value provides evidence against it; a large p-value does not prove it. A prespecified analysis may also use a correction without first requiring a significant Mauchly test.
The Greenhouse–Geisser correction multiplies both degrees of freedom by an estimated ε. It leaves F unchanged but changes its p-value. It does not repair dependence between participants or confounding in the design.
Ask focused questions with contrasts
A contrast expresses a specific comparison as a weighted combination of condition means:
For conditions baseline, brief practice, and extended practice, weights (−1,21,21) compare the average of the two practice means with baseline. This differs from comparing the two practice conditions with each other.
Estimate a contrast by applying its weights to the sample means. Its uncertainty must account for the linked observations. A significant omnibus test does not automatically make a particular contrast significant. Specify planned comparisons in advance and address multiplicity when testing a family of comparisons.
What to remember
- Preserve the links between each participant's observations.
- The omnibus test asks whether all population condition means are equal.
- Sphericity concerns variances of pairwise differences.
- Contrasts answer specific questions and require their own uncertainty assessment.
Example: Comparing Three Relaxation Conditions
Sixteen adults attend three sessions, experiencing quiet sitting, paced breathing, and guided imagery in counterbalanced order. After each session, they rate current tension on a 0–100 scale, where higher scores mean greater tension. Every participant completes all three conditions. Treat participants as independent, and assume the normal-theory model is suitable.
The condition means are 40, 35, and 33 points, respectively. The ANOVA summary gives SSconditions=416 points2 and SSerror=720 points2. The analysis plan specifies a Greenhouse–Geisser correction; software estimates ε=.75. Use α=.05.
Before data collection, the researcher also planned to compare the average of paced breathing and guided imagery with quiet sitting.
a) Identify the factor and state the omnibus hypotheses.
The factor is relaxation condition, with three levels: quiet sitting, paced breathing, and guided imagery. Every adult experiences every level, so condition is a within-participant factor. There are ________ independent participants, each supplying ________ related scores.
The population hypotheses are
The alternative is that at least one population mean differs. A one-way repeated measures ANOVA matches this design because it compares one factor while retaining the links between each participant's scores.
b) Calculate F and the corrected degrees of freedom. Software gives a corrected p-value of 0.00326. State the omnibus conclusion.
With n=16 and k=3, first calculate the uncorrected degrees of freedom:
Divide each sum of squares by its degrees of freedom:
The ratio is
F is dimensionless because the squared-score units cancel. Apply the Greenhouse–Geisser correction to both degrees of freedom:
The observed F remains unchanged. Reporting the corrected result to two decimal places for F and three decimal places for p gives F(1.50,22.50)=8.67, p=.003. Because the supplied p-value is below .05, reject the omnibus null hypothesis. There is evidence that at least one population condition mean differs; this result does not identify the differing pairs.
c) Choose weights and estimate the planned contrast as average active relaxation minus quiet sitting. Can its exact standard error and exact p-value be calculated from the supplied information?
In the order quiet sitting, paced breathing, guided imagery, use weights (−1,21,21). Their sum is ________:
Apply those weights to the sample means:
The average tension score across paced breathing and guided imagery is 6.0 points lower than the quiet-sitting mean. The negative sign follows the stated subtraction order.
For a contrast-specific test, form each participant's contrast score Di=−Xi,quiet+21Xi,breathing+21Xi,imagery. If these scores have sample standard deviation sD, then
The pooled error summary and estimated epsilon do not identify sD. Therefore, the exact standard error and exact two-sided p-value require the linked observations or suitable covariance information. The omnibus p-value does not supply the contrast's p-value.
However, the supplied error sum of squares still bounds the contrast's uncertainty. Applying Cauchy–Schwarz to the within-participant residuals gives
Consequently, for a positive standard error,
The corresponding two-sided p-value is at most approximately .012709, below .05. Thus, the planned contrast is significant at the stated level, although its exact standard error and exact p-value cannot be calculated from these summaries.
Eighteen volunteers each complete three attention conditions. For a complete one-way repeated measures ANOVA, match each source of variation with what its sum of squared deviations represents. The grand mean is the mean of all 54 observed scores.
Squared differences between participant means and the grand mean, multiplied by the number of conditions
Squared differences between condition means and the grand mean, multiplied by the number of participants
Squared deviations remaining after accounting for both condition means and participant means
Squared differences between individual observations and the grand mean
Participant variation
Total variation
Condition variation
Residual variation
Eighteen participants complete an attention task under three screen-brightness settings. Some participants are consistently faster than others at every setting. A one-way repeated measures ANOVA separates stable participant differences from its error term. Why can this improve the condition comparison?