Statistics From Scratch by Rob Brotherton

16  Factorial 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

  • Social facilitation or social impairment
  • Factorial designs
    • Main effects, marginal means, and interactions
    • Partitioning variance in factorial designs
    • Sums of squares and degrees of freedom
    • The interaction
  • Factorial ANOVA in context
  • A factorial 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 and follow up
  • Reporting and interpreting results
    • Reporting results
    • Interpreting interaction graphs
    • Social facilitation
    • Assumptions

16  Factorial ANOVA

Four shaded normal curves in two alternating colors grow together, then separate.

Here, we’ll introduce the last variant of ANOVA that we’ll deal with: the factorial ANOVA, meaning ANOVA used with research designs that have more than one independent variable. This enables us to see not just the effect of a single variable, but how two variables interact. It’s slightly more complicated, both conceptually and mathematically, but it’s based on the same idea of partitioning variance that we’ve used in the previous two chapters.

Social facilitation or social impairment

We’ve talked about social facilitation in the context of Norman Triplett’s little flag racing machine. In Chapter 13 we met his “Competition Machine,” on which children turned a handle to race a little flag around a track, either by themselves or with a rival. I told you Triplett categorized some children as “stimulated positively” by competition—faster against a rival than alone. (I picked the data we analyzed in Chapters 13 and 15 from that group.) But other kids, Triplett noted, were “stimulated adversely.” They performed worse against the rival, becoming too amped up to perform well. I glossed over that before, but it’s worth grappling with. Why might some kids have been helped by the social element, while others were hindered?

Psychologist Robert Zajonc suggested an answer decades later, by expanding social facilitation theory to allow for both facilitation and impairment, depending on the nature of the task (Zajonc, 1965). His idea was that the audience might increase physiological arousal, getting you a bit amped up, just as Triplett noticed, and that being amped up makes us more likely to do whatever comes most naturally. Zajonc called this the dominant response. Whether that helps or hinders depends on the task. When a task is easy or well practiced, the dominant response is generally the right one, so an audience can improve performance. When the task is difficult or unfamiliar, the dominant response is often wrong, and the social pressure gets in the way. That might be what happened with Triplett’s kids: maybe cranking the handle came naturally to some of them, while others were still getting the hang of it.

With this in mind, imagine we set up an experiment in which we recruit some kids, like Triplett’s racers, but this time they’re given a printed maze—the kind that you find in kids’ activity books—and asked to draw a path to the exit as quickly as they can.

Figure 16.1: Two mazes. The optimal solutions are the same length, but in the easy maze that solution is found by always choosing to go to the right. In the hard maze, that obvious choice often leads into a dead end, and you have to double back.
Easy maze (select to replay) The easy maze. The entrance is in the middle of the left side and the exit is straight across on the right. The route has 8 places where it forks. At every fork, the wrong way leads left or away from the exit, so heading toward the exit is always right. A red marker line traces the route straight through. Start Finish Easy
Hard maze (select to replay) The hard maze. The entrance is in the middle of the left side and the exit is straight across on the right. The route has 8 places where it forks. The route is the same length as the easy one, but at 6 of the forks the way that heads toward the exit is a short dead end, and the real route turns up, down or back. A red marker line traces the route at the same speed, but it goes into each of those dead ends and backs out, so it takes longer to finish. Start Finish Hard

What makes a maze easy or difficult? Since the exit is on the right, the obvious thing to do at each choice point is to head toward it, turning right every time you can, and up or down as needed. That’s the dominant response. In the easy maze, it leads most directly to the exit. In the hard one, it doesn’t—you have to look ahead and overcome the urge to do the obvious thing. If Zajonc was right, having an audience should make kids more inclined to do the obvious thing, which will be good for performance on the easy maze, bad on the hard one.

So part of our study’s design is to randomly assign each kid an easy or a hard maze. But we also randomly assign them to complete their maze alone, or watched by an audience. This should allow us to test not just whether the presence of an audience affects performance, but whether the audience has a different effect depending on the difficulty of the task.

Here’s a small sample of invented data for each condition.

Table 16.1: Times (in seconds) to finish the maze for the 2×2 maze by audience design.
Maze
Easy Hard
Audience Alone 37, 31, 42, 34 41, 34, 45, 40
Watched 28, 32, 21, 31 53, 61, 50, 60

How does this new, more complicated design change how we analyze the data, and the conclusions we can draw? We turn once again to the logic of ANOVA, and partitioning variance. But unlike the previous chapter, where we divided the variability within groups into different components, this time we need to chop up the variability coming from the potential effects of the different factors.

Factorial designs

To refresh your memory of the terminology that goes with the ANOVA procedure, a factor defines the different groups being compared, usually an independent variable that the researcher manipulates either between or within participants. The levels are the individual conditions that make up a factor.

A factorial design, then, is one with more than one factor, each factor with two or more levels, with every combination of those levels represented. For our purposes, we’re only going to look at one kind of factorial design: the 2×2 (“two-by-two”) between-participants ANOVA, which has two between-participants factors, each with two levels. Designs can have more factors or levels, and can use within-participants factors or a mix of between- and within-participants factors (called a mixed-factorial design), but the basic logic remains the same.

Main effects, marginal means, and interactions

With a two-by-two design, we end up with four individual groups, one for each combination of the levels of each factor.1 So generically, let’s say we have Factor A and Factor B. If we arrange them in a table, you can see the four conditions this creates.

Table 16.2: The four conditions of a generic 2×2 factorial design, with the marginal means for each factor in the last row and column, and the grand mean in the corner.
Factor A
\(A_1\) \(A_2\) Marginal mean
Factor B \(B_1\) \(A_1 B_1\) \(A_2 B_1\) \(M_{B_1}\)
\(B_2\) \(A_1 B_2\) \(A_2 B_2\) \(M_{B_2}\)
Marginal mean \(M_{A_1}\) \(M_{A_2}\) \(M_{\text{grand}}\)

The extra row and column in Table 16.2 contain the marginal means: the mean of everyone at one level of a factor, ignoring the other factor. \(M_{A_1}\) is the mean of all the scores in the \(A_1\) column; \(M_{B_1}\) is the mean of all the scores in the \(B_1\) row. In the corner is the grand mean: the mean of every score, all put together in a single big group, as we have done before.

When it comes to the hypothesis test for a factorial design, we’ll actually run several hypothesis tests. For this 2×2 design we’ll have three separate tests.

