Statistics From Scratch by Rob Brotherton

15  Related-samples ANOVA

  • Introduction
  • 1  Variables & Measurement
  • 2  Frequency
  • 3  Central Tendency
  • 4  Variability
  • 5  \(z\)-Scores
  • 6  Probability
  • 7  Sampling
  • 8  Hypothesis Testing
  • 9  Statistical Power
  • 10  Confidence Intervals
  • 11  The \(t\) test
  • 12  Independent-samples \(t\) test
  • 13  Related-samples \(t\) test
  • 14  ANOVA
  • 15  Related-samples ANOVA
  • 16  Factorial ANOVA
  • 17  Correlation
  • 18  Regression
  • References

Table of contents

  • Off to the races, again
  • Partitioning variance in related samples
  • Calculating related-samples ANOVA
    • Sums of squares and degrees of freedom
    • Mean squares and \(F\)
  • A related-samples ANOVA, step by step
    • Step 1: State the hypotheses
    • Step 2: Set the decision criteria
    • Step 3: Collect and analyze the data
    • Step 4: Make a decision
    • Step 5: Estimate the effect, compare the conditions, and consider power
  • Reporting and interpreting results
    • Interpreting the results
    • Assumptions

15  Related-samples ANOVA

Three shaded normal curves in distinct blue shades grow at a shared center, then separate.

In Chapter 14 we introduced the general logic of ANOVA and used its independent-samples variant to analyze data from a between-participants design. But like the \(t\) test, ANOVA has varieties for different situations. In this chapter we’ll introduce the related-samples ANOVA. Just like the related-samples \(t\) test, this is for within-participants or matched-subjects designs. The basic logic is the same as the independent-samples ANOVA. To deal with related samples, we just extend the idea of partitioning variance to account for differences between people.

Off to the races, again

We spent Chapter 13 looking at data from a handful of kids who had completed a fun little flag race twice, first alone and then against another kid. Our \(t\) test found that they were generally a little faster racing against a rival, consistent with a social facilitation effect. But we left a loose end. Was it the competition that spurred them to race quicker, or was it just practice at turning the reel? With just two races from each kid, and competition always coming after the solo race, we couldn’t tell.

How could we tease apart any effects of practice and competition? Perhaps we could add another race. If the kids raced alone twice before competing, we could see how much they improved from the repetition alone, then see whether competition provoked any additional improvement. A bigger improvement in the third race would fit the social facilitation explanation.

In fact, Norman Triplett gave each child six timed trials, with different sequences of solo and competition trials (Triplett, 1898). Here we’ll use the first three trials from five kids who all followed the same order: alone, alone, then competition, as shown in Table 15.1.1

Table 15.1: Times (in seconds) for five children from Triplett’s study. The columns follow the order of their first three trials.
Child First alone Second alone Competition
Stephen M. \(51\) \(50\) \(43\)
Mary W. \(56\) \(53\) \(46\)
Bertha A. \(56\) \(49\) \(48\)
Clyde G. \(36\) \(35\) \(32\)
Lucile W. \(52\) \(50\) \(43\)

With two scores per kid in Chapter 13, we just subtracted one from the other to create a single difference score. Now each kid has three scores. Simple pairwise subtraction can’t handle the whole set of scores in a single test. But you know what can: ANOVA. We’ll eventually perform post-hoc tests to look at each pairwise comparison in more detail, as we did in Chapter 14, but ANOVA provides the initial omnibus test.

Let’s think about how the independent-samples ANOVA from last chapter would handle this data. It would group them by race type—the columns of Table 15.1—and compare the differences between the three column means with the variability within each column: between groups versus within groups. Eyeballing it, it looks like there’s a lot of variability within each column. Like, check out Clyde G.’s times. Clyde was not messing around—he totally demolished the other kids’ times in every one of his races. So within each column the times are spread over something like twenty seconds, while the column means are just a few seconds apart.

But what if we group the scores in another way: across the table rows instead of down the columns, turning each child’s three times into a group of their own? Clyde’s three times were 36, 35, and 32 seconds. Grouped like that, his scores hardly vary at all. What are the sources of variability when we group scores in these various ways?

Columns and rows

0 of 4
1

Chapter 14’s ANOVA would treat each column of the table as a group. Start with the variability within a group. Look down the first column, at the five children’s times on their first race alone. Which of these could help explain why those five times differ from one another?

Response options

Select all that apply.

Some kids are just faster than others overall

Practice or competition

Chance, like a particularly good or bad run

Answer
  • Some kids are just faster than others overall

  • Chance, like a particularly good or bad run

Explanation

Everyone in a group ran the same race, so practice and competition can’t be the reason, just as in Chapter 14. But these are five different kids, each of whom could have a good or bad run.

2

Now the differences between the groups. The condition means are First alone: 50.20; Second alone: 47.40; Competition: 42.40 seconds. Which of these could help explain why those three means differ from one another?

Response options

Select all that apply.

Some kids are just faster than others overall

Practice or competition

Chance, like a particularly good or bad run

Hint

Clyde’s times count toward all three means. Could he make one of them lower than the others?

Answer
  • Practice or competition

  • Chance, like a particularly good or bad run

Explanation

The same five children are in every group. Clyde pulls all three means down by about the same amount, so the kids’ overall speed can’t make one group’s mean differ from another’s. It’s part of the variability within groups, but not of the differences between them.

3

Now group the scores across the table instead, taking each child’s three times as a group. Each of those groups has a mean too: about 34 seconds for Clyde, and about 52 for Mary. Which of these could help explain why the children’s means differ from one another?

Response options

Select all that apply.

Some kids are just faster than others overall

Practice or competition

Chance, like a particularly good or bad run

Hint

Which races go into Clyde’s mean? Which go into Mary’s?

Answer
  • Some kids are just faster than others overall

  • Chance, like a particularly good or bad run

Explanation

Every child’s mean is made up of the same three races, so practice and competition affect them all alike. The children’s means differ because of their overall speed, plus a bit of chance.

4

Last one. Imagine there were no chance at all: each child has their own overall speed, and each race speeds everyone up or slows everyone down by the same amount. What would we see in the table?

Response options

Every child would have the same three times as every other child

Each child’s three times would be identical

Every child’s times would change by the same amount from one race to the next

Answer

Every child’s times would change by the same amount from one race to the next

Explanation

The children would still sit at different levels, and the races would still differ, but every child’s times would follow the same pattern. The real ones don’t: Stephen sped up by 1 second and then by 7, Bertha by 7 and then by 1. So there’s some variability that neither the kids’ overall speed nor the races account for.

Partitioning variance in related samples

