Why Combine Factors in One Experiment?
A teaching method may work differently depending on where students study. If researchers want to investigate both questions, they can vary the teaching method and the study setting in the same experiment. The resulting design compares each method in each setting, rather than investigating one factor while leaving the other unexamined.
This is a factorial experiment: an experiment in which two or more factors are varied together, and the treatment is a particular combination of their levels. Factorial designs let researchers ask two kinds of questions: what is the average effect of changing one factor, and does that effect depend on the level of another factor?
For example, let teaching method have two levels, lecture and retrieval practice, and study setting have two levels, quiet and background noise. These factors produce four treatment combinations. A table displays the design directly.
| Teaching method | Quiet setting | Background noise |
|---|---|---|
| Lecture | Lecture + quiet | Lecture + background noise |
| Retrieval practice | Retrieval practice + quiet | Retrieval practice + background noise |
The table describes the combinations, not the results. Before data are collected, we can say which effects the design allows researchers to compare, but we cannot say whether either factor has an effect or whether the factors interact. Those conclusions require outcome data.
What the Design Needs to Support the Comparisons
Suppose students are the experimental units and the response is a quiz score in points. To interpret differences between treatment combinations as effects of the assigned conditions, students should be assigned to those combinations at random. The teaching methods and settings should be sufficiently well-defined that students assigned to the same combination receive comparable versions of it. The same quiz and scoring procedure should be used across combinations.
For the usual causal interpretation, the design should also avoid one student’s assigned combination changing another student’s outcome. This is a no-interference condition; for example, it may be a concern if students in different groups share study materials during the experiment. Random assignment supports causal comparisons among the experimental units, but does not by itself ensure that the participating students represent a broader population. If assignment is not random, observed differences can reflect pre-existing differences as well as the assigned conditions.
In a balanced design, the same number of units is assigned to each treatment combination. Balance makes the comparisons especially transparent, but it is not required for a factorial design. Researchers should plan adequate replication in every combination; assigning only one unit to a combination gives no within-combination replication.
Worked Example: Counting the Treatment Combinations
A hypothetical experiment assigns students to one of two review formats (flashcards or practice questions) and one of three review durations (20, 40, or 60 minutes). The researcher plans to use 120 students, with equal numbers in every combination. How many combinations are there, and how many students are assigned to each?
The first factor has 2 levels and the second has 3 levels. Each level of the first factor can be paired with each level of the second, so the number of combinations is \(2 \times 3 = 6\).
| Review format | 20 minutes | 40 minutes | 60 minutes |
|---|---|---|---|
| Flashcards | Combination 1 | Combination 2 | Combination 3 |
| Practice questions | Combination 4 | Combination 5 | Combination 6 |
With equal allocation, the number assigned to each combination is \(120 / 6 = 20\) students. In words, the six groups are flashcards for 20, 40, or 60 minutes and practice questions for 20, 40, or 60 minutes. This table identifies the design; it does not tell us which format or duration leads to higher scores.
Main Effects and Interaction in a Two-by-Two Design
Consider a two-by-two design with two levels of each factor. Write the mean response in each treatment combination as \(\bar{y}_{ij}\), where \(i\) identifies the level of the first factor and \(j\) the level of the second. In a balanced experiment, the main effect of the first factor can be summarized by comparing its two averages, each formed across the two levels of the second factor.
The main effect of factor B is calculated in the same way, comparing the column averages. These are average comparisons: a main effect does not claim that the difference is identical at every level of the other factor.
To check for interaction, compare the effect of A separately at each level of B. If these two effects differ, there is interaction on the response scale being used. The difference between those two effects is called a difference-in-differences.
A zero difference-in-differences means the effect of A is the same at both levels of B. A nonzero value means the effect changes across the levels. This calculation describes interaction in the observed means; a formal assessment of uncertainty would require additional statistical methods.
Worked Effects from Teaching and Study-Setting Data
Worked Example: Average Effects and Interaction in Quiz Scores
In a hypothetical randomized experiment, students are assigned equally to lecture or retrieval practice and to a quiet or noisy study setting. The response is quiz score in points. Assume the assignment, teaching methods, settings, and scoring are carried out as planned, and students’ outcomes do not affect one another. The observed average scores are:
| Teaching method | Quiet | Background noise |
|---|---|---|
| Lecture | 72 points | 66 points |
| Retrieval practice | 80 points | 68 points |
Main effect of teaching method. The average for retrieval practice is \((80+68)/2=74\) points. The average for lecture is \((72+66)/2=69\) points. The estimated main effect is \(74-69=5\) points. Averaged equally over the two settings, the retrieval-practice group scored 5 points higher.
Main effect of setting. The quiet-setting average is \((72+80)/2=76\) points. The background-noise average is \((66+68)/2=67\) points. The estimated main effect of quiet rather than background noise is \(76-67=9\) points, averaged equally over the two teaching methods.
Interaction. The retrieval-practice advantage is \(80-72=8\) points in the quiet setting and \(68-66=2\) points with background noise. The difference-in-differences is \(8-2=6\) points. Thus the estimated teaching-method difference is 6 points larger in the quiet setting than in the noisy setting. This is an interaction in the observed mean scores; it does not establish that the same pattern holds in every possible student population.
A Short Justification: Why Equal Differences Mean No Interaction
The no-interaction condition can be understood by writing the four means in an additive form. Suppose each mean is a baseline plus one contribution from factor A and one contribution from factor B. Denote those contributions by \(a_1,a_2\) and \(b_1,b_2\), respectively:
At level 1 of factor B, the effect of changing A from level 1 to level 2 is \((m+a_2+b_1)-(m+a_1+b_1)=a_2-a_1\). At level 2 of B, that effect is \((m+a_2+b_2)-(m+a_1+b_2)=a_2-a_1\) again. Subtracting these effects gives zero:
If the difference-in-differences is not zero, this additive description does not fit the four means: the change associated with A depends on which level of B is used. This reasoning concerns the scale of the response. A pattern that has no interaction when measured as differences in quiz points need not have no interaction when expressed on a different scale.
Worked Example: Why an Average Effect Can Hide Different Patterns
A second hypothetical randomized experiment compares teacher-led instruction with group problem-solving in quiet and music settings. The outcome is a common quiz score in points, with the same quiz and scoring in all four groups. Students are randomly assigned to the four combinations; suppose delivery is consistent and students’ results do not influence one another. The observed means are:
| Teaching method | Quiet | Music |
|---|---|---|
| Teacher-led | 75 points | 70 points |
| Group problem-solving | 78 points | 82 points |
The group problem-solving advantage is \(78-75=3\) points in the quiet setting and \(82-70=12\) points in the music setting. The difference-in-differences is \(3-12=-9\) points. The negative sign indicates that the advantage is 9 points smaller in the quiet setting than in the music setting.
The average teaching-method effect is \([(78+82)/2]-[(75+70)/2]=80-72.5=7.5\) points in favor of group problem-solving. That average is useful, but it does not describe the entire pattern: the estimated advantage is 3 points in one setting and 12 in the other. Reporting only the average could conceal the interaction relevant to a decision about where to use each method.
Why Factorial Designs Matter
A factorial design studies several factors in one coordinated experiment. It can reveal that a treatment works differently across settings, identify combinations that merit further study, and avoid the misleading impression that one average comparison applies equally everywhere. A treatment-combination table also makes the intended comparisons visible before data collection begins.
The design should match the question. If researchers want to know whether a teaching method’s effect depends on study setting, both factors must be varied so the combinations can be compared. If one method is used only in quiet rooms and another only with background noise, the effects of method and setting cannot be separated from those data.
Common Mistakes
- Calling a factor combination an interaction. Having multiple combinations in the design makes interaction assessable; it does not mean an interaction has been found. Compare outcome differences across levels.
- Treating a main effect as universal. An average advantage does not imply that the advantage is the same in every setting. Check the factor-specific differences.
- Using an unclear average. In a balanced two-by-two design, averaging the two cell means gives an equal-weight main effect. With unequal group sizes, pooled averages may give unequal weight to settings; state which average is intended.
- Claiming causation from the table alone. A table lists combinations, not evidence that outcomes differ. Causal interpretation of comparisons depends on appropriate assignment and implementation, and broader generalization requires separate justification.
Check Your Understanding
Use the design and calculations in this tutorial to answer the following questions.
- A study varies tutoring format (online or in person) and session length (30 or 60 minutes). How many treatment combinations are there? Name them.
- In a two-by-two experiment, the effect of a new teaching method is 4 points in one setting and 4 points in the other. What is the difference-in-differences, and what does it indicate about interaction in the observed means?
- For the quiz-score table in the first worked example, calculate the effect of quiet rather than background noise separately for each teaching method. How do those two differences relate to the reported interaction?
- Why does assigning one teaching method only in quiet rooms and the other only in noisy rooms prevent a clear comparison of method and setting effects?
- Does a treatment-combination table alone show that one teaching method improves scores? Explain what additional information is needed.