First, there are the main effects, one per factor. The main effect of Factor A asks whether there is an overall difference between the levels of Factor A, ignoring the levels of Factor B. We just pool everyone together depending on which level of Factor A they were in, regardless of their level of Factor B. In other words, we compare the marginal means for Factor A. The main effect of Factor B is the same idea, comparing its marginal means while ignoring Factor A.

We’re also interested in the interaction between factors A and B. This is a major reason for using a design like this, instead of just two separate studies to look at Factors A and B in isolation. We want to know if Factor A and Factor B interact—that is, if the effect of one factor depends on the level of the other.

Our social facilitation idea predicts just such an interaction: being watched should help on the easy maze but hinder performance on the hard maze. In other words, the effect of the audience depends on the difficulty of the maze.

The interaction can be the most difficult part of this analysis to really grasp. There are different patterns of results that can reflect an interaction. We’ll come back to those after we run through the calculations and see the results, so we can talk it through more concretely.

Partitioning variance in factorial designs

The factorial ANOVA achieves all this the same way as the other ANOVAs we’ve seen, by partitioning variability in the data.

It starts out the same as every other ANOVA. We separate the total variability into variability between groups and variability within groups, each measured by its sum of squares. (Here each cell of the table is a group, so our 2×2 design has four individual groups.)

In Chapter 14, that was all the partitioning we could do. In Chapter 15, with related samples, we were able to divide up the variability within groups. Now, assuming we’re just using between-participants factors, we leave the variance within groups alone and divide up the variability between groups instead. The four group means might differ because of Factor A, because of Factor B, or because of the interaction between the two. By partitioning the treatment effects, we can test each of those components separately.

Figure 16.2
Diagram partitioning the total sum of squares into variability between groups, which contains treatment effects and chance, and variability within groups, which contains chance. The between-groups variability is further partitioned into Factor A, Factor B, and the A-by-B interaction, each containing its own main effect or interaction plus chance.

As before, the degrees of freedom partition just like the sums of squares. Dividing a \(SS\) value by its respective \(df\) gives a mean square. Eventually, each of the main effects and the interaction gets its own \(F\) ratio. Each has its own numerator, and all use the same denominator: the mean square within groups, our estimate of chance variability.

\[ \begin{aligned} F_A &= \frac{MS_A}{MS_{\text{within}}} \\[1.5ex] F_B &= \frac{MS_B}{MS_{\text{within}}} \\[1.5ex] F_{A \times B} &= \frac{MS_{A \times B}}{MS_{\text{within}}} \end{aligned} \]

Sums of squares and degrees of freedom

Arriving at those \(F\) ratios involves the same basic process as before. We start with between and within groups \(SS\) and \(df\). The equations are exactly the same as in Chapter 14. Remember that the design tells us the number of individual groups. For example, with a 2×2 design \(k = 4\).

\[ \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 \end{align} \]

\[ \begin{align} df_{\text{total}} &= N - 1 \\ df_{\text{within}} &= N - k \\ df_{\text{between}} &= k - 1 \end{align} \]

The new equations here are for the three pieces of the between-groups variability: the main effects and the interaction.2 Each main effect comes from regrouping the scores by one factor, ignoring the other.

Here \(M_A\) stands for each marginal mean for Factor A in turn, from the bottom margin of Table 16.2. We square each one’s deviation from the grand mean, multiply by \(n_A\), the number of scores at that level rather than in a single cell, and add those up. The same logic applies to Factor B, using the marginal means from the right-hand margin.

\[ \begin{align} SS_A &= \Sigma n_A(M_A - M_{\text{grand}})^2 \\ SS_B &= \Sigma n_B(M_B - M_{\text{grand}})^2 \end{align} \]

Notice that this is basically the same equation as for \(SS_{\text{between}}\), just with a different subscript. The only difference is that the means represent different groupings of scores—all the scores at each level of one factor combined, rather than all four groups separately. We also employed the same idea in Chapter 15, with \(SS_{\text{people}}\) = \(\Sigma k(M_{\text{person}} - M_{\text{grand}})^2\). In each case, we’re just grouping scores one way or another to isolate different sources of variability.

The degrees of freedom for each factor are its number of levels, \(k_A\) or \(k_B\), minus one.

\[ \begin{align} df_A &= k_A - 1 \\ df_B &= k_B - 1 \end{align} \]

The interaction

The interaction’s \(SS\) and \(df\) are simply whatever is left over: between-groups variability not already partitioned either into Factor A or Factor B. So we can find those through simple subtraction.

\[ \begin{align} SS_{A \times B} &= SS_{\text{between}} - SS_A - SS_B \\ df_{A \times B} &= df_{\text{between}} - df_A - df_B \end{align} \]

For a two-by-two design, that leaves \(3 - 1 - 1 = 1\) degree of freedom. More generally, it works out to \((k_A - 1)(k_B - 1)\), much like the error degrees of freedom in Chapter 15.

If you feel short-changed by the subtraction, we can also get the interaction variability directly from the data, which helps show what it represents. We give each group a prediction: the mean we’d expect for that group if the two main effects were all that was going on. To make the prediction, we start at the grand mean, then adjust for how far the mean for the group’s level of Factor A is from the grand mean, and again for its level of Factor B. That simplifies to \(M_A + M_B - M_{\text{grand}}\). In the table, \(M_A\) and \(M_B\) are the two marginal means in line with the group’s cell: the one at the bottom of its column and the one at the end of its row.

The interaction is about how far each group’s actual mean falls from that prediction. We square each of those differences and multiply by the number of scores in the group, just as we did for the between-groups sum of squares.

\[ \begin{aligned} SS_{A \times B} = \Sigma n_{\text{group}}(&M_{\text{group}} - M_A \\ &{}- M_B + M_{\text{grand}})^2 \end{aligned} \]

If there were no interaction at all, every group mean would sit right on its prediction, and this would come to zero. The farther the group means are from where the main effects alone would put them, the bigger the interaction.

Factorial ANOVA in context

To make this more concrete, let’s return to our maze experiment. Maze difficulty is our Factor A and audience is our Factor B.

Table 16.3 has the mean time for each of the four groups, with the marginal means around the edges.

Table 16.3: Mean times (in seconds) for the four groups, with the marginal means for each factor in the last row and column, and the grand mean in the corner.
Easy maze Hard maze Audience mean
Alone \(36\) \(40\) 38
Watched \(28\) \(56\) 42
Maze mean 32 48 40