The idea is that the same 15 scores vary for different reasons, depending on how we group them. Clyde’s overall speed adds variability within every condition, but it can’t explain differences between the condition means since he’s in all three. The related-samples ANOVA allows us to separate out that source of variability, without losing the differences we’re interested in.

In Chapter 14 we split the total sum of squares into between-groups and within-groups components. Any treatment effect contributes between groups; chance contributes both between and within groups. But I was glossing over “chance” there. I said it is made up of sampling error and other reasons people’s scores differ. Well, one of those reasons is consistent individual differences between kids. Figure 15.1 labels that separately from the remaining chance.

Figure 15.1: Sources of variability in an independent-samples ANOVA.
Diagram partitioning the total sum of squares into variability between groups, which contains any treatment effect, remaining chance, and individual differences, and variability within groups, which contains remaining chance and individual differences.

With a between-participants design and independent-samples ANOVA, we can only split the total into between-groups and within-groups variability. Individual differences will contribute to within-groups variability (because each group is made up of a bunch of different people), and to between-groups variability (because each group is a different set of participants).

A within-participants design changes this. We still have a bunch of different people within each group, so individual differences contribute to within-groups variability. Clyde G.’s super-speed makes each group substantially more variable. But now the same people appear in every condition. Whatever it is about Clyde that makes him so much faster than the other kids, he brings it with him in all three races; it is consistent across groups. So the design itself eliminates individual differences as a source of variability between groups. The only things that can make the condition means differ are the treatment effect and the remaining chance.

As a result, we have a slight problem. If we used the same denominator for the \(F\) ratio as we did with independent samples, the numerator and denominator would no longer be conceptually balanced. The numerator would represent treatment plus the remaining chance, no individual differences. The denominator would represent the remaining chance plus individual differences. But the good news is that we can mathematically extract those individual differences from the denominator as well, leaving a balanced ratio.

That’s what taking each child’s three times as a group achieves. It allows us to split the within-groups sum of squares into two components: between-people variability, \(SS_{\text{people}}\), and the remaining error, \(SS_{\text{error}}\). Error is the variability that’s left once we know which child and which race a score belongs to. Children might respond a bit differently to practice or competition, or have a particularly good or bad run. Those departures from the average pattern are what Figure 15.2 calls “remaining chance.”

Figure 15.2: Sources of variability in a related-samples ANOVA. Within-groups variability is split into between-people and error components.
Diagram partitioning the total sum of squares into variability between groups, which contains any treatment effect plus remaining chance, and variability within groups, which contains remaining chance and individual differences and is further partitioned into variability between people, which contains individual differences, and error, which contains the remaining chance.

This additional partition gives us a new denominator for the \(F\) ratio. We divide \(SS_{\text{error}}\) by its degrees of freedom to get \(MS_{\text{error}}\). We still use the same numerator, \(MS_{\text{between}}\), but we divide it by \(MS_{\text{error}}\) rather than the full \(MS_{\text{within}}\). Under the null hypothesis, both estimate the same remaining variance. A difference between the population means can make the numerator larger, just as before.

Calculating related-samples ANOVA

Happily, the math is relatively straightforward. But before we get to the new equations, let’s see the process in action using the data from the five kids in Table 15.1. The key is regrouping the scores. The independent samples analysis only grouped them by condition; for the between-people component in Activity 15.1 we’ll group them by participant.

Activity 15.1: Where the individual differences go
Interactive diagram of five children timed in three conditions. The scores regroup into one row per child, each child's scores slide to that child's mean, and the squared deviations fill a people layer at the bottom of the within-groups sum of squares. What remains above it is error, and only the between-groups and error layers are divided by their degrees of freedom.

Here are the five children’s times, grouped by condition. Each child contributes one score to each group. We start with the same calculations as in Chapter 14, so for now the dots are colored by race type rather than by child.

As in Chapter 14, we start with each score’s deviation from the grand mean. Squaring and adding them gives \(SS_{\text{total}}\). Note that the summed squares aren’t drawn to the same scale as the individual deviations and their squares; this is just a visual representation of the logic rather than literally summing the areas.

Measuring deviations from each condition’s own mean gives \(SS_{\text{within}}\). The spread within each group includes individual differences—the fact that some children are generally faster than others. We’ll separate that out in a moment.

The differences between condition means account for \(SS_{\text{between}}\). Because of the within-participants design, the between-groups variability does not include individual differences. That’s a product of the design, not any new math.

Now for the new part. We will use the relatedness of the scores from each kid to separate the individual-differences part of the within-groups variability. We’ll color the dots by child. See the orange dots, all the way to the left of the others? That’s Clyde, smoking the competition and adding variability within groups.

Now we regroup the scores, taking each child’s three times as a group of its own, to make the relatedness more visually obvious. We’re about to do much the same as we did for between-groups variability, but comparing the children’s means instead of condition means.

Now we find each kid’s average across their three scores. If individual differences were the only source of variability—no differences between groups and no other chance error at all—then each kid’s time would be exactly the same in every race. So we imagine that all three of their scores are equal to their own average time.

Now we find the deviation of each child’s mean from the grand mean. Is this looking familiar?

Next we square each deviation. Larger squares represent children whose overall times were farther from the grand mean, whether faster or slower.

And finally we add those squares, counting each one three times to represent the child’s three scores. They add up to \(SS_{\text{people}}\), part of the within-groups variability we already counted. (It has to be in there: the between-groups component doesn’t include individual differences.) Now we’re basically done. There’s a little sliver of unaccounted variability left over. That’s the error component.

To quantify the leftover variability, we shift each kid’s cluster of scores so that each child’s mean aligns with the grand mean. Each child becomes exactly average, without those pesky individual differences pushing them apart. Notice that Clyde doesn’t look exceptional any more. But each kid’s three scores still vary from one another. That variation includes the differences between conditions. To get rid of that as well and leave just the error, we’ll look at how far each adjusted score falls from its condition’s mean.

So now we arrange the adjusted scores back into their original condition groups. The condition means are the same as they were before, but the spread around them is much smaller, because the children’s adjusted times no longer differ in overall speed. We removed those individual differences, but left the remaining chance variability and any treatment effect.

Now we find each adjusted score’s deviation from its condition mean and square it. This removes the treatment effect, so all that’s left is error.

The squares fill the remaining part of \(SS_{\text{within}}\), showing \(SS_{\text{error}}\) itself. We could have obtained the same answer by just subtracting \(SS_{\text{people}}\) from \(SS_{\text{within}}\). Or, put another way, \(SS_{\text{people}} + SS_{\text{error}} = SS_{\text{within}}\).

Let’s put it all together. \(SS_{\text{total}}\) now has three parts: between groups, between people, and error.

For the \(F\) ratio, we take the between-groups and error components. We leave individual differences behind and use only the error component of the within-groups variability as our denominator.

