ANOVA: Signal, Noise, and Interaction

Why ANOVA compares variances, why a significant omnibus test is not a list of pairwise results, and why an interaction changes the story.

Working guidelines

0% Complete

Learning objectives

  1. Explain the one-way F-statistic as between-group signal divided by within-group noise.
  2. Distinguish a significant omnibus ANOVA from the pairwise conclusions supplied by Tukey HSD.
  3. Identify a two-way interaction as a difference of differences, not merely as crossing lines.
  4. Qualify main effects when an interaction makes the simple effects differ.
  5. Read and report F, p, eta-squared or partial eta-squared, and interval estimates together.

Step 1: Predict first

Three groups have means of 50, 51, and 58, with 12 observations per group and SD = 7. Suppose the omnibus ANOVA is significant.

1a. Does that force all three pairwise comparisons (A–B, A–C, B–C) to be significant? Predict which pairs Tukey HSD will flag, and explain your reasoning.

1b. If the group means stay fixed but the within-group SD doubles, what should happen to F, p, and η²?

Step 2: One-way ANOVA is signal divided by noise

The simulator holds n = 12 per group. Move the three means to change the between-group signal; move the SD to change the within-group noise. The dots are a constructed dataset whose displayed means and sample SD are exact, so the same settings always produce the same ANOVA.

50
51
58
7
SS between
–
SS within
–
SS total
–
MS between
–
MS within
–
F(2, 33)
–
p
–
η²
–

Tukey HSD: 95% familywise confidence intervals

DifferenceEstimate95% familywise CIConclusion

Step 3: Record what changes

Use the named presets. Record values to two decimals, except p to three decimals (or < .001).

For one preset, check the book's two rules in the readout: SS between + SS within = SS total, and MS between ÷ MS within = F.

PresetFpη²Which Tukey pairs differ?
One pair differs
No signal
Same means, more noise

Q1. In the first preset, the omnibus test is significant but only one Tukey interval excludes 0. Explain why those conclusions are not contradictory.

Q2. Compare the first and fourth presets. The means did not move. Use the phrase signal-to-noise ratio to explain why the statistical conclusions changed.

Q2b. Click No signal. F is exactly 0. Chapter 17's “Where F comes from” says F lands near 1 when nothing is going on. Both are right. What does this simulator do to the group means that real samples never do?

Step 4: The interaction playground

This is a balanced 2 × 2 design with 15 observations in each cell and within-cell SD = 6. Each slider controls one model term. The interaction slider is literally the difference of differences:

(Method B − Method A in large classes) − (Method B − Method A in small classes)

0
0
16

Method A Method B. Parallel lines mean interaction = 0; nonparallel lines mean interaction ≠ 0. Crossing is one possible interaction, not the definition.

EffectF(1, 56)ppartial η²
Method
Class size
Method × Class size

Simple effects of method (B − A)

Class sizeDifference95% CIConclusion
Small
Large

Step 5: Read the patterns

Q3. Use the Parallel main effects preset. How do the plot, interaction row, and two simple effects all tell the same story?

Q4. Use the Ordinal interaction preset. The lines do not cross. What proves that an interaction still exists?

Q5. Use the Crossover; no main effects preset. Why would reporting only the two non-significant main effects be deeply misleading?

Q6. In that crossover preset, state the two simple effects with their confidence intervals, then describe the interaction in plain language.

Step 6: See the same analyses in R

The first block recreates the opening one-way preset. scale() makes a fixed set of 12 offsets with mean 0 and sample SD 1, so each constructed group has the exact mean and SD shown in the simulator.

z <- as.numeric(scale(c(-1.7, -1.2, -.9, -.6, -.3, -.1,
                         .1,  .3,  .6,  .9, 1.2, 1.7)))
oneway <- data.frame(
  group = factor(rep(c("A", "B", "C"), each = 12)),
  score = c(50 + 7*z, 51 + 7*z, 58 + 7*z)
)

m1 <- aov(score ~ group, data = oneway)
summary(m1)
effectsize::eta_squared(m1)
TukeyHSD(m1)
Check your output — open this after you have run the code yourself.
            Df Sum Sq Mean Sq F value Pr(>F)
group        2    456     228   4.653 0.0166 *
Residuals   33   1617      49

Eta2 = 0.220

Tukey 95% family-wise confidence intervals:
B-A   1.000  [ -6.012,  8.012]
C-A   8.000  [  0.988, 15.012]
C-B   7.000  [ -0.012, 14.012]

The next block recreates the crossover preset. There is no marginal method or class-size difference, but there is a large interaction.

z15 <- as.numeric(scale(seq(-1.4, 1.4, length.out = 15)))
twoway <- expand.grid(
  person = 1:15,
  method = factor(c("A", "B")),
  class_size = factor(c("small", "large"))
)
cell_mean <- with(twoway,
  ifelse(method == "A" & class_size == "small", 54,
  ifelse(method == "B" & class_size == "small", 46,
  ifelse(method == "A" & class_size == "large", 46, 54))))
twoway$score <- cell_mean + 6 * rep(z15, 4)

m2 <- aov(score ~ method * class_size, data = twoway)
summary(m2)
effectsize::eta_squared(m2, partial = TRUE)
Check your output — open this after you have run the code yourself.
                  Df Sum Sq Mean Sq F value   Pr(>F)
method             1      0       0    0.00        1
class_size         1      0       0    0.00        1
method:class_size  1    960     960   26.67 3.32e-06 ***
Residuals         56   2016      36

Partial Eta2 (interaction) = 0.323

Q7. Run both blocks. Identify one number in each R result that matches the simulator, and explain what it represents.

Step 7: Reveal

Step 8: Reflection

R1. Return to your Step 1 predictions. What did you get right, and what did the one-way simulator force you to revise?

R2. A report says, "There was no overall effect of teaching method, p = 1.00, so the methods worked equally well." The interaction is p < .001. Rewrite the conclusion.

R3. In one sentence each, distinguish: omnibus effect, pairwise comparison, main effect, simple effect, and interaction.

Before you submit

Grading: Credit/no-credit. Credit requires a genuine attempt and complete written reasoning, not perfect predictions.

  1. Click Save progress.
  2. Print with Ctrl+P / Cmd+P and choose "Save as PDF".
  3. Name the file anova-playground_lastname1_lastname2.pdf.