Comprehensive Study Guide on Factorial ANOVA and Research Workflows

Overview of Interactions and Intuition

  • The primary focus of this lecture is to build an intuitive, visual understanding of factorial ANOVA and specifically the concept of an interaction.
  • An interaction occurs when the effect of one independent variable depends on the level of another independent variable.
  • In daily life, interactions are common and are often expressed using conditional language such as "It depends."
  • Metaphorical Examples of Interactions:
    • Exercise and Fitness: If someone asks for the best way to keep fit, the answer might be: "If you are young or middle-aged, running is best. If you are older, it's better to do something gentler like swimming."
    • In this scenario, there is no single "best" exercise across the board; the efficacy of the exercise (Factor 1: Sport) is dependent on the age of the individual (Factor 2: Age).

Visualizing Patterns in a 2×32 \times 3 Factorial Design

  • To turn a verbal description into a statistical model, we can map the fitness example onto a chart:
    • Outcome Measure: Fitness Score (Continuous).
    • Predictor 1 (Age): Three levels (Young, Middle-aged, Older adults).
    • Predictor 2 (Sport): Two levels (Running, Swimming).
    • Design Type: This is a 2×32 \times 3 factorial design.
  • Data Interpretation:
    • For the young and middle-aged groups, the fitness scores are higher for runners than swimmers.
    • For the older adult group, the pattern flipped: fitness scores were higher for swimmers than runners.
  • Visual Indicators: A significant interaction is often visually represented by diagonal lines that cross or diverge. This "swapping over" or "switching" of effects indicates that the impact of one factor changes across the levels of the other.

The Three Components of Factorial ANOVA Output

  • Every factorial ANOVA tests three distinct null hypotheses and generates three separate rows in the statistical output, each with its own pp-value:
    1. Main Effect of Factor A: Does the outcome measure differ by the first factor (e.g., Does fitness differ by age, ignoring sport)?
    2. Main Effect of Factor B: Does the outcome measure differ by the second factor (e.g., Does fitness differ by sport, ignoring age)?
    3. Interaction Effect (A ×\times B): Is the effect of one factor different depending on the level of the other?
  • Every result should be reported regardless of its significance level.

Schematic Analysis: Caffeine and Test Scores

  • Consider a hypothetical study with a 2×22 \times 2 design:
    • Factor 1: Day of the week (Monday or Tuesday).
    • Factor 2: Caffeine (Coffee or No Coffee).
    • Outcome: Test Score.
  • Main Effect of Day: To check this, compare the average score of all Monday participants against all Tuesday participants. In this example, both averages are the same (e.g., 1.351.35), so there is no main effect of the day.
  • Main Effect of Caffeine: Compare the mean of the "Coffee" group against the "No Coffee" group. In this case, the coffee group mean (1.61.6) is higher than the no-coffee group mean (1.11.1), indicating a significant main effect of caffeine.
  • Interaction Check: Visually, the lines representing the two levels of caffeine are parallel. This suggests that the benefit of caffeine is constant regardless of whether it is Monday or Tuesday. Therefore, there is no interaction.

Schematic Analysis: Food and Sauce Enjoyment

  • Consider a different 2×22 \times 2 design:
    • Factor 1: Food Item (Hot dog or Ice cream).
    • Factor 2: Sauce (Mustard or Chocolate).
    • Outcome: Enjoyment Score.
  • Main Effects:
    • Food Item: The average enjoyment for hot dogs (1.51.5) equals the average for ice cream (1.51.5). No main effect.
    • Sauce: The average enjoyment for mustard (1.51.5) equals the average for chocolate sauce (1.51.5). No main effect.
  • Interaction Effect: There is a clear interaction. People enjoy hot dogs with mustard but dislike them with chocolate. Conversely, people enjoy ice cream with chocolate but dislike it with mustard. This represents a complete reversal of the effect, shown visually as crossed diagonal lines.

Case Study: Sudoku Expertise and Training

  • Research Design: A 2×32 \times 3 factorial design examining Sudoku solving ability.
    • Factor 1 (Expertise): Expert or Novice.
    • Factor 2 (Training): No training, BrainFlex training, or Sudoku-specific training.
  • Following up a Significant Interaction: If the ANOVA indicates a significant interaction, you must run follow-up pairwise comparisons. You should choose one of two ways to slice the data:
    1. The effect of Factor A within each level of Factor B.
    2. The effect of Factor B within each level of Factor A.
  • Selection Logic:
    • Looking at the effect of expertise within each training type: Experts are better than novices across all training types. This doesn't explain the interaction; it just reinforces the main effect of expertise.
    • Looking at the effect of training within each level of expertise: Among experts, all training types are equivalent (no improvement). Among novices, Sudoku-specific training significantly improved performance compared to BrainFlex or no training.
  • Conclusion: The interaction is explained by the fact that training benefits depend on expertise; novices benefit from specific practice, whereas experts do not.

Statistical Workflow: T-Tests

  • Step 1: Identify the Research Question: Determine if you are comparing one group to a value or comparing two groups (paired or independent).
  • Step 2: Assumption Checks: Run the Shapiro-Wilk test for normality and Levene's test for equality of variance.
  • Step 3: Decision Path:
    • If assumptions are met: Run a parametric tt-test. If significant (p<0.05p < 0.05), calculate Cohen's dd for effect size.
    • If normality is violated: Run a Wilcoxon or Mann-Whitney U test.
    • If variance is unequal: Run a Welch test.

Statistical Workflow: One-Way ANOVA

  • Step 1: Identify the Design: Comparing means across three or more groups.
  • Step 2: Assumption Checks: Shapiro-Wilk and Levene's tests.
  • Step 3: Run ANOVA: If significant, calculate the effect size (e.g., eta squared, denoted as η2\eta^2 in JMovie).
  • Step 4: Follow-up: Run Tukey's honest significant differences test to pinpoint exactly which groups differ.

Statistical Workflow: Factorial ANOVA

  • Step 1: Identify the Design: Two or more categorical predictors.
  • Step 2: Assumption Checks: Follow the same process as the one-way ANOVA.
  • Step 3: Analyze the ANOVA Table: Evaluate the two main effects and the interaction row.
  • Step 4: Follow-up: For any significant main effect (multi-level) or interaction, perform Tukey's pairwise comparisons. For interactions, specify which factor's effect you are examining within the levels of the other.

Questions & Discussion

  • Question Regarding Food Truck Sales: A food truck owner says they usually sell more burgers, but on a sunny day, they sell nearly as many ice creams as burgers. What effects are present?
  • Response: There is an interaction because the relative sales of the foods depend on the weather. There is likely a main effect of food (burgers generally sell better). There may also be a main effect of weather if total sales increase on sunny days.
  • Quiz Question on Reporting Order: Which of these is in the correct order for reporting?
    1. tt-test, then Cohen's dd, then Shapiro-Wilk.
    2. Shapiro-Wilk, then tt-test, then Mann-Whitney U.
    3. Shapiro-Wilk (assumption check), then tt-test (or nonparametric alternative), then Cohen's dd (if significant and parametric).
  • Response: Option 3 is correct. You must check assumptions before choosing and running the final test, and effect sizes are only calculated after confirming a significant effect exists.