After successfully completing the Module 4 Factorial Design of Experiments, students will be able to
The factorial design of experiment is described with examples in Video 1.
Video 1. Introduction to Factorial Design of Experiment DOE and the Main Effect Calculation Explained Example.
In a Factorial Design of Experiment, all possible combinations of the levels of a factor can be studied against all possible levels of other factors. Therefore, the factorial design of experiments is also called the crossed factor design of experiments. Due to the crossed nature of the levels, the factorial design of experiments can also be called the completely randomized design (CRD) of experiments. Therefore, the proper name for the factorial design of experiments would be completely randomized factorial design of experiments.
In an easy to understand study of human comfort, two levels of the temperature factor (or independent variable), including 0OF and 75OF; and two levels of the humidity factor, including 0% and 35% were studied with all possible combinations (Figure 1). Therefore, the four (2X2) possible treatment combinations, and their associated responses from human subjects (experimental units) are provided in Table 1.
Table 1. Data Structure/Layout of a Factorial Design of Experiment
As the factorial design is primarily used for screening variables, only two levels are enough. Often, coding the levels as (1) low/high, (2) -/+ or (3) -1/+1 is more convenient and meaningful than the actual level of the factors, especially for the designs and analyses of the factorial experiments. These coding systems are particularly useful in developing the methods in factorial and fractional factorial design of experiments. Moreover, general formula and methods can only be developed utilizing the coding system. Coding systems are also useful in response surface methodology. Often, coded levels produce smooth, meaningful and easy to understand contour plots and response surfaces. Moreover, especially in complex designs, the coded levels such as the low- and high-level of a factor are easier to understand.
An example graphical representation of a factorial design of experiment is provided in Figure 1 .
Figure 1. Factorial Design of Experiments with two levels for each factor (independent variable, x). The response (dependent variable, y) is shown using the solid black circle with the associated response values.
The calculation of the main effects from a factorial design of experiment is described with examples in Video 2 (both Video 1 and Video 2 are the same).
Video 2. Introduction to Factorial Design of Experiment DOE and the Main Effect Calculation Explained Example.
The average effect of the factor A (called the main effect of A) can be calculated from the average responses at the high level of A minus the average responses at the low level of A (Figure 2). When the main effect of A is calculated, all other factors are ignored assuming that we don’t have anything else other than the interested factor, which is A, the temperature factor.
Therefore, the main effect of the temperature factor can be calculated as A = (9+5)/2 - (2+0)/2 = 7-1 = 6. The calculation can be seen in figure 2.
= the average comfort increases by 6 on a scale of 0 (least comfortable) to 10 (most comfortable) if the temperature increases from 0- to 75-degree Fahrenheit.
Similarly, the main effect of B is calculated by ignoring all other factors assuming we don’t have anything else other than the interested factor, which is B, the humidity factor.
Therefore, the main effect of the humidity factor can be calculated as B= (2+9)/2- (5+0)/2=5.5-2.5=3. The calculation can be seen in figure 3.
= the average comfort increases by 3 on a scale of 0 (least comfortable) to 10 (most comfortable) if the relative humidity increases from 0 to 35 percent.
Figure 2. Graphical representation of the main effect of the temperature (factor A).
Figure 3. Graphical representation of the main effect of the humidity (factor B).
The calculation of the interaction effects from a factorial design of experiment is provided in Video 3.
Video 3. How to calculate Two Factors Interaction Effect in Any Design of Experiments DOE Explained Examples.
In contrast to the main effects (the independent effect of a factor), in real world, factors (variables) may interact between each other to affect the responses. For an example, the temperature and the humidity may interact with each other to affect the human comfort.
At the low humidity level (0%), the comfort increases by 5 (=5-0) if the temperature increases from 0- to 75-degree Fahrenheit. However, at the high humidity level (35%), the comfort increases by 7 (=9-2) if the temperature increases form 0- to 75-degree Fahrenheit (Figure 4). Therefore, at different levels of the humidity factor, the changes in comfort are not the same even if the temperature change is same (from 0 to 75 degree). The effect of temperature (factor A) is different across the level of the factor B (humidity). This phenomenon is called the Interaction Effect, which is expressed by AB.
The average difference or change in comfort can be calculated as AB= (7-5)/2= 2/2=1.
= the change in comfort level increases by 1 more at the high level as compared to the low level of humidity (factor B) if the temperature (factor A) increase from the low level (0-degree) to the high level (75-degree).
Similarly, the interaction effect can be calculated for the humidity factor across the level of temperature factor as follows.
At the low level of A, effect of B = 2-0 = 2; at the high level of A, the effect of B = 9-5 = 4 (Figure 5). Therefore, the average difference or change in comfort can be calculated as AB= (4-2)/2= 2/2=1.
= the change in comfort level increases by 1 more at the high level as compared to the low level of temperature (factor A) if the humidity (factor B) increase from the low level (0 %) to the high level (35%).
The interaction effect is same whether it is calculated across the level of factor A or factor B.
Figure 4. Interaction effects of the temperature (factor A) and the humidity (factor B).
Figure 5. Interaction effects of the temperature (factor A) and the humidity (factor B).
As the interaction effect is comparatively low or small in this example, the figure shows a slight or small interaction (Figure 4 & Figure 5). A strong interaction is depicted in Figure 6. No interaction effect would produce parallel lines shown in Figure 7.
Figure 6. Visualization of a strong interaction effect.
Figure 7. Visualization of no interaction effect.
Video 4 demonstrates the process of developing regression equations from the effect estimates.
For quantitative independent variables (factors), an estimated regression equation can be developed from the calculated main effects and the interaction effects. The full regression model with two factors (two level for each factor) with the interaction effect can be written as Equation 1.
Equation 1
Using the -1/+1 coding system (Figure 8), the average comfort level increases by 6 ((9+5-2-0)/2=6) if the temperature is increased by two units (-1 to 0 and then from 0 to +1). Therefore, for one unit increase of the temperature, the comfort level is increased by 3. As the estimate for the coefficients, beta for an example is the increase of the response for every one unit increase of the factor level, the estimated regression coefficient is calculated as one-half of the respective estimated effect.
The regression coefficient is one-half of the calculated effect. The regression constant is calculated by averaging all four responses. Therefore, the regression equation can be written as in Equation.
Equation 2
Figure 8. How to estimate the regression coefficients from the main and the interaction effects.
The contour plot and the response surface are visualized in Figure 9 & Figure 10, respectively. The comfort level increases as the temperature increase. However, the effect of humidity is not as obvious as the temperature as the estimated effect is 50% (1.5) as compared to the temperature (3). Moreover, near straight lines shows very little interaction between the temperature and the humidity to affect the human comfort.
Figure 9. Visualization of the contour plot for the effect of temperature and humidity on human comfort.
Figure 10. Visualization of the response surface for the effect of temperature and humidity on human comfort.
Video 6 demonstrates the process of constructing the ANOVA table from the main and the interaction effects.
Video 6. How to Construct ANOVA Table from the Effect Estimates from the Factorial Design of Experiments DOE.
ANOVA table can be constructed using the calculated main and the interaction effects. Details will be discussed in the “Module 5: 2K factorial design of experiments.” For this particular example with only two independent variables (factors) having two levels for each factor without any replications, the sum of square is simply calculated as the square of the effects. For an example, the sum of square for the temperature variable (factor) is the square of the temperature effect of an increase in comfort level of 6, which is 36 (62). No experimental error can be calculated without replication. Therefore, the experimental error is zero (0) for this example. Therefore, the F-statistics and the p-value cannot be calculated for this example. The ANOVA table can be constructed as in Table 2.
*need replications (experimental error) to calculate these values
Table 2 ANOVA table from the calculated main and interaction effects
The effect of water and sunlight on the plant growth rate was measured on a scale of 0 (no growth) to 10 (highest level). Data is provided in Table 2.
Table 2. Factorial Design of Experiments Practice Example