Main effects plot: how to make and read one
A main effects plot shows the mean response at each level of each factor, joined by lines, with all factors on the same vertical scale. A steep line means that changing the factor moves the response a lot; a flat line means the factor does little on its own. It is usually the first picture you look at after a designed experiment, because it ranks the factors at a glance.
When to use it
- You ran a factorial design or another experiment and want to see which factors move the response, and in which direction.
- You need a picture for a report or a team meeting that people can read without an ANOVA table.
- You have observational data with a few categorical factors (supplier, shift, machine) and want a first look at their effects.
- You want to choose which level of each factor to run, provided the factors do not interact.
Always look at the interaction plot as well: when two factors interact, the main effects plot can mislead.
How it works
For each factor, take every observation run at each level and average them. With two-level factors:
Main effect = ȳ(high level) − ȳ(low level)The plot draws one panel per factor, with the level means joined by a line, and a horizontal reference line at the overall mean. Because all panels share the same y-axis, you compare effects by comparing slopes.
In a balanced experiment, such as a full factorial with the same number of runs per combination, each level mean averages over all levels of the other factors equally, so each effect is estimated free of the others. In unbalanced or observational data that is no longer true: a factor can look important because its high level happened to coincide with the high level of another one. Then plot fitted means from a general linear model instead of raw means.
The plot itself has no test. To know whether an effect is larger than noise, compare it with its standard error from the ANOVA or the effects analysis, or look at a normal plot of the effects (see effects plots).
Example
A body shop is setting up resistance spot welding for a new steel. The weld engineer runs a 2³ full factorial with two replicates (16 welds in random order) and measures tensile-shear strength (kN):
| Current (kA) | Weld time (cycles) | Electrode force (kN) | Strength, rep 1 | Strength, rep 2 |
|---|---|---|---|---|
| 8 | 10 | 2.5 | 5.58 | 5.60 |
| 8 | 10 | 3.5 | 5.06 | 5.05 |
| 8 | 16 | 2.5 | 5.58 | 5.83 |
| 8 | 16 | 3.5 | 4.81 | 5.19 |
| 10 | 10 | 2.5 | 6.57 | 6.19 |
| 10 | 10 | 3.5 | 6.06 | 5.71 |
| 10 | 16 | 2.5 | 7.29 | 7.43 |
| 10 | 16 | 3.5 | 7.09 | 6.93 |
Each level mean averages eight welds. The overall mean is 5.998 kN.
| Factor | Low level mean | High level mean | Effect |
|---|---|---|---|
| Current (8 → 10 kA) | 5.338 | 6.659 | 1.321 |
| Weld time (10 → 16 cycles) | 5.728 | 6.269 | 0.541 |
| Electrode force (2.5 → 3.5 kN) | 6.259 | 5.738 | −0.521 |
The full factorial model gives a residual standard deviation of 0.180 kN with 8 degrees of freedom, so each effect has a standard error of 0.090 kN. All three main effects are clearly larger than that (p ≤ 0.0004). So is one interaction, current × weld time, with an effect of 0.511 kN (p = 0.0005).
How to read the results
- Current dominates. Its line is the steepest: going from 8 to 10 kA adds 1.32 kN on average.
- Weld time and electrode force matter about equally, in opposite directions. Longer time adds 0.54 kN; more force takes away 0.52 kN, because higher force lowers contact resistance and so the heat in the weld.
- The plot suggests a setting: high current, long time, low force. The best cell in the table, 10 kA, 16 cycles and 2.5 kN, averages 7.36 kN, which agrees.
- But check the interaction. The effect of weld time depends on current: at 8 kA, longer time adds almost nothing (5.323 to 5.353 kN); at 10 kA it adds 1.05 kN (6.133 to 7.185 kN). The main effect of 0.54 kN is the average of those two very different answers. The interaction plot shows this directly.
- Effects are only valid inside the tested range. Above 10 kA, expulsion (molten metal ejected from the weld) may set in and strength may fall.
Common mistakes
- Reading the main effects plot alone. When an interaction is significant, the main effect of each factor involved is an average that may describe no real setting.
- Using raw means from unbalanced data. Level means then mix the effects of other factors. Use fitted (adjusted) means.
- Judging importance without a noise reference. A line that looks steep may be within the noise. Compare effects with their standard error.
- Comparing panels drawn on different scales. Keep a common y-axis, or a small effect will look as big as a large one.
- Joining the means of a categorical factor and reading the slope as a trend. For a factor like supplier, the line only connects levels; its order means nothing.
Frequently asked questions
What is a main effect?
The average change in the response when a factor moves from one level to another, averaged over the levels of all the other factors. Here, current has a main effect of 1.32 kN.
What is the difference between a main effects plot and an interaction plot?
The main effects plot shows each factor on its own, averaged over the others. The interaction plot shows how the effect of one factor changes across the levels of another.
Does a flat line mean a factor does not matter?
It means the factor has little effect on average. It may still matter through an interaction, or on the spread of the response rather than its mean.
Can I use a main effects plot without a designed experiment?
Yes, as a first look at group means. With unbalanced or observational data, the factors are mixed together, so confirm any conclusion with a model that adjusts for the other factors.