Kids who did the easy maze averaged 32 seconds and kids who did the hard maze averaged 48. Kids working alone averaged 38 seconds and kids being watched averaged 42. Each of those marginal means represents eight kids. And the grand mean, 40 seconds, is in the corner.

So the main effect of maze tells us about that 16-second difference between 32 and 48, and the main effect of audience is about the 4-second difference between 38 and 42. But even though watched kids were 4 seconds slower than solo kids overall, notice that they were 8 seconds faster than solo kids on the easy maze and 16 seconds slower on the hard one. That’s the kind of thing the interaction picks up. It’s only by comparing everything going on in the data—marginal means and individual group means—that we can get the full picture.

We’ll work through calculating the \(F\) ratios in a moment, but first let’s see how the various sums of squares are built up in this factorial analysis.

Activity 16.1: Where each effect goes
Interactive diagram of the maze-by-audience times in four groups. Total, within-groups and between-groups sums of squares are built as in Chapter 14. The scores are then regrouped by maze and by audience, and each factor's squared deviations pour into the bottom of the between-groups layer. What's left of that layer is filled by each group mean's squared distance from the mean the two factors alone predict: the interaction. Finally the maze, audience and interaction mean squares each sit over the within-groups mean square as three F ratios.

Here are our four groups of scores, colored by the combination of maze type and audience.

As before, total variability is the sum of squared deviations of every score from the grand mean.

Then \(SS_{\text{within}}\): the sum of squared deviations of each score from its own group mean.

Next, \(SS_{\text{between}}\): the sum of squared deviations of each group mean from the grand mean, multiplied by the number of scores in that group. We’ll split this into the main effects and interaction.

To isolate the maze component, we recolor the scores by maze type, ignoring the audience factor.

That gives us two groups of eight scores: everyone who did the easy maze and everyone who did the hard maze.

We square the deviations of the two marginal means from the grand mean, just as we did for the four individual group means.

We count each square eight times, once per score in these groups. This gives the \(SS_{\text{maze}}\) part of \(SS_{\text{between}}\).

Now we regroup by audience, ignoring the maze: eight scores from kids working alone and eight from kids being watched.

Again, square each marginal mean’s deviation from the grand mean and count it eight times. This gives the \(SS_{\text{audience}}\) part of \(SS_{\text{between}}\).

Now we can reset back to the 4 individual groups. There is one more unclaimed part of the between-groups variability. This represents variability due to the interaction between our factors. It’s whatever is left over after accounting for the main effects. We can find it through subtraction: \(SS_{\text{interaction}} = SS_{\text{between}} - SS_{\text{maze}} - SS_{\text{audience}}\). Job done. But let’s see what that means in a more concrete way.

To quantify the interaction directly, we first predict what the individual group means would be based only on the main effects. Starting from the grand mean, the maze effect shifts the predicted means 8 seconds down for the easy maze and 8 seconds up for the hard maze, since those easy and hard marginal means were 16 seconds apart.

The audience main effect shifts the predicted means 2 seconds up for the watched groups and 2 seconds down for the alone groups, since the watched and alone marginal means were 4 seconds apart. We add these adjustments to the maze prediction, so each group has a predicted mean shown as the dotted line. If there were no interaction at all, this is where the group means would be. That’s not quite the case here.

Now we compare each group’s actual mean with its predicted mean. Compare how? Deviations, of course! Find the deviations, square them, and add them up (counting each square \(n\) times). That gives the interaction sum of squares, the part of between-groups variability that can’t be explained by the main effects alone. It fills the empty portion of \(SS_{\text{between}}\) exactly.

We started with \(SS_{\text{total}}\), and split it into \(SS_{\text{within}}\) and \(SS_{\text{between}}\). Then we split \(SS_{\text{between}}\) into the three parts: \(SS_{\text{maze}}\), \(SS_{\text{audience}}\), and \(SS_{\text{interaction}}\).

The three split-up sums for the main effects and interaction get divided by their \(df\) (1 in each case) to become the three separate \(F\) ratio numerators. \(SS_{\text{within}}\) gets divided by its \(df\), and the resulting \(MS_{\text{within}}\) becomes the denominator for all three.

A factorial ANOVA, step by step

So now let’s work through a hypothesis test for this design, using the maze and audience example in Table 16.1.

Step 1: State the hypotheses

We need a null and alternative hypothesis for each of our three tests. For maze difficulty, the null is that the easy and hard mazes have equal population mean times, averaging across the audience conditions:

\[ H_0: \mu_{\text{easy}} = \mu_{\text{hard}} \]

For audience, the null is that the alone and watched conditions have equal population mean times, averaging across the mazes:

\[ H_0: \mu_{\text{alone}} = \mu_{\text{watched}} \]

Each alternative is that those means differ. For the interaction, the null is that the effect of being watched is the same on both mazes; the alternative is that it depends on the maze.

Step 2: Set the decision criteria

The critical values for the \(F\) ratios we’ll produce all come from the same \(F\) table as before. We need one for each test. We’ll use \(\alpha = .05\). Each factor has two levels, so each main effect has \(2 - 1 = 1\) degree of freedom in the numerator. The interaction also has one, which is what’s left of \(df_{\text{between}} = 3\) once the two main effects are taken out. And with \(N = 16\) scores in \(k = 4\) groups, the denominator has \(df_{\text{within}} = N - k = 12\).

Here all three tests have the same numerator and denominator degrees of freedom, so they share a critical value. In Table 16.4, the column for 1 and the row for 12 give a critical \(F\) of 4.75. We’ll reject the null for any of the three tests whose \(F\) exceeds that value. In a more complicated between-participants design, the numerator degrees of freedom can differ, although the denominator stays the same.

Table 16.4: An excerpt of the \(F\) table, with the critical value for \(df = 1\) and \(12\) highlighted.
F table excerpt for numerator df 1 through 4 and denominator df 10 through 14, highlighting the .05 critical value of 4.75 at F(1, 12).

Now, remember how we went out of our way to control the experiment-wise error rate in the last couple of chapters, with a single omnibus test followed by a special post-hoc test for the multiple comparisons? Well, now we’re doing three \(F\) tests, each at \(\alpha = .05\). Are we holding the experiment-wise error rate steady at \(.05\)? Nope! The three tests’ error rates pile up in exactly the way we usually try to avoid. If nothing at all were going on with our mazes and audiences, the chance of at least one of the three tests coming out significant would be about 14%, just like the three \(t\) tests we worried about in Chapter 14. Why do we let that happen here? Just because! Somehow this became the norm. There are statistical solutions, but a review of published research found that researchers almost never used them (Cramer et al., 2016). We’ll go along with the convention for now, and come back to it when we interpret the results.

Step 3: Collect and analyze the data

As before, a summary table helps keep track of the calculations. Notice the new rows for Factor A, Factor B, and the interaction.

Table 16.5: A factorial 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\)
 Factor A \(\Sigma n_A(M_A - M_{\text{grand}})^2\) \(k_A - 1\) \(\dfrac{SS_A}{df_A}\) \(\dfrac{MS_A}{MS_{\text{within}}}\)
 Factor B \(\Sigma n_B(M_B - M_{\text{grand}})^2\) \(k_B - 1\) \(\dfrac{SS_B}{df_B}\) \(\dfrac{MS_B}{MS_{\text{within}}}\)
 A × B interaction \(SS_{\text{between}} - SS_A - SS_B\) \(df_{\text{between}} - df_A - df_B\) \(\dfrac{SS_{A \times B}}{df_{A \times B}}\) \(\dfrac{MS_{A \times B}}{MS_{\text{within}}}\)
Within groups \(\Sigma (X - M_{\text{group}})^2\) \(N - k\) \(\dfrac{SS_{\text{within}}}{df_{\text{within}}}\)
Total \(\Sigma (X - M_{\text{grand}})^2\) \(N - 1\)

Here’s our means table again, now with each group’s sum of squared deviations to save you some calculation. From here on I’ll label the components with the factor’s name in place of the generic \(A\) and \(B\).

Table 16.6: Means and sums of squares for each cell, with the marginal means for each factor in the last row and column.
Easy maze Hard maze Audience mean
Alone \(M = 36\); \(SS = 66\) \(M = 40\); \(SS = 62\) \(38\)
Watched \(M = 28\); \(SS = 74\) \(M = 56\); \(SS = 86\) \(42\)
Maze mean \(32\) \(48\) \(M_{\text{grand}} = 40\)

\[ \begin{gathered} N = 16 \qquad n = 4 \qquad k = 4 \\ k_{\text{maze}} = 2 \qquad k_{\text{audience}} = 2 \end{gathered} \]

First, the familiar components. For within groups, we can just add the four groups’ sums of squares from Table 16.6:

\[ \begin{aligned} SS_{\text{within}} &= \Sigma (X - M_{\text{group}})^2 \\ &= 66 + 62 + 74 + 86 \\ &= 288 \end{aligned} \]

\[ df_{\text{within}} = N - k = 16 - 4 = 12 \]

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

\[ \begin{aligned} SS_{\text{between}} &= \Sigma n_{\text{group}}(M_{\text{group}} - M_{\text{grand}})^2 \\ &= 4(-4)^2 + 4(0)^2 \\ &\quad {}+ 4(-12)^2 + 4(16)^2 \\ &= 1{,}664 \end{aligned} \]

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

Those two add up to the total: \(SS_{\text{total}} = 1{,}664 + 288 = 1{,}952\), with \(df_{\text{total}} = N - 1 = 15\).

Now for the new components. For the maze factor, we use the two maze means from the bottom margin of the table, 32 and 48 seconds. Each one represents eight scores:

\[ \begin{aligned} SS_{\text{maze}} &= \Sigma n_{\text{maze}}(M_{\text{maze}} - M_{\text{grand}})^2 \\ &= 8(32 - 40)^2 + 8(48 - 40)^2 \\ &= 1{,}024 \end{aligned} \]

\[ df_{\text{maze}} = k_{\text{maze}} - 1 = 2 - 1 = 1 \]

For the audience factor, we do the same with the two audience means from the right-hand margin, 38 and 42 seconds:

\[ \begin{aligned} SS_{\text{audience}} &= \Sigma n_{\text{audience}}(M_{\text{audience}} \\ &\qquad {}- M_{\text{grand}})^2 \\ &= 8(38 - 40)^2 + 8(42 - 40)^2 \\ &= 64 \end{aligned} \]

\[ df_{\text{audience}} = k_{\text{audience}} - 1 = 2 - 1 = 1 \]

Then we can find the interaction by subtracting both of those from the between-groups component:

\[ \begin{aligned} SS_{\text{interaction}} &= SS_{\text{between}} - SS_{\text{maze}} \\ &\quad {}- SS_{\text{audience}} \\ &= 1{,}664 - 1{,}024 - 64 \\ &= 576 \end{aligned} \]

\[ \begin{aligned} df_{\text{interaction}} &= df_{\text{between}} - df_{\text{maze}} \\ &\quad {}- df_{\text{audience}} \\ &= 3 - 1 - 1 = 1 \end{aligned} \]

But let’s also see how the interaction builds up from the group means. Take the kids who did the easy maze alone. The mean for the easy maze is 32 and the mean for working alone is 38, so the prediction is \(32 + 38 - 40 = 30\) seconds. Their actual mean was 36 seconds: 6 seconds slower than the main effects alone would suggest. Table 16.7 does the same for all four groups.

Table 16.7: Each group’s mean, the mean predicted from the two main effects alone, and the difference between them.
Group \(M_{\text{group}}\) Prediction Difference
Easy, alone \(36\) \(32 + 38 - 40 = 30\) \(6\)
Hard, alone \(40\) \(48 + 38 - 40 = 46\) \(-6\)
Easy, watched \(28\) \(32 + 42 - 40 = 34\) \(-6\)
Hard, watched \(56\) \(48 + 42 - 40 = 50\) \(6\)

Every group mean is 6 seconds from its prediction, in one direction or the other. (The four differences always come out the same size with a two-by-two design with equal group sizes.) Squaring each difference and multiplying by the four scores in each group gives the same answer as before:

\[ \begin{aligned} SS_{\text{interaction}} &= 4(6)^2 + 4(-6)^2 \\ &\quad {}+ 4(-6)^2 + 4(6)^2 \\ &= 576 \end{aligned} \]

Now we have all the sums of squares and their degrees of freedom. Dividing each one by its degrees of freedom gives the mean squares:

\[ \begin{align} MS_{\text{maze}} &= \frac{SS_{\text{maze}}}{df_{\text{maze}}} = \frac{1{,}024}{1} = 1{,}024 \\ MS_{\text{audience}} &= \frac{SS_{\text{audience}}}{df_{\text{audience}}} = \frac{64}{1} = 64 \\ MS_{\text{interaction}} &= \frac{SS_{\text{interaction}}}{df_{\text{interaction}}} = \frac{576}{1} = 576 \\ MS_{\text{within}} &= \frac{SS_{\text{within}}}{df_{\text{within}}} = \frac{288}{12} = 24 \end{align} \]

Finally, we divide each of the three new mean squares by the within-groups mean square:

\[ \begin{align} F_{\text{maze}} &= \frac{MS_{\text{maze}}}{MS_{\text{within}}} = \frac{1{,}024}{24} \approx 42.67 \\ F_{\text{audience}} &= \frac{MS_{\text{audience}}}{MS_{\text{within}}} = \frac{64}{24} \approx 2.67 \\ F_{\text{interaction}} &= \frac{MS_{\text{interaction}}}{MS_{\text{within}}} = \frac{576}{24} = 24.00 \end{align} \]

Here’s the completed summary table:

Table 16.8: Completed factorial ANOVA summary table for the maze × audience example.
Source \(SS\) \(df\) \(MS\) \(F\)
Between groups \(1{,}664\) \(3\)
 Maze (A) \(1{,}024\) \(1\) \(1{,}024\) \(42.67\)
 Audience (B) \(64\) \(1\) \(64\) \(2.67\)
 Interaction (A × B) \(576\) \(1\) \(576\) \(24.00\)
Within groups \(288\) \(12\) \(24\)
Total \(1{,}952\) \(15\)

Practice a two-by-two ANOVA

0 of 2
1

Suppose another school runs the maze study, again with 4 kids in each of the four conditions. (These numbers are made up too.) Here are the mean times, in seconds:

Easy maze Hard maze
Alone 31 43
Watched 29 57

The within-groups mean square is \(MS_{\text{within}} = 24\). Calculate the \(F\) ratio for the interaction.

Hint 1

Find the grand mean and the marginal means for maze and audience first.

Hint 2

Each marginal mean represents 8 scores, and each cell mean represents 4. Find \(SS_{\text{between}}\) from the cell means, then take away the two main effects to find the interaction.

Answer

10.67

Explanation

The grand mean is 40. The maze marginal means are 30 and 50, so \(SS_{\text{maze}} = 8(100) + 8(100) = 1{,}600\). The audience marginal means are 37 and 43, so \(SS_{\text{audience}} = 8(9) + 8(9) = 144\). From the cell means, \(SS_{\text{between}} = 4(81 + 9 + 121 + 289) = 2{,}000\), leaving \(SS_{\text{interaction}} = 2{,}000 - 1{,}600 - 144 = 256\). Each effect has \(df = 1\), so \(F = 256/24 \approx 10.67\).

Check your work

What is the sum of squares for maze?

Answer

1600

Explanation

\(8(30 - 40)^2 + 8(50 - 40)^2 = 1{,}600\).

What is the sum of squares for audience?

Answer

144

Explanation

\(8(37 - 40)^2 + 8(43 - 40)^2 = 144\).

What is the between-groups sum of squares?

Answer

2000

Explanation

Each of the four cell means has 4 scores, so \(4[(-9)^2 + 3^2 + (-11)^2 + 17^2] = 2{,}000\).

2

The critical value for \(F(1, 12)\) is 4.75. Calculate the \(F\) ratios for the two main effects, then say what you’d conclude about each of the three effects. On average, the watched kids were 6 seconds slower than the kids working alone. Is “being watched slows kids down” a fair summary of these results?

Example answer

\(F_{\text{maze}} = 1{,}600/24 = 66.67\) and \(F_{\text{audience}} = 144/24 = 6.00\). Both exceed 4.75, and so does the interaction’s 10.67, so all three effects are significant. But the main effect of audience averages over the two mazes, and the interaction tells us the effect of being watched isn’t the same on both. Watched kids were 14 seconds slower on the hard maze and 2 seconds faster on the easy one. So the overall slowdown comes from the hard maze. We’d need to compare the audience conditions on each maze separately before saying anything about the easy one; a 2-second difference between two groups of 4 kids could easily be chance.

Step 4: Make a decision

The maze and interaction \(F\) ratios both exceed the critical value of 4.75, so we reject those two null hypotheses. The audience \(F\) does not, so we fail to reject its null.

Figure 16.3: The three observed \(F\) ratios against the null \(F\) distribution with \(df = 1\) and \(12\). Audience (\(F = 2.67\)) falls short of the critical value; the interaction (\(F = 24.00\)) and maze (\(F = 42.67\)) are well beyond it.
Null F distribution with 1 and 12 degrees of freedom. The rejection region lies above 4.75. The observed F for audience, 2.67, falls short of it; the observed Fs for the interaction, 24.00, and for maze, 42.67, are far into the rejection region.

Kids took significantly longer on the hard maze overall. The average difference between being watched and working alone wasn’t significant. But the significant interaction tells us that this average doesn’t tell the whole story: the effect of being watched depends on which maze the kids did.

Step 5: Estimate the effect and follow up

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

We also estimate an effect size for each test, whether or not it was significant. As in Chapter 15, we’ll use partial eta squared: one for maze, one for audience, and one for the interaction.

Each numerator is that effect’s \(SS\), and each denominator contains just that effect’s \(SS\) plus \(SS_{\text{within}}\). For maze, we set aside the \(SS\) for audience and for the interaction, just as we dumped \(SS_{\text{people}}\) out of the bucket in Chapter 15. We ask what proportion of what’s left is \(SS_{\text{maze}}\). The same rule applies to audience and the interaction.

\[ \begin{align} &\text{Maze:} \\[0.5ex] &\quad \eta^2_p = \frac{SS_{\text{maze}}}{SS_{\text{maze}} + SS_{\text{within}}} \\[0.5ex] &\quad \phantom{\eta^2_p} = \frac{1{,}024}{1{,}024 + 288} = .78 \\[2ex] &\text{Audience:} \\[0.5ex] &\quad \eta^2_p = \frac{SS_{\text{audience}}}{SS_{\text{audience}} + SS_{\text{within}}} \\[0.5ex] &\quad \phantom{\eta^2_p} = \frac{64}{64 + 288} = .18 \\[2ex] &\text{Interaction:} \\[0.5ex] &\quad \eta^2_p = \frac{SS_{\text{interaction}}}{SS_{\text{interaction}} + SS_{\text{within}}} \\[0.5ex] &\quad \phantom{\eta^2_p} = \frac{576}{576 + 288} = .67 \end{align} \]

These three proportions have different denominators, so they aren’t shares of one total and don’t need to add up to 1.

Simple effects

In the last two chapters, we followed a significant \(F\) with post-hoc tests. We don’t need them for our main effects: each factor only has two levels, so if there’s a difference, there’s only one place it can be.3 The interaction does need some additional probing, though. It tells us that the effect of being watched isn’t the same on both mazes, but not what the effect is on either one. Watched kids were 8 seconds faster than kids working alone on the easy maze, and 16 seconds slower on the hard maze. Is each of those a reliable difference in its own right?

To find out, we test simple effects: the effect of one factor at a single level of the other. Here that means comparing the alone and watched means twice, once for the easy maze and once for the hard maze. Mathematically, there’s nothing new. Each simple effect is just a between-groups sum of squares for two of our four groups: the means of 36 and 28 seconds around the easy-maze mean of 32, and the means of 40 and 56 around the hard-maze mean of 48. Two means give \(df = 1\), so each mean square is the same as its sum of squares. And we divide by the same \(MS_{\text{within}}\) as before, since it’s still our best estimate of chance variability, based on all sixteen kids.

\[ \begin{aligned} &\text{Easy maze:} \\ &\quad SS = 4(36 - 32)^2 + 4(28 - 32)^2 = 128 \\ &\quad F = \frac{128}{24} \approx 5.33 \\[1.5ex] &\text{Hard maze:} \\ &\quad SS = 4(40 - 48)^2 + 4(56 - 48)^2 = 512 \\ &\quad F = \frac{512}{24} \approx 21.33 \end{aligned} \]

With \(df = 1\) and \(12\), the critical value is the same 4.75 as before, and both \(F\) ratios are beyond it.4 So being watched made kids significantly faster on the easy maze, and significantly slower on the hard maze. Both halves of the pattern are significant at the unadjusted .05 threshold.

We could have come at the interaction the other way, testing the effect of the maze for kids working alone and for kids being watched. But that wouldn’t directly test our predictions of facilitation on the easy task and impairment on the hard one, and it would require two more tests, each with its own error rate. We could adjust alpha for multiple comparisons. But we don’t necessarily have to test every possible simple effect; we can use some restraint and let the research question choose which to test.

Statistical power

The logic of power is the same as in Activity 14.7, but here we need to plan for the effect we’re interested in detecting. A study can have enough power to detect a main effect and still miss an interaction. For our question, we’d plan the sample size around how much the audience effect might differ between the two mazes, along with the variability within groups and our chosen alpha. Four kids per cell make a manageable teaching example; real studies generally need more.

Reporting and interpreting results

Reporting results

We report the design, what we measured, and the \(F\) ratios, degrees of freedom, \(p\) values, and effect sizes for all three tests, plus the simple effects. The four group means are in Table 16.6 and Figure 16.4.

To examine the influence of maze difficulty and an audience on performance, a 2-factor ANOVA was conducted with completion times as the dependent variable and Maze Difficulty and Audience as between-participants independent variables. There was no significant main effect of Audience (\(F(1, 12) = 2.67\), \(p = .128\), \(\eta^2_p = .18\)). There was, however, a significant main effect of Maze Difficulty (\(F(1, 12) = 42.67\), \(p < .001\), \(\eta^2_p = .78\)); overall, times were longer on the hard maze. Moreover, there was a significant interaction between Maze Difficulty and Audience (\(F(1, 12) = 24.00\), \(p < .001\), \(\eta^2_p = .67\)); the effect of being watched depended on maze difficulty. Unadjusted simple-effects tests showed faster times when watched on the easy maze (\(F(1, 12) = 5.33\), \(p = .040\)) and slower times when watched on the hard maze (\(F(1, 12) = 21.33\), \(p < .001\)).

Either bar graphs or line graphs can show the group means. Line graphs are often preferred for interactions, because the lines make it easy to see whether the effect of one factor depends on the level of the other. One factor becomes ticks on the x-axis, and the other factor is represented by a line for each of its levels, possibly with different dash types or colors, and even different shapes for the points, as in Figure 16.4. There I’ve drawn the same data two different ways: in one, Maze type (easy vs. hard) is on the x-axis with Audience (alone vs. watched) as the line type; in the other the factors are swapped. The means and interaction are exactly the same in both graphs; the choice of which factor to map to which axis just changes the shape, with the lines crossing in one and not in the other. We wouldn’t include both graphs in a report; we’d choose the one we think best shows the pattern of interest.

Figure 16.4: The four mean times, graphed two ways: with maze on the x-axis and a line for each audience condition, and with audience on the x-axis and a line for each maze.
Line graph of the four mean times with maze on the x-axis and one line per audience condition. Alone: 36 seconds on the easy maze, 40 on the hard maze. Watched: 28 on the easy maze, 56 on the hard maze. The two lines cross.
The same four means with audience on the x-axis and one line per maze. Easy maze: 36 seconds alone, 28 watched. Hard maze: 40 seconds alone, 56 watched. The lines do not cross, but they are not parallel.

Interpreting interaction graphs

I said earlier that understanding the idea of an interaction can be tricky. Seeing the findings represented as a line graph can help a lot, when you know what to look for. Our results showed an interaction, though it looked a bit different in the two graph variations. Activity 16.2 shows how to read the main effects and interaction from a graph like this in general, then illustrates some other possible patterns of results.

Activity 16.2: What other results would look like
Line graph of the four maze-by-audience cell means (36 and 40 seconds for kids working alone on the easy and hard mazes; 28 and 56 for kids being watched). Steps mark the marginal means (32 and 48 seconds for the easy and hard mazes; 38 and 42 for alone and watched) and the parallel lines the two main effects alone would predict, then replace the means with made-up results: no effects, a main effect of maze only, a main effect of audience only, both main effects with parallel lines, an interaction where the lines fan out without crossing, and a crossover with no main effects.

Here’s the same four group means from Figure 16.4, with maze on the x-axis and a line for each audience condition. Let’s find the two main effects and the interaction on this graph.

The diamonds show the marginal means for maze type: 32 seconds for easy and 48 for hard. They’re halfway between the two means for each maze, because our groups had equal numbers of observations. The dotted line joining them slopes up. This represents the main effect of maze type, showing the overall difference associated with maze difficulty.

Now the markers sit at the middle of each audience line: 38 seconds alone and 42 watched. That 4-second gap is the overall audience difference. It is small compared with the differences within each maze, because those go in opposite directions and partly cancel out.

The faint parallel lines show what the two main effects alone predict, using the same means we calculated in Table 16.7. Each observed mean is 6 seconds from its prediction. Those departures are the interaction: the audience difference changes between mazes instead of staying the same.

From here on, we’ll replace our results with other possible patterns. First, all four means are equal. The lines lie flat on top of each other: no maze difference, no audience difference, and no interaction.

Here there’s a main effect of maze only. Both audience lines climb together, one on top of the other. The maze marginal means differ, but the audience marginal means are equal, and the lines are parallel.

Here there’s a main effect of audience only. Both lines are flat, so the maze marginal means are equal. Being watched adds the same amount of time on either maze: an audience difference, but no interaction.

Now both main effects are present. The lines slope up from easy to hard and are separated vertically. They’re still parallel: being watched adds the same 12 seconds on either maze, so there’s no interaction.

Here the audience makes no difference on the easy maze but adds 20 seconds on the hard one. That’s an interaction, even though the lines don’t cross. Both main effects are present too: the hard maze takes longer overall, and so does being watched.

Here there’s an interaction without either main effect. The audience effect reverses between mazes, but the opposite differences cancel out when we calculate the marginal means. The diamonds’ line is flat, and the two audience midpoints coincide. Neither main effect captures how much the conditions matter in combination.

Come up with a 2x2 Design

0 of 4
1

Come up with a two-by-two design: two independent variables with two levels each, and one dependent variable.

Answer

A good answer names Factor A with two levels, Factor B with two levels, and a dependent variable measured in all four resulting conditions.

Explanation

For example: caffeine (coffee vs decaf) by sleep (short vs full night), measuring reaction time.

2

Now sketch the result you’d predict. Call your first independent variable Factor A and your second Factor B. Each dot is the mean of one of your four groups. Drag each one up or down to roughly where you’d expect it to be. (The graph has a 0 to 10 y-axis, but the idea is just to ballpark the mean as being relatively high or low, not to be exact.)

An interaction plot with four draggable group means: the B1 line starts flat at 4 and the B2 line flat at 6. Enable JavaScript to sketch your own result.
3

Look at the graph you just made. Going only by where the four means are, which of these does it show?

Response options

Select all that apply.

A main effect of Factor A

A main effect of Factor B

An interaction between Factor A and Factor B

None of these

Hint 1

For Factor A, picture the point midway between the two dots above \(A_1\), and the point midway between the two dots above \(A_2\). Is one higher than the other?

Hint 2

For Factor B, compare the middle of one line with the middle of the other. For the interaction, check whether the lines are parallel.

Answer
  • A main effect of Factor A

  • A main effect of Factor B

  • An interaction between Factor A and Factor B

  • None of these

Explanation

On your graph, the marginal means for Factor A are … at \(A_1\) and … at \(A_2\). If those differ, there’s a main effect of Factor A. The marginal means for Factor B are … at \(B_1\) and … at \(B_2\). If those differ, there’s a main effect of Factor B. And going from \(A_1\) to \(A_2\) changes the mean by … at \(B_1\) and by … at \(B_2\). If those differ, the lines aren’t parallel, and that’s an interaction. Remember that this is only the pattern in the means. Whether any of it would be statistically significant depends on the variability within the groups too. Some of the differences on your graph are tiny, just one notch. Maybe you meant them as a small effect, or maybe you meant “no effect” and the dots just didn’t line up exactly, so either answer counts here. Either way, a difference that small could easily turn out not to be significant in a real study.

4

In a sentence or two, put the pattern in your graph into words, in terms of your own study. If your graph shows an interaction, try starting with “The effect of … depends on …”.

Explanation

A good answer describes the pattern in terms of what was manipulated and measured, not just “Factor A” and “Factor B”. It says which main effects it shows and in which direction, and whether the effect of one factor is the same at both levels of the other.

Social facilitation

So what do our findings say about social facilitation theory? Our made-up kids showed the predicted pattern: facilitation on the easy task and impairment on the hard one. Because we said we randomly assigned kids to conditions, we could take the findings as evidence of causality—that being watched causes the different performance depending on maze type. Obviously with the tiny sample sizes, we wouldn’t be able to draw reliable conclusions even if the data was real. (Like I said, it wasn’t: I just made it up.)

The pattern fits with real social facilitation research on people, generally speaking. A review of 241 studies found that real people broadly showed the predicted pattern of facilitation or impairment depending on task type, though the effects tend to be small (Bond & Titus, 1983).

I am conspicuously emphasizing research on people there, because I feel like there’s something I should confess. The maze idea? It was inspired by one of Robert Zajonc’s studies. But in the real study, it wasn’t kids doing the mazes. It was cockroaches. Yeah. I didn’t want to spend a whole chapter talking about cockroaches, so I made you picture delightful little kids instead. You’re welcome. But if you’re interested to read about what kind of mazes cockroaches find easy or hard, and how they respond to having an audience of other cockroaches watching on, be my guest (Zajonc et al., 1969).

The cockroach evidence hasn’t held up so well, though. A more recent preregistered replication found that an audience slowed the roaches down on both tasks: two significant main effects, but no significant interaction (Halfmann et al., 2020). Speaking of the interaction, Halfmann et al. pointed out that Zajonc and his colleagues hadn’t actually tested it, even though it was the critical prediction of social facilitation theory. Our central question was about the interaction too, but the factorial ANOVA gives us three bundled tests—the main effects in addition to the interaction. I mentioned that this can inflate the Type I error rate, but not if we commit to just basing our conclusions on one specific test in advance, for example by preregistering our analysis plan. If only the interaction matters, we can just ignore the main effects. If we’d committed to that one test up front and used it alone to judge that prediction, its Type I error rate would be .05 (see Cramer et al., 2016).

Assumptions

The assumptions are the same as in Chapter 14, applied to all four cells: independent observations, approximately normal population distributions within each cell, and equal population variances across cells. The equal-variance assumption is also what lets us use the pooled \(MS_{\text{within}}\) for the simple-effects tests.

Learning Checks

0 of 9
1

If a two-factor ANOVA produces a statistically significant interaction, then either or both main effects must also be significant.

Response options

True

False

Answer

False

Explanation

Interactions and main effects are separate tests. A crossover interaction can occur without main effects.

2

Two separate single-factor ANOVAs provide exactly the same information as a two-factor ANOVA.

Response options

True

False

Answer

False

Explanation

Separate ANOVAs do not test the interaction between factors.

3

A disadvantage of combining two factors in one experiment is that you cannot determine how either factor would affect scores by itself.

Response options

True

False

Answer

False

Explanation

A factorial design estimates main effects for each factor and their interaction.

4
Interaction plot with one flat line, for B1, and one line sloping up from A1 to A2, for B2. The lines do not cross.

The lines in this graph don’t cross, so it doesn’t show an interaction.

Response options

True

False

Answer

False

Explanation

The effect of one factor depends on the level of the other, and that’s an interaction. Lines only need to be non-parallel. Crossing is one way of being non-parallel, and whether they cross can depend on which factor is on the x-axis.

5
Interaction plot with two parallel lines sloping up from A1 to A2. B1 goes from 2 to 5, and B2 goes from 5 to 8.

Which of these does this graph show?

Response options

Select all that apply.

A main effect of Factor A

A main effect of Factor B

An interaction between Factor A and Factor B

None of these

Hint

Lines that slope, or sit apart, aren’t an interaction by themselves. For that, check whether the lines are parallel.

Answer
  • A main effect of Factor A

  • A main effect of Factor B

Explanation

The marginal means for Factor A are 3.5 at \(A_1\) and 6.5 at \(A_2\), and for Factor B they’re 3.5 at \(B_1\) and 6.5 at \(B_2\), so there are two main effects. But going from \(A_1\) to \(A_2\) adds 3 on both lines. The lines are parallel, so there’s no interaction. Each factor has its own effect, and the effects simply add up.

6
Interaction plot with two lines forming an X. B1 goes up from 2 to 8, and B2 goes down from 8 to 2.

Which of these does this graph show?

Response options

Select all that apply.

A main effect of Factor A

A main effect of Factor B

An interaction between Factor A and Factor B

None of these

Hint 1

Big differences between the four means don’t guarantee a main effect. A main effect is about the average for each level, ignoring the other factor.

Hint 2

Find the marginal means. For \(A_1\), that’s halfway between the two dots above \(A_1\). For \(B_1\), it’s the middle of the \(B_1\) line. Do the two levels of either factor end up with different averages?

Answer
  • An interaction between Factor A and Factor B

Explanation

Factor A makes a big difference on each line, but in opposite directions: up 6 for \(B_1\) and down 6 for \(B_2\). That’s an interaction. Averaged over the levels of the other factor, though, every marginal mean is 5, so there are no main effects. The big differences cancel out.

7

In a two-by-two study of task (easy, hard) and audience (alone, watched), which comparison tests the main effect of audience?

Response options

The mean of everyone alone against the mean of everyone watched, ignoring task

The alone and watched means on the easy task only

The audience effect on the easy task against the audience effect on the hard task

Answer

The mean of everyone alone against the mean of everyone watched, ignoring task

Explanation

A main effect averages over the levels of the other factor. The second option is a simple effect, and the third is the interaction.

8

A two-by-three between-participants design has 5 people per cell. What are the degrees of freedom for the interaction?

Hint

Find \(df_{\text{between}}\) across the six cells, then take away the degrees of freedom for the two main effects.

Answer

2

Explanation

With six cells, \(df_{\text{between}} = 5\). Factor A has \(2 - 1 = 1\) and Factor B has \(3 - 1 = 2\). That leaves \(5 - 1 - 2 = 2\) for the interaction.

9

Think of something whose effect depends on the situation. Describe it as a two-by-two design, then state the interaction in a plain sentence beginning “The effect of … depends on …”.

Answer

For example: the effect of caffeine on reaction time depends on how much sleep you had. The design crosses caffeine (coffee, decaf) with sleep (short, full night). A good answer names two factors with two levels each, one measured outcome, and how the effect of one factor differs across the levels of the other.

Bond, C. F., & Titus, L. J. (1983). Social facilitation: A meta-analysis of 241 studies. Psychological Bulletin, 94(2), 265–292. https://doi.org/10.1037/0033-2909.94.2.265
Cramer, A. O. J., Ravenzwaaij, D. van, Matzke, D., Steingroever, H., Wetzels, R., Grasman, R. P. P. P., Waldorp, L. J., & Wagenmakers, E.-J. (2016). Hidden multiplicity in exploratory multiway ANOVA: Prevalence and remedies. Psychonomic Bulletin & Review, 23(2), 640–647. https://doi.org/10.3758/s13423-015-0913-5
Halfmann, E., Bredehöft, J., & Häusser, J. A. (2020). Replicating roaches: A preregistered direct replication of Zajonc, Heingartner, and Herman’s (1969) social-facilitation study. Psychological Science, 31(3), 332–337. https://doi.org/10.1177/0956797620902101
Zajonc, R. B. (1965). Social facilitation. Science, 149(3681), 269–274. https://doi.org/10.1126/science.149.3681.269
Zajonc, R. B., Heingartner, A., & Herman, E. M. (1969). Social enhancement and impairment of performance in the cockroach. Journal of Personality and Social Psychology, 13(2), 83–92. https://doi.org/10.1037/h0028063

  1. We can find the number of individual groups by multiplying the factorial statement. So two-by-two literally means two multiplied by two, so four conditions in total. A two-by-three design would have two times three, so six groups.↩︎

  2. These formulas assume that every group has the same number of scores. With unequal group sizes, the pieces no longer add up so neatly, and the analysis gets more complicated. Also, as in Chapters 14 and 15, there are computational versions of these formulas. They use the total for each level of a factor in the same way that Chapter 14’s used treatment totals. We’ll stick with the definitional formulas.↩︎

  3. With three or more levels of a factor, a significant main effect would leave the same question open as in Chapter 14, and we could follow it up the same way, with a test like Tukey’s HSD.↩︎

  4. The two sums of squares add up to 640, which is exactly \(SS_{\text{audience}}\) plus \(SS_{\text{interaction}}\), \(64 + 576\). The simple effects haven’t found any new variability. They’ve taken everything the audience did, the main effect and the interaction together, and split it up by maze instead.↩︎

15  Related-samples ANOVA
17  Correlation