In the design of experiments and analysis of variance, a main effect is the effect of an independent variable on a dependent variable averaged across the levels of any other independent variables. The term is frequently used in the context of factorial designs and regression models to distinguish main effects from interaction effects.
Relative to a factorial design, under an analysis of variance, a main effect test will test the hypotheses expected such as H0, the null hypothesis. Running a hypothesis for a main effect will test whether there is evidence of an effect of different treatments. However, a main effect test is nonspecific and will not allow for a localization of specific mean pairwise comparisons (simple effects). A main effect test will merely look at whether overall there is something about a particular factor that is making a difference. In other words, it is a test examining differences amongst the levels of a single factor (averaging over the other factor and/or factors). Main effects are essentially the overall effect of a factor.
A factor averaged over all other levels of the effects of other factors is termed as main effect (also known as marginal effect). The contrast of a factor between levels over all levels of other factors is the main effect. The difference between the marginal means of all the levels of a factor is the main effect of the response variable on that factor .[1] Main effects are the primary independent variables or factors tested in the experiment.[2] Main effect is the specific effect of a factor or independent variable regardless of other parameters in the experiment.[3] In design of experiment, it is referred to as a factor but in regression analysis it is referred to as the independent variable.
In factorial designs, thus two levels each of factor A and B in a factorial design, the main effects of two factors say A and B be can be calculated. The main effect of A is given by
A={1\over2n}[ab+a-b-1]
The main effect of B is given by
B={1\over2n}[ab+b-a-1]
Where n is total number of replicates. We use factor level 1 to denote the low level, and level 2 to denote the high level. The letter "a" represent the factor combination of level 2 of A and level 1 of B and "b" represents the factor combination of level 1 of A and level 2 of B. "ab" is the represents both factors at level 2. Finally, 1 represents when both factors are set to level 1.
Consider a two-way factorial design in which factor A has 3 levels and factor B has 2 levels with only 1 replicate. There are 6 treatments with 5 degrees of freedom. in this example, we have two null hypotheses. The first for Factor A is:
H0:\alpha1=\alpha2=\alpha3=0
H0:\beta1=\beta2=0
\mu+\betaj
\mu+\alphai
\alphai
\betaj
xij
\beta1 | x11 | x12 | x13 | |
\beta2 | x21 | x22 | x23 |
Take a
22
H0:X1=X2=0
H0:Y1=Y2=0
Not Spicy, Not Crispy (X1,Y1) | 3 | 2 | 6 | 1 | 9 | 21 | |
Not Spicy, Crispy (X1, Y2) | 7 | 2 | 4 | 2 | 8 | 23 | |
Spicy, Not Crispy (X2, Y1) | 5 | 5 | 6 | 1 | 8 | 25 | |
Spicy, Crispy (X2, Y2) | 9 | 10 | 8 | 6 | 8 | 41 |
The "Main Effect" of X (spiciness) when we are at Y1 (not crunchy) is given as:
[X2Y1]-[X1Y1] | |
n |
[X2Y2]-[X1Y2] | |
n |
formula, written here as:
A=X={1\over2n}[ab+a-b-1]
[X2Y2]+[X2Y1]-[X1Y2]-[X1Y1] | |
2n |
Likewise, for Y, the overall main effect will be:[5]
B=Y={1\over2n}[ab+b-a-1]
[X2Y2]+[X1Y2]-[X2Y1]-[X1Y1] | |
2n |
For the Chicken tasting experiment, we would have the resulting main effects:
X:
[25]-[21]+[41]-[23] | |
2*5 |
=2.2
Y:
[41]-[25]+[23]-[21] | |
2*5 |
=1.8