As usual, we divide each sum by its degrees of freedom to get the mean squares. In this case \(df_{\text{between}} = 2\) and \(df_{\text{error}} = 8\); we’ll see where that 8 comes from shortly. Our numerator mean square is much bigger than the new denominator mean square, so our \(F\) ratio will be large.

Sums of squares and degrees of freedom

So here’s how we calculate this modified \(F\) ratio for related-samples data.2

As Activity 15.1 showed, the equations and degrees of freedom for \(SS_{\text{total}}\), \(SS_{\text{between}}\), and \(SS_{\text{within}}\) are the same as in Chapter 14.

\[ \begin{align} SS_{\text{total}} &= \Sigma (X - M_{\text{grand}})^2 \\ SS_{\text{within}} &= \Sigma (X - M_{\text{group}})^2 \\ SS_{\text{between}} &= \Sigma n_{\text{group}}(M_{\text{group}} - M_{\text{grand}})^2 \\ \\ df_{\text{total}} &= N - 1 \\ df_{\text{within}} &= N - k \\ df_{\text{between}} &= k - 1 \end{align} \]

The only difference is that we will now split the within-groups variability into two components: between-people and error. The equation3 for between people has the same form as \(SS_{\text{between}}\), with person means in place of group means:

\[ SS_{\text{people}} = \Sigma k(M_{\text{person}} - M_{\text{grand}})^2 \]

\(M_{\text{person}}\) is the mean of one person’s scores across the conditions. We square each person’s deviation from the grand mean and multiply by \(k\), the number of conditions, since each person’s mean represents \(k\) scores. Then we add them up. Same idea as between groups, just regrouping the scores by person.

The final component, error, is what’s left after taking individual differences out of within-groups variability. It will provide our denominator, and it’s easiest to find by subtraction:

\[ SS_{\text{error}} = SS_{\text{within}} - SS_{\text{people}} \]

Or, as Activity 15.1 showed, we can get the same answer directly, from each score’s deviation from its group mean once that person’s overall deviation from the grand mean has been taken out:

\[ SS_{\text{error}} = \Sigma (X - M_{\text{person}} - M_{\text{group}} + M_{\text{grand}})^2 \]

For each score, subtract that child’s mean and add the grand mean: \(X - M_{\text{person}} + M_{\text{grand}}\). Stephen’s mean is 1.33 seconds above the grand mean, so we subtract 1.33 from each of his times. His three scores move by the same amount, and their differences stay the same. Doing that for each participant removes the consistent differences between them. Then we subtract the group mean from each adjusted score, square, and add them up to get the error sum of squares.

The two new components have degrees of freedom of their own. For \(SS_{\text{people}}\), we computed the deviation of each person’s mean from the grand mean. Here \(n\) is the number of people,4 so that’s \(n\) means, deviating from a single grand mean:

\[ df_{\text{people}} = n - 1 \]

Degrees of freedom are partitioned just like sums of squares, so we can find \(df_{\text{error}}\) by subtraction too:

\[ \begin{aligned} df_{\text{error}} &= df_{\text{within}} - df_{\text{people}} \\ &= (N - k) - (n - 1) \end{aligned} \]

Why subtract \(n - 1\), rather than one for every person? The condition means have already used up \(k\) degrees of freedom, leaving \(N - k\) within groups. Now we’re accounting for how far each person’s mean is from the grand mean. Those deviations must add up to zero, so once we know \(n - 1\) of them, the last is fixed. Accounting for the people component therefore uses another \(n - 1\) degrees of freedom. For our five children and three conditions, that leaves \((15 - 3) - (5 - 1) = 8\) for error.

Since each of the \(n\) people contributes \(k\) scores, \(N = nk\). Substituting that into the equation gives a shorter way to write the same thing:

\[ \begin{aligned} df_{\text{error}} &= (nk - k) - (n - 1) \\ &= (k - 1)(n - 1) \end{aligned} \]

Mean squares and \(F\)

Once we have the sums of squares and degrees of freedom, the rest is easy. We divide each relevant sum of squares by its degrees of freedom to get the mean squares, then take their ratio to get \(F\). The numerator is the same as before; the denominator is now \(MS_{\text{error}}\), rather than \(MS_{\text{within}}\).

\[ \begin{align} MS_{\text{between}} &= \frac{SS_{\text{between}}}{df_{\text{between}}} \\ MS_{\text{error}} &= \frac{SS_{\text{error}}}{df_{\text{error}}} \end{align} \]

\[ F = \frac{MS_{\text{between}}}{MS_{\text{error}}} \]

Interpreting the \(F\) ratio is also the same as with independent samples. A large numerator relative to the denominator is evidence against the null hypothesis.

By the way, with just two conditions, computing both the related-samples \(t\) and related-samples ANOVA gives \(F = t^2\). Just as in Chapter 14, we’re expressing the same evidence in a different way.

Where does it go?

0 of 3
1

In a related-samples study, we take the participant who is already the slowest overall and add 10 seconds to all of their scores. Which of these sums of squares changes?

Response options

The between-groups sum of squares

The between-people sum of squares

The error sum of squares

Hint

Does this person’s pattern across the conditions change, or only their overall level?

Answer

The between-people sum of squares

Explanation

This person’s mean moves farther from the grand mean, so the between-people sum of squares grows. Every condition mean rises by the same amount, so the differences among conditions don’t change. And the person’s scores all move together, so nothing changes about how they respond to the conditions relative to everyone else. A person’s overall level ends up entirely in the between-people component, which is why it can be taken out of the denominator. (The within-groups and total sums of squares grow too, since the between-people component is part of both.)

2

Most participants score about 5 points higher in condition B than in condition A, but one participant scores 5 points lower. Which component does that participant’s unusual response contribute to?

Response options

The between-people sum of squares

The error sum of squares

Neither; it is removed by the related-samples design

Answer

The error sum of squares

Explanation

The related-samples design only removes a person’s overall level. People responding differently to the conditions is left over, and so it ends up in the error component. That’s why “error” here means more than sampling error, strictly defined.

3

Stephen’s time on the first race alone, 51 seconds, is 3 seconds above Stephen’s own average across the three conditions. Which components can that gap contribute to?

Response options

The between-people and error sums of squares

The between-groups and error sums of squares

The between-people and between-groups sums of squares

Hint

The gap compares one child with that same child. Could it say anything about how that child compares with other children?

Answer

The between-groups and error sums of squares

Explanation

The gap is measured from Stephen’s own mean, so Stephen’s overall level is already out of it, and it can’t contribute to the between-people component. The first-alone mean sits 3.53 seconds above the grand mean: the between-groups part. Stephen’s gap is 0.53 seconds smaller than that, so the error part is \(-0.53\) seconds. Careful with the word “within” here: variability within a person and variability within a group are different things. Within a group, different children’s scores vary, so that’s where the people component comes from.

A related-samples ANOVA, step by step

Let’s run through a full related-samples hypothesis test using ANOVA for the five children in Table 15.1. This kind of analysis is often called a one-way repeated-measures ANOVA. (One-way meaning we just have a single independent variable, repeated-measures meaning the same participants are measured in each condition.)

Step 1: State the hypotheses

As always, we start by stating our hypotheses. The null here is that the population mean time is the same in all three conditions:

\[ H_0: \mu_{\text{first alone}} = \mu_{\text{second alone}} = \mu_{\text{competition}} \]

The alternative hypothesis is that at least one condition differs from at least one other.

Step 2: Set the decision criteria

Step two is to determine the critical value for the test, with \(\alpha = .05\). We use the same \(F\) table as in Chapter 14, with the degrees of freedom for our numerator and new denominator:

\[ df_{\text{between}} = k - 1 = 2 \]

\[ df_{\text{error}} = (k - 1)(n - 1) = 2(4) = 8 \]

In Table 15.2, the column for 2 and the row for 8 give a critical \(F\) of 4.46.

Table 15.2: An excerpt of the \(F\) table, with the critical value for \(df = 2\) and \(8\) highlighted.
F table excerpt for numerator df 1 through 4 and denominator df 6 through 12, highlighting the .05 critical value of 4.46 at F(2, 8).

Note that if these 15 scores had come from independent samples, the denominator would have had 12 degrees of freedom and the critical value would have been 3.89. Our lower degrees of freedom mean we need a more extreme \(F\) to reject the null, just as we saw with the related-samples \(t\) test.

Degrees of freedom for the error term

A within-participants study measures 8 people in each of 3 conditions. What are the degrees of freedom for the denominator of the \(F\) ratio?

Hint

Find the degrees of freedom within groups, then take out the degrees of freedom used up by the differences between people.

Answer

14

Explanation

There are \(N = 24\) scores in \(k = 3\) conditions, so \(df_{\text{within}} = 24 - 3 = 21\). With 8 participants, \(df_{\text{people}} = 8 - 1 = 7\). That leaves \(df_{\text{error}} = 21 - 7 = 14\), which is also \((k - 1)(n - 1) = 2 \times 7\). The numerator is unchanged at \(df = 2\), so we’d look up \(F(2, 14)\). An independent-samples ANOVA on 24 scores would have used \(F(2, 21)\).

Check your work

What are the degrees of freedom within groups?

Answer

21

Explanation

\(N - k = 24 - 3 = 21\).

What are the degrees of freedom between people?

Answer

7

Explanation

There are 8 participants, so \(n - 1 = 7\).

Step 3: Collect and analyze the data

Calculating \(F\) by hand is a little labor-intensive, but a summary table helps, as in Chapter 14, with additional rows for between-people and error variability. Table 15.3 collects the equations for each element.

Table 15.3: A related-samples ANOVA summary table, showing each equation.
Source \(SS\) \(df\) \(MS\) \(F\)
Between groups \(\Sigma n_{\text{group}}(M_{\text{group}} - M_{\text{grand}})^2\) \(k - 1\) \(\dfrac{SS_{\text{between}}}{df_{\text{between}}}\) \(\dfrac{MS_{\text{between}}}{MS_{\text{error}}}\)
Within groups \(\Sigma (X - M_{\text{group}})^2\) \(N - k\)
 Between people \(\Sigma k(M_{\text{person}} - M_{\text{grand}})^2\) \(n - 1\)
 Error \(SS_{\text{within}} - SS_{\text{people}}\) \((k - 1)(n - 1)\) \(\dfrac{SS_{\text{error}}}{df_{\text{error}}}\)
Total \(\Sigma (X - M_{\text{grand}})^2\) \(N - 1\)

To save you some trouble, Table 15.4 shows the five children’s times again, with each condition’s mean and sum of squares.

Table 15.4: Times (in seconds) for five children from Triplett’s study. The columns follow the order of their first three trials.
Child First alone Second alone Competition
Stephen M. \(51\) \(50\) \(43\)
Mary W. \(56\) \(53\) \(46\)
Bertha A. \(56\) \(49\) \(48\)
Clyde G. \(36\) \(35\) \(32\)
Lucile W. \(52\) \(50\) \(43\)
\(M\) \(50.20\) \(47.40\) \(42.40\)
\(SS\) \(272.80\) \(201.20\) \(153.20\)

And here are \(n\), \(k\), \(N\), and \(M_{\text{grand}}\) too. Remember that we have five children but 15 scores.

\[ \begin{aligned} N &= 15 \\ n &= 5 \\ k &= 3 \\ M_{\text{grand}} &= 46.67 \end{aligned} \]

(I’ve rounded the values I’m showing to two decimal places, but the calculations use the unrounded values, so you’ll need to do the same if you want your answers to match mine exactly.)

Now for the sums of squares and their degrees of freedom. We’ll start out the same as with independent samples, calculating the total, between groups, and within groups components.

Squaring each score’s deviation from the grand mean and adding them gives the total sum of squares:

\[ SS_{\text{total}} = \Sigma (X - M_{\text{grand}})^2 = 783.33 \]

\[ df_{\text{total}} = N - 1 = 15 - 1 = 14 \]

For within groups, we can just add the three condition sums of squares from Table 15.4:

\[ \begin{aligned} SS_{\text{within}} &= \Sigma (X - M_{\text{group}})^2 \\ &= 272.80 + 201.20 + 153.20 \\ &= 627.20 \end{aligned} \]

\[ df_{\text{within}} = N - k = 15 - 3 = 12 \]

For between groups, we find each condition mean’s deviation from the grand mean, square it, and multiply by the five scores it represents:

\[ \begin{aligned} SS_{\text{between}} &= \Sigma n_{\text{group}}(M_{\text{group}} - M_{\text{grand}})^2 \\ &\approx 5(3.53)^2 + 5(0.73)^2 \\ &\quad {}+ 5(-4.27)^2 \\ &\approx 156.13 \end{aligned} \]

\[ df_{\text{between}} = k - 1 = 3 - 1 = 2 \]

Now for the new component, \(SS_{\text{people}}\). Table 15.5, a little further down, lists each child’s mean under their name, and the People column shows the squared deviation of that mean from the grand mean. Each kid’s three rows get the same value, which is why multiplying the one squared deviation by \(k\) works. For Stephen, for example:

\[ \begin{gathered} k(M_{\text{person}} - M_{\text{grand}})^2 \\ = 3(48.00 - 46.67)^2 \approx 5.33 \end{gathered} \]

Doing the same for each of the other children and adding the five contributions gives:

\[ \begin{aligned} SS_{\text{people}} &= \Sigma k(M_{\text{person}} - M_{\text{grand}})^2 \\ &\approx 5.33 + 75.00 + 56.33 \\ &\quad {}+ 456.33 + 8.33 \\ &\approx 601.33 \end{aligned} \]

\[ df_{\text{people}} = n - 1 = 5 - 1 = 4 \]

Then we can find \(SS_{\text{error}}\) by subtracting \(SS_{\text{people}}\) from \(SS_{\text{within}}\):

\[ \begin{aligned} SS_{\text{error}} &= SS_{\text{within}} - SS_{\text{people}} \\ &\approx 627.20 - 601.33 \\ &\approx 25.87 \end{aligned} \]

\[ \begin{aligned} df_{\text{error}} &= df_{\text{within}} - df_{\text{people}} \\ &= 12 - 4 = 8 \end{aligned} \]

But let’s also see how the error component builds up from the individual scores, starting with one of Stephen’s. Remember Stephen’s adjusted first-alone time was 49.67 seconds. The first-alone mean stayed at 50.20. So his adjusted score is \(49.67 - 50.20 = -0.53\) seconds from that condition’s mean. Squaring that deviation gives about 0.28. Table 15.5 shows both the people squares and these error squares for every score.

Table 15.5: Each child’s three scores, with the two new squared deviations. Values are rounded; the sums use unrounded values.
Child Condition Score, \(X\) People: \((M_{\text{person}}-M_{\text{grand}})^2\) Error: \((X-M_{\text{person}}-M_{\text{group}}+M_{\text{grand}})^2\)
Stephen M. First alone \(51\) \(1.33^2=1.78\) \((-0.53)^2=0.28\)
Second alone \(50\) \(1.33^2=1.78\) \(1.27^2=1.60\)
Competition \(43\) \(1.33^2=1.78\) \((-0.73)^2=0.54\)
\(M_{\text{person}}=48.00\)
Mary W. First alone \(56\) \(5.00^2=25.00\) \(0.80^2=0.64\)
Second alone \(53\) \(5.00^2=25.00\) \(0.60^2=0.36\)
Competition \(46\) \(5.00^2=25.00\) \((-1.40)^2=1.96\)
\(M_{\text{person}}=51.67\)
Bertha A. First alone \(56\) \(4.33^2=18.78\) \(1.47^2=2.15\)
Second alone \(49\) \(4.33^2=18.78\) \((-2.73)^2=7.47\)
Competition \(48\) \(4.33^2=18.78\) \(1.27^2=1.60\)
\(M_{\text{person}}=51.00\)
Clyde G. First alone \(36\) \((-12.33)^2=152.11\) \((-1.87)^2=3.48\)
Second alone \(35\) \((-12.33)^2=152.11\) \((-0.07)^2=0.00\)
Competition \(32\) \((-12.33)^2=152.11\) \(1.93^2=3.74\)
\(M_{\text{person}}=34.33\)
Lucile W. First alone \(52\) \(1.67^2=2.78\) \(0.13^2=0.02\)
Second alone \(50\) \(1.67^2=2.78\) \(0.93^2=0.87\)
Competition \(43\) \(1.67^2=2.78\) \((-1.07)^2=1.14\)
\(M_{\text{person}}=48.33\)
Sum of squares \(SS_{\text{people}}=601.33\) \(SS_{\text{error}}=25.87\)

With all the sums of squares and degrees of freedom in hand, we can get the two mean squares:

\[ \begin{align} MS_{\text{between}} &= \frac{SS_{\text{between}}}{df_{\text{between}}} = \frac{156.13}{2} = 78.07 \\ MS_{\text{error}} &= \frac{SS_{\text{error}}}{df_{\text{error}}} = \frac{25.87}{8} = 3.23 \end{align} \]

Finally, we divide the between-groups mean square by the error mean square:

\[ F = \frac{MS_{\text{between}}}{MS_{\text{error}}} = \frac{78.07}{3.23} \approx 24.14 \]

And here’s the completed summary table:

Table 15.6: Completed related-samples ANOVA summary table for the competition example.
Source \(SS\) \(df\) \(MS\) \(F\)
Between groups \(156.13\) \(2\) \(78.07\) \(24.14\)
Within groups \(627.20\) \(12\)
 Between people \(601.33\) \(4\)
 Error \(25.87\) \(8\) \(3.23\)
Total \(783.33\) \(14\)

Step 4: Make a decision

So now we compare our \(F\) ratio to the critical value. Our \(F\) of \(24.14\) is well beyond \(4.46\), so we reject the null hypothesis. There is a significant difference among our three conditions. The corresponding \(p\)-value is about \(.0004\), so \(p\) is less than \(\alpha\).

Figure 15.3: The observed \(F = 24.14\) falls beyond the critical value of the null \(F\) distribution with \(df = 2\) and \(8\).
Null F distribution with 2 and 8 degrees of freedom. The rejection region lies above 4.46; the observed F of 24.14 is far into the rejection region.

Practice a related-samples ANOVA

0 of 4
1

At the end of Chapter 14 you analyzed a memory study: 18 people studied in silence, with music, or with conversation in the background, with \(SS_{\text{total}} = 240\), \(SS_{\text{between}} = 90\), and \(SS_{\text{within}} = 150\). That gave \(F(2, 15) = 4.50\). Now suppose the same 18 scores had come from 6 people who each did all three conditions, and that the differences between those people account for \(SS_{\text{people}} = 100\). Calculate the related-samples \(F\).

Hint 1

Take the between-people component out of \(SS_{\text{within}}\) to find \(SS_{\text{error}}\).

Hint 2

The numerator hasn’t changed. For the denominator, use \(df_{\text{error}} = (k - 1)(n - 1)\).

Answer

9

Explanation

\(SS_{\text{error}} = 150 - 100 = 50\) and \(df_{\text{error}} = (3 - 1)(6 - 1) = 10\), so \(MS_{\text{error}} = 5\). The numerator is still \(MS_{\text{between}} = 90/2 = 45\). So \(F(2, 10) = 45/5 = 9.00\).

Check your work

What is the error sum of squares?

Answer

50

Explanation

\(150 - 100 = 50\).

What are the degrees of freedom for the error term?

Answer

10

Explanation

\((k - 1)(n - 1) = 2 \times 5 = 10\).

What is the error mean square?

Answer

5

Explanation

\(50/10 = 5\).

2

The critical value was 3.68 for \(F(2, 15)\) and is 4.10 for \(F(2, 10)\). What changed between the two analyses, and what stayed the same? Why did \(F\) double even though the critical value got larger?

Example answer

The scores, the condition means, and so the numerator stayed the same. The denominator dropped from \(MS_{\text{within}} = 10\) to \(MS_{\text{error}} = 5\), because the differences between people came out of it. We paid for that with fewer degrees of freedom, so the critical value rose, but here the smaller denominator more than made up for it. The design determines which analysis is appropriate; these are not two options to choose between for the same study.

3

This time you’ll find \(SS_{\text{people}}\) yourself. Four people each proofread a page with loud, moderate, and quiet background noise, in a counterbalanced order. (These numbers are made up.) Here are their errors.

Person Loud Moderate Quiet
1 9 7 5
2 13 10 7
3 6 5 4
4 8 6 4
\(M\) 9 7 5

The grand mean is 7. Calculate \(SS_{\text{people}}\).

Hint 1

Average each row to find that person’s mean.

Hint 2

Square each person’s deviation from the grand mean, add them up, and multiply by \(k\), since each person’s mean stands for three scores.

Answer

42

Explanation

The person means are 7, 10, 5, and 6, so the deviations from the grand mean are 0, 3, \(-2\), and \(-1\). Their squares add up to \(0 + 9 + 4 + 1 = 14\). Each mean stands for \(k = 3\) scores, so \(SS_{\text{people}} = 3 \times 14 = 42\).

Check your work

What is the mean for person 2?

Answer

10

Explanation

\((13 + 10 + 7)/3 = 10\).

What is the sum of the squared deviations, before multiplying by \(k\)?

Answer

14

Explanation

\(0^2 + 3^2 + (-2)^2 + (-1)^2 = 14\).

4

For the same data, \(SS_{\text{between}} = 32\) and \(SS_{\text{within}} = 46\). Calculate the related-samples \(F\), keeping the mean squares unrounded until the final answer.

Hint 1

Take your \(SS_{\text{people}}\) out of \(SS_{\text{within}}\) to find \(SS_{\text{error}}\).

Hint 2

For the denominator, \(df_{\text{error}} = (k - 1)(n - 1)\).

Answer

24

Explanation

\(SS_{\text{error}} = 46 - 42 = 4\) and \(df_{\text{error}} = (3 - 1)(4 - 1) = 6\), so \(MS_{\text{error}} = 4/6 \approx 0.67\). The numerator is \(MS_{\text{between}} = 32/2 = 16\). So \(F(2, 6) = 16/(4/6) = 24\).

Step 5: Estimate the effect, compare the conditions, and consider power

Effect size: partial \(\eta^2\)

In Chapter 14 we used \(\eta^2\), the between-groups sum of squares as a proportion of the total. If you picture all the variability in the data as one big bucket, full to the brim, \(\eta^2\) gave the proportion filled by between-groups variability.

For related-samples ANOVA, we use partial eta squared, \(\eta^2_p\). We take our full bucket and dump out \(SS_{\text{people}}\) first, leaving only the between-groups and error components. Then we ask what proportion of the new total is between groups.

More mathematically, the remaining total is \(SS_{\text{between}} + SS_{\text{error}}\). That’s the same as \(SS_{\text{total}} - SS_{\text{people}}\). So:

\[\eta^2_p = \frac{SS_{\text{between}}}{SS_{\text{between}} + SS_{\text{error}}} = \frac{156.13}{156.13 + 25.87} = .86\]

So about 86% of that remaining variability, after accounting for individual differences, is attributable to the difference between the race conditions.

If we had used the ordinary \(\eta^2\), it would have come to \(.20\). The partial \(\eta^2_p\) gives a much bigger answer, because its denominator was so much smaller with \(SS_{\text{people}}\) removed. How different the answers will be depends on how much of the variability in the data comes from individual differences. If our five kids had all been about as quick as one another, \(SS_{\text{people}}\) would have been much smaller, and ordinary \(\eta^2\) much bigger, even with exactly the same average difference between conditions.5

Post-hoc tests

As you know, the ANOVA is an omnibus test: it tells us the population means aren’t all equal, but not which ones differ. You’ll also recall that Tukey’s HSD is one kind of post-hoc test. It gives us the minimum difference between means that counts as significant, while controlling the chance of at least one Type I error across all the pairwise comparisons. We can use the same approach here, adjusted for the related-samples design.

In Chapter 14, we used \(MS_{\text{within}}\) as part of computing Tukey’s HSD, since it was the representation of chance variability used in the denominator of the \(F\) ratio. Here we use \(MS_{\text{error}}\), because we’ve set aside differences in the children’s overall speed. It’s the same adjustment we made for the \(F\) ratio. We also use the error degrees of freedom when looking up the critical \(q\).

In Table 15.7, find the column for three conditions and the row for \(df_{\text{error}} = 8\). Their intersection gives the critical studentized range value, \(q = 4.04\), for \(\alpha = .05\).

Table 15.7: Critical values of \(q\) for \(\alpha = .05\). The column gives the number of conditions; the row gives the error degrees of freedom.
Studentized range critical values at alpha .05 for 2 through 6 conditions and error df 4 through 10. The highlighted cell for 3 conditions and 8 error degrees of freedom is q = 4.04.

And \(n = 5\), the number of scores in each condition:

\[HSD = q \sqrt{\frac{MS_{\text{error}}}{n}} = 4.04 \sqrt{\frac{3.23}{5}} \approx 3.25\]

So a difference between means greater than 3.25 seconds is significant at the \(.05\) level. For our data:

Comparison Absolute difference Exceeds 3.25 seconds?
First alone vs. second alone 2.80 seconds No
Second alone vs. competition 5.00 seconds Yes
First alone vs. competition 7.80 seconds Yes

The two gaps involving competition exceed the HSD, but the gap between the solo trials doesn’t. The children improved by an average of 2.80 seconds before competing, and by another 5.00 seconds when competition began.

Statistical power

As before, statistical power is the probability of detecting a difference among the population means when there really is one. Accounting for individual differences can help with the test’s power; when they play a big role, as they did in our data, removing them makes for a more powerful test. But a related-samples design doesn’t automatically give us more power. The advantage depends on how much the scores go together across conditions.

Think about Clyde again. He was faster than the other kids in every race, so separating out differences in overall speed removes a lot of that within-groups variability. That can give us a smaller denominator than we’d get by treating the same scores as independent. (Analyzed as independent samples, these 15 scores give just \(F(2, 12) = 1.49\), nowhere near the critical 3.89.) But separating out the people component also costs degrees of freedom, which raises the critical \(F\). The reduction in error needs to be enough to compensate. If people’s scores in the different conditions weren’t related, we’d generally end up with a similar error mean square to the independent-samples analysis, but fewer degrees of freedom and less power. As in Chapter 13, the design tells us which analysis to use; we don’t try both and keep whichever gives the result we prefer.

Statistical software can calculate power for a related-samples ANOVA, or work backwards to estimate how many participants we’d need for a target such as 80% power. I don’t want to get into the math, but generally speaking, we specify differences worth detecting, estimate the variability and how strongly scores go together across conditions, and choose an alpha level. Then software runs the numbers and tells us how many participants to recruit to achieve the desired power.

Reporting and interpreting results

So finally, we’re ready to report the results. As usual, the report needs descriptives for each condition; a statement of what test was performed and whether it was significant; the test statistic itself with degrees of freedom; \(p\) compared to \(\alpha\); and effect size. And here we summarize which post-hoc comparisons were significant and which weren’t.

A single-factor, related-samples ANOVA revealed a significant difference among children’s times on their first race alone (\(M = 50.20\), \(SD = 8.26\) seconds), a second race alone (\(M = 47.40\), \(SD = 7.09\) seconds), and a race in competition (\(M = 42.40\), \(SD = 6.19\) seconds); \(F(2, 8) = 24.14\), \(p < .001\), \(\eta^2_p = .86\). Tukey HSD comparisons indicated that children were significantly faster in competition than on either solo trial. The two solo trials did not differ significantly.

What kind of graph would work best to visualize results like these? A simple bar graph showing condition means with confidence intervals wouldn’t convey the relatedness of the scores. Really we’re interested in how consistently each child’s time changed across the conditions, rather than treating the conditions as independent.

Figure 15.4 emphasizes that. Each colored line follows one child across the races. Every line falls at both steps, even though the children start at quite different levels. Lower times mean faster performances. But the graph leaves out confidence intervals, so the statistical results still need to accompany it.

Figure 15.4: Times for each child, with a bold dashed line showing the average in each condition.
One line per child across the three conditions. Every line falls at each step. The bold dashed average line falls from 50.20 to 47.40 to 42.40 seconds.

Interpreting the results

How might we interpret the results of our ANOVA and post-hoc tests? At the start of the chapter, I framed the second solo race as a way of teasing apart practice and competition. Do the findings support the idea that competition leads to greater improvement than practice alone? Well, our analysis is suggestive. A nonsignificant solo-to-solo comparison doesn’t mean practice had no effect. Maybe it was just too small to reliably detect with five children. But the significant improvement in the competition race compared to either solo race fits the idea that a rival helped the children speed up.

Being critical, though, we can pick holes in the design. A significant change after a nonsignificant one doesn’t establish that the two changes differ from one another. The question I posed was whether the competition race brought more improvement than practice alone would. That’s a comparison between the two changes—the 2.80-second drop and the 5.00-second drop—and neither the ANOVA nor Tukey’s test looks at the difference in differences. (There are ways of testing that comparison directly, though it’s beyond what we’re covering here. With these five kids it wouldn’t come close to significance.)

There’s also the order problem. Competition always came third for these kids, so we don’t know how fast they would have gone on a third trial alone. The repeated practice of the solo races could explain some or all of the improvement we attributed to competition.

So what would a better study look like? First, we’d want to vary the order properly. Triplett went partway there. His two groups of children followed different sequences, but both started with a solo race, so competition never came first. Ideally some kids would compete first, some second, and some third, so that practice was spread evenly across the conditions rather than piling up in one of them.

But that brings a problem of its own: a competition race might itself affect a later solo race. Triplett noted that the faster performance some children showed in competition endured into their later alone races, as if the rival unlocked some hidden potential that didn’t go away when the competition was over (Triplett, 1898). So we might also want more solo races, to map out how much kids improve with practice alone, or a separate group of kids who never compete at all, for comparison. And of course we’d want a lot more than five kids (who I deliberately cherry-picked to make a nice teaching example). Every design decision has strengths and weaknesses, and part of interpreting results is being clear about which explanations are supported or ruled out by the design.

Assumptions

The same sort of considerations apply to ANOVA with related samples as in Chapter 14 where we used ANOVA with independent samples, with some slight tweaks to accommodate the relatedness of the scores.

First, there’s the assumption of independence. This now applies only between people, not between conditions. We expect scores from the same child to be related across the different conditions, but different children’s responses should be independent of one another.

There is an assumption of normality, but it applies specifically to the error variability—the deviations we saw in the Error steps of Activity 15.1. Those were the deviations left over once differences between people and between conditions were set aside. We don’t need scores within each condition to be normally distributed because the analysis removes the between-people variability. Clyde’s super-speed skewed the distributions of scores within each condition, but the adjusted-score error deviations were more normal-looking.

Lastly, remember Chapter 14’s homogeneity of variance assumption: we needed comparable variability across groups. Here we have a similar requirement, but it applies to the difference scores for every pair of conditions, rather than to the scores within each condition. The requirement is called sphericity: the population variances of those difference scores should be the same. (This wasn’t an issue with the related-samples \(t\) test because with only two conditions, there’s just one set of difference scores, so no different variabilities to compare.)

Figure 15.5: An illustrative diagram representing the sphericity assumption. Dots represent the conditions, and dashed lines the difference scores between each pair. Sphericity means that the variability of the sets of difference scores should be roughly equal.
Sphericity Three dots, one for each condition (first alone, second alone, and competition), sit in a triangle on a circle. The circle is split into three dashed arcs, one between each pair of conditions. Each arc is labeled with the variance of the difference scores for that pair, and all three arcs are drawn identically to show that the three variances are equal. First alone Second alone Competition
\(\sigma^2_{\text{first} - \text{second}}\)
\(\sigma^2_{\text{second} - \text{competition}}\)
\(\sigma^2_{\text{first} - \text{competition}}\)

Imagine that kids generally improved by a few seconds from their first solo race to their second, some kids a bit more, some a bit less, but generally in that ballpark. But suppose competition helped some children a lot and hindered others. The alone-to-competition difference scores would be much more variable than the alone-alone differences. A single pooled estimate of all that variability wouldn’t represent both kinds of change equally well. The average changes can differ—a bigger improvement from the second solo race to competition than from the first solo race to the second, for example. It’s the spread around those averages that needs to be about the same from one pair of conditions to another.

Statistical software can check whether the variances of the difference scores are too different. We don’t need to get into the specifics here, but if you see the name “Mauchly’s test” in your output, it is one common check. Software will often also report a correction such as “Greenhouse–Geisser,” which reduces the degrees of freedom, increasing the critical \(F\) required to reject the null. Post-hoc tests using Tukey’s HSD are also sensitive to sphericity, because they rely on the single pooled \(MS_{\text{error}}\). If sphericity is questionable, a common alternative is to compare each pair of conditions with its own related-samples \(t\) test, using only that pair’s difference scores, with a stricter \(\alpha\) to make up for running several tests.

For our five-kid dataset, software would tell you that sphericity is acceptable, but with so few scores, changing one value or adding one more child could easily change that. As usual, the more data we have, the more reliable not only the estimates of means and stuff become, but also our assessment of the extent to which assumptions like this are met or violated.

Learning Checks

0 of 8
1

A related-samples ANOVA removes stable differences between people from the denominator of the \(F\) ratio.

Response options

True

False

Answer

True

Explanation

Those differences are counted separately, in the between-people component, and left out of \(MS_{\text{error}}\). They were never a source of differences between groups, because the same people are in every condition.

2

Suppose people’s scores in the different conditions were unrelated: knowing how someone did in one condition told you nothing about the others. Compared with an independent-samples ANOVA on the same numbers, what would we generally expect from the related-samples ANOVA’s statistical power?

Response options

Greater power

Less power

About the same power

Hint

Accounting for people costs degrees of freedom. What needs to happen to the error mean square to make that worthwhile?

Answer

Less power

Explanation

Without scores going together, taking out the people sum of squares and its degrees of freedom generally leaves \(MS_{\text{error}}\) about the same as \(MS_{\text{within}}\). But the lower degrees of freedom raise the critical value, reducing power. The advantage depends on reducing the error mean square enough to compensate. The study design still determines which analysis is appropriate.

3

Twelve people are measured in two conditions. A related-samples \(t\) test gives \(t(11) = -2.50\). If you ran a related-samples ANOVA on the same scores, what would \(F\) be?

Answer

6.25

Explanation

With two conditions, \(F = t^2 = (-2.50)^2 = 6.25\), with 1 and 11 degrees of freedom. It’s the same result expressed two ways, with the same \(p\)-value, so it isn’t a second piece of evidence. Squaring loses the sign, so \(F\) doesn’t tell us which condition was higher.

4

For the related-samples version of the memory study, \(SS_{\text{total}} = 240\), \(SS_{\text{between}} = 90\), \(SS_{\text{people}} = 100\), and \(SS_{\text{error}} = 50\). Calculate partial eta squared.

Hint

Leave the between-people component out of the denominator.

Answer

0.64

Explanation

\(\eta^2_p = 90/(90 + 50) = .64\), which is the same as \(90/(240 - 100)\). Ordinary eta squared would be \(90/240 = .375\). The partial version asks about the share of the variability that’s left once differences between people are set aside.

5

For the related-samples memory study, there are three conditions and six people, with \(MS_{\text{error}} = 5\) and \(df_{\text{error}} = 10\). The critical \(q\) for \(\alpha = .05\) is 3.88. Calculate Tukey’s HSD.

Hint

Use \(HSD = q\sqrt{MS_{\text{error}}/n}\). Here \(n\) is the number of scores in each condition, not the total number of scores.

Answer

3.54

Explanation

\(HSD = 3.88\sqrt{5/6} \approx 3.54\) points. Only differences between condition means greater than about 3.54 points would be significant at the .05 level, with the three pairwise comparisons accounted for. We use the error mean square after setting aside differences between people, just as we did for the related-samples \(F\) ratio.

6

People’s moods are measured before a course of therapy, halfway through, and at the end. A related-samples ANOVA is significant. Tukey’s test finds that the change from before to halfway is not significant, but the change from halfway to the end is. Which conclusion do the tests support?

Response options

The first half of the therapy had no effect on mood

Mood changed more in the second half of the therapy than in the first

Mean mood at the end differed from mean mood at halfway

Hint

Think about what we could and couldn’t say about the children’s two solo races and their competition race.

Answer

Mean mood at the end differed from mean mood at halfway

Explanation

A nonsignificant difference isn’t proof of no change; the first half might have helped a little, like the kids’ practice. And a significant change after a nonsignificant one doesn’t show that the two changes differ from each other. That would take a test comparing the changes directly, which neither the ANOVA nor Tukey’s test does. All we can say is which pairs of means differed significantly.

7

In a three-condition repeated-measures study, the scores in each condition have similar variances. The variances of the pairwise difference scores, however, are 2, 20, and 25. Which assumption should we be concerned about?

Response options

Sphericity

Normality

Independence between participants

Answer

Sphericity

Explanation

Sphericity concerns the population variances of the pairwise differences. Similar variances within the individual conditions don’t establish it. The very different sample difference variances give us reason to be concerned; these numbers alone don’t tell us about normality or independence. A correction such as Greenhouse–Geisser adjusts the omnibus test’s degrees of freedom and \(p\)-value, leaving \(F\) unchanged.

8

A researcher tests the same 20 people on a driving simulator three times: sober, after one drink, and after three drinks, always in that order. A related-samples ANOVA is significant. What can’t the researcher conclude, and what would you change about the study?

Hint

Think about what else differs between the first test and the last, and about what Chapter 13 suggested doing about it.

Example answer

The conditions are confounded with order, so practice or fatigue could explain the differences as well as alcohol. The researcher can’t conclude that the drinks caused the change. Counterbalancing the order across participants, on separate days, would help. The omnibus test also doesn’t say which conditions differ, so post-hoc tests would be needed.

Triplett, N. (1898). The dynamogenic factors in pacemaking and competition. The American Journal of Psychology, 9(4), 507–533. https://doi.org/10.2307/1412188

  1. It’s a different set of kids from the one in Chapter 13. As before, to make a useful teaching example, I cherry-picked children who raced in this order from the group Triplett classified as “stimulated positively” by competition, and rounded their times to whole seconds. This isn’t a full reanalysis of Triplett’s data. Also, the third race still benefits from the practice of the first two, so it’s not a perfect way to isolate the effect of competition. But it does offer more information, and it lets me illustrate the related-samples ANOVA.↩︎

  2. These formulas assume no missing data: each person contributes one score in every condition.↩︎

  3. As in Chapter 14, there’s also a computational version of this formula. It uses \(P\), a participant total (the sum of the scores for one person), and \(G\), the grand total.

    \[ SS_{\text{people}} = \Sigma \frac{P^2}{k} - \frac{G^2}{N} \]

    We’ll stick with the definitional formula here too.↩︎

  4. In a matched-subjects design, we do the same calculation with matched sets in place of people. Each set contributes one score per condition, and \(n\) counts sets. Other books may call the between-people component “between subjects” or “between participants.”↩︎

  5. I only note the comparison between \(\eta^2\) and \(\eta^2_p\) for this data as a mathematical point about their different denominators. In terms of interpreting effect size, the two measures are not directly comparable. It would not be a fair comparison to say that our social facilitation effect here, with \(\eta^2_p = .86\), is stronger than the radioactive spider bite effect in Chapter 14, with \(\eta^2 = .65\).↩︎

14  ANOVA
16  Factorial ANOVA