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 2 n [ a b + a − b − 1 ] {\displaystyle A={1 \over 2n}[ab+a-b-1]}
The main effect of B is given by
B = 1 2 n [ a b + b − a − 1 ] {\displaystyle B={1 \over 2n}[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. 4
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: H 0 : α 1 = α 2 = α 3 = 0 {\displaystyle H_{0}:\alpha _{1}=\alpha _{2}=\alpha _{3}=0} and the second for Factor B is: H 0 : β 1 = β 2 = 0 {\displaystyle H_{0}:\beta _{1}=\beta _{2}=0} .5 The main effect for factor A can be computed with 2 degrees of freedom. This variation is summarized by the sum of squares denoted by the term SSA. Likewise the variation from factor B can be computed as SSB with 1 degree of freedom. The expected value for the mean of the responses in column i is μ + β j {\displaystyle \mu +\beta _{j}} while the expected value for the mean of the responses in row j is μ + α i {\displaystyle \mu +\alpha _{i}} where i corresponds to the level of factor in factor A and j corresponds to the level of factor in factor B. α i {\displaystyle \alpha _{i}} and β j {\displaystyle \beta _{j}} are main effects. SSA and SSB are main-effects sums of squares. The two remaining degrees of freedom can be used to describe the variation that comes from the interaction between the two factors and can be denoted as SSAB.6 A table can show the layout of this particular design with the main effects (where x i j {\displaystyle x_{ij}} is the observation of the ith level of factor B and the jth level of factor A):
Take a 2 2 {\displaystyle 2^{2}} factorial design (2 levels of two factors) testing the taste ranking of fried chicken at two fast food restaurants. Let taste testers rank the chicken from 1 to 10 (best tasting), for factor X: "spiciness" and factor Y: "crispiness." Level X1 is for "not spicy" chicken and X2 is for "spicy" chicken. Level Y1 is for "not crispy" and level Y2 is for "crispy" chicken. Suppose that five people (5 replicates) tasted all four kinds of chicken and gave a ranking of 1-10 for each. The hypotheses of interest would be: Factor X is: H 0 : X 1 = X 2 = 0 {\displaystyle H_{0}:X_{1}=X_{2}=0} and for Factor Y is: H 0 : Y 1 = Y 2 = 0 {\displaystyle H_{0}:Y_{1}=Y_{2}=0} . The table of hypothetical results is given here:
The "Main Effect" of X (spiciness) when we are at Y1 (not crunchy) is given as:
[ X 2 Y 1 ] − [ X 1 Y 1 ] n {\displaystyle {\frac {[X_{2}Y_{1}]-[X_{1}Y_{1}]}{n}}} where n is the number of replicates. Likewise, the "Main Effect" of X at Y2 (crunchy) is given as:
[ X 2 Y 2 ] − [ X 1 Y 2 ] n {\displaystyle {\frac {[X_{2}Y_{2}]-[X_{1}Y_{2}]}{n}}} , upon which we can take the simple average of these two to determine the overall main effect of the Factor X, which results as the above
formula, written here as:
A = X = 1 2 n [ a b + a − b − 1 ] {\displaystyle A=X={1 \over 2n}[ab+a-b-1]} = [ X 2 Y 2 ] + [ X 2 Y 1 ] − [ X 1 Y 2 ] − [ X 1 Y 1 ] 2 n {\displaystyle {\frac {[X_{2}Y_{2}]+[X_{2}Y_{1}]-[X_{1}Y_{2}]-[X_{1}Y_{1}]}{2n}}}
Likewise, for Y, the overall main effect will be:7
B = Y = 1 2 n [ a b + b − a − 1 ] {\displaystyle B=Y={1 \over 2n}[ab+b-a-1]} = [ X 2 Y 2 ] + [ X 1 Y 2 ] − [ X 2 Y 1 ] − [ X 1 Y 1 ] 2 n {\displaystyle {\frac {[X_{2}Y_{2}]+[X_{1}Y_{2}]-[X_{2}Y_{1}]-[X_{1}Y_{1}]}{2n}}}
For the Chicken tasting experiment, we would have the resulting main effects:
X : [ 25 ] − [ 21 ] + [ 41 ] − [ 23 ] 2 ∗ 5 = 2.2 {\displaystyle X:{\frac {[25]-[21]+[41]-[23]}{2*5}}=2.2}
Y : [ 41 ] − [ 25 ] + [ 23 ] − [ 21 ] 2 ∗ 5 = 1.8 {\displaystyle Y:{\frac {[41]-[25]+[23]-[21]}{2*5}}=1.8}
Kuehl, Robert (1999). Design of Experiment: Statistical Principles of Research Design and Analysis. Cengage Learning. p. 178. ISBN 9780534368340. 9780534368340 ↩
Montgomery, Douglas C. (1976). Design and Analysis of Experiments. Wiley, 1976. p. 180. ISBN 9780471614210. 9780471614210 ↩
kotz, johnson (2005). encyclopedia of statistical sciences. p. 181. ISBN 978-0-471-15044-2. 978-0-471-15044-2 ↩
Oehlert, Gary (2010). A First Course in Design and Analysis of Experiments. p. 181. ISBN 978-0-7167-3510-6. 978-0-7167-3510-6 ↩
Montgomery, Douglas (2005). DESIGN AND ANALYSIS OF EXPERIMENTS. 6th: Wiley and Sons. pp. 205–206.{{cite book}}: CS1 maint: location (link) /wiki/Template:Cite_book ↩