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.


Two participant rows connect observations across three conditions.


For kk conditions, the omnibus hypotheses are


H0:μ1=μ2=⋯=μkH_0: \mu_1=\mu_2=\cdots=\mu_k


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,


SStotal=SSparticipants+SSconditions+SSerrorSS_{\text{total}}=SS_{\text{participants}}+SS_{\text{conditions}}+SS_{\text{error}}


The governing test statistic is


F=MSconditionsMSerror,MS=SSdfF=\frac{MS_{\text{conditions}}}{MS_{\text{error}}}, \qquad MS=\frac{SS}{df}


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 nn participants with complete observations in kk conditions, the uncorrected degrees of freedom are


dfconditions=k−1,dferror=(n−1)(k−1).df_{\text{conditions}}=k-1, \qquad df_{\text{error}}=(n-1)(k-1).



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 ε\varepsilon. It leaves FF 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:


L=∑j=1kcjμj,∑j=1kcj=0.L=\sum_{j=1}^{k}c_j\mu_j, \qquad \sum_{j=1}^{k}c_j=0.


For conditions baseline, brief practice, and extended practice, weights (−1,12,12)(-1,\tfrac12,\tfrac12) 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 points2SS_{\text{conditions}}=416\ \text{points}^2 and SSerror=720 points2SS_{\text{error}}=720\ \text{points}^2. The analysis plan specifies a Greenhouse–Geisser correction; software estimates ε=.75\varepsilon=.75. Use α=.05\alpha=.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


H0:μquiet=μbreathing=μimagery.H_0:\mu_{\text{quiet}}=\mu_{\text{breathing}}=\mu_{\text{imagery}}.


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.003260.00326. State the omnibus conclusion.


With n=16n=16 and k=3k=3, first calculate the uncorrected degrees of freedom:


dfconditions=k−1=3−1=2,dferror=(n−1)(k−1)=(16−1)(3−1)=30.\begin{aligned} df_{\text{conditions}}&=k-1=3-1=2,\\ df_{\text{error}}&=(n-1)(k-1)=(16-1)(3-1)=30. \end{aligned}


Divide each sum of squares by its degrees of freedom:


MSconditions=4162=208 points2,MSerror=72030=24 points2.\begin{aligned} MS_{\text{conditions}}&=\frac{416}{2}=208\ \text{points}^2,\\ MS_{\text{error}}&=\frac{720}{30}=24\ \text{points}^2. \end{aligned}


The ratio is


F=208 points224 points2=8.666…≈8.67.F=\frac{208\ \text{points}^2}{24\ \text{points}^2}=8.666\ldots\approx8.67.


F is dimensionless because the squared-score units cancel. Apply the Greenhouse–Geisser correction to both degrees of freedom:


df1,corrected=.75(2)=1.50,df2,corrected=.75(30)=22.50.\begin{aligned} df_{1,\text{corrected}}&=.75(2)=1.50,\\ df_{2,\text{corrected}}&=.75(30)=22.50. \end{aligned}


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.67F(1.50,22.50)=8.67, p=.003p=.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,12,12)(-1,\tfrac12,\tfrac12). Their sum is ________:


−1+12+12=0.-1+\frac12+\frac12=0.


Apply those weights to the sample means:


L^=−Xˉquiet+12Xˉbreathing+12Xˉimagery=−40+12(35)+12(33)=−40+17.5+16.5=−6.0 points.\begin{aligned} \widehat L&=-\bar X_{\text{quiet}}+\frac12\bar X_{\text{breathing}}+\frac12\bar X_{\text{imagery}}\\ &=-40+\frac12(35)+\frac12(33)\\ &=-40+17.5+16.5\\ &=-6.0\ \text{points}. \end{aligned}


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+12Xi,breathing+12Xi,imageryD_i=-X_{i,\text{quiet}}+\tfrac12X_{i,\text{breathing}}+\tfrac12X_{i,\text{imagery}}. If these scores have sample standard deviation sDs_D, then


SE(L^)=sD16,t=−6.0SE(L^),df=15.SE(\widehat L)=\frac{s_D}{\sqrt{16}},\qquad t=\frac{-6.0}{SE(\widehat L)},\qquad df=15.


The pooled error summary and estimated epsilon do not identify sDs_D. 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


∑i=116(Di−Dˉ)2≤[(−1)2+(12)2+(12)2]SSerror=1.5(720)=1080 points2,sD2≤108015=72 points2,SE(L^)≤7216=4.5 points.\begin{aligned} \sum_{i=1}^{16}(D_i-\bar D)^2 &\leq\left[(-1)^2+\left(\frac12\right)^2+\left(\frac12\right)^2\right]SS_{\text{error}}\\ &=1.5(720)=1080\ \text{points}^2,\\ s_D^2&\leq\frac{1080}{15}=72\ \text{points}^2,\\ SE(\widehat L)&\leq\sqrt{\frac{72}{16}}=\sqrt{4.5}\ \text{points}. \end{aligned}


Consequently, for a positive standard error,


∣t(15)∣≥64.5=8≈2.8284.|t(15)|\geq\frac{6}{\sqrt{4.5}}=\sqrt{8}\approx2.8284.


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.

A psychologist recruits 24 adults. Each adult completes a memory task under silence, steady background noise, and intermittent background noise, with presentation order counterbalanced. The outcome is the number of words recalled. Why is one-way repeated measures ANOVA suitable for comparing the condition means?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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.

Match each term
A.

Squared differences between participant means and the grand mean, multiplied by the number of conditions

B.

Squared differences between condition means and the grand mean, multiplied by the number of participants

C.

Squared deviations remaining after accounting for both condition means and participant means

D.

Squared differences between individual observations and the grand mean

Participant variation

Total variation

Condition variation

Residual variation

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice