General Full Factorial Designs: Difference between revisions
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
Experiments with two or more factors are encountered frequently. The best way to carry out such experiments is by using factorial experiments. These are experiments in which all combinations of factors are investigated in each replicate of the experiment. Factorial experiments are the only means to completely and systematically study interactions between factors in addition to identifying significant factors. One-factor-at-a-time experiments (where each factor is investigated separately by keeping all the remaining factors constant) do not reveal the interaction effects between the factors. Further, in one-factor-at-a-time experiments, full randomization is not possible. | Experiments with two or more factors are encountered frequently. The best way to carry out such experiments is by using factorial experiments. These are experiments in which all combinations of factors are investigated in each replicate of the experiment. Factorial experiments are the only means to completely and systematically study interactions between factors in addition to identifying significant factors. One-factor-at-a-time experiments (where each factor is investigated separately by keeping all the remaining factors constant) do not reveal the interaction effects between the factors. Further, in one-factor-at-a-time experiments, full randomization is not possible. | ||
To illustrate factorial experiments, consider an experiment where the response is investigated for two factors, <math>A\,\!</math> and <math>B\,\!</math>. Assume that the response is studied at two levels of factor <math>A\,\!</math> with <math>{{A}_{\text{low}}}\,\!</math> representing the lower level of <math>A\,\!</math> and <math>{{A}_{\text{high}}}\,\!</math> representing the higher level. Similarly, let <math>{{B}_{\text{low}}}\,\!</math> and <math>{{B}_{\text{high}}}\,\!</math> represent the two levels of factor <math>B\,\!</math> that are being investigated in this experiment. Since there are two factors with two levels, a total of <math>2\times 2=4\,\!</math> combinations exist (<math>{{A}_{\text{low}}}\,\!</math> - <math>{{B}_{\text{low}}}\,\!</math>, <math>{{A}_{\text{low}}}\,\! - {{B}_{\text{high}}}\,\!</math>, <math>{{A}_{\text{high}}}\,\!</math> - <math>{{B}_{\text{low}}}\,\!</math>, <math>{{A}_{\text{high}}}\,\!</math> - <math>{{B}_{\text{high}}}\,\!</math>). Thus, four runs are required for each replicate if a factorial experiment is to be carried out in this case. Assume that the response values for each of these four possible combinations are obtained as shown in the | To illustrate factorial experiments, consider an experiment where the response is investigated for two factors, <math>A\,\!</math> and <math>B\,\!</math>. Assume that the response is studied at two levels of factor <math>A\,\!</math> with <math>{{A}_{\text{low}}}\,\!</math> representing the lower level of <math>A\,\!</math> and <math>{{A}_{\text{high}}}\,\!</math> representing the higher level. Similarly, let <math>{{B}_{\text{low}}}\,\!</math> and <math>{{B}_{\text{high}}}\,\!</math> represent the two levels of factor <math>B\,\!</math> that are being investigated in this experiment. Since there are two factors with two levels, a total of <math>2\times 2=4\,\!</math> combinations exist (<math>{{A}_{\text{low}}}\,\!</math> - <math>{{B}_{\text{low}}}\,\!</math>, <math>{{A}_{\text{low}}}\,\! - {{B}_{\text{high}}}\,\!</math>, <math>{{A}_{\text{high}}}\,\!</math> - <math>{{B}_{\text{low}}}\,\!</math>, <math>{{A}_{\text{high}}}\,\!</math> - <math>{{B}_{\text{high}}}\,\!</math>). Thus, four runs are required for each replicate if a factorial experiment is to be carried out in this case. Assume that the response values for each of these four possible combinations are obtained as shown in the next table. | ||
[[Image:doet6.3.png|thumb|center|400px|Two-factor factorial experiment.]] | [[Image:doet6.3.png|thumb|center|400px|Two-factor factorial experiment.]] | ||
===Investigating Factor Effects=== | ===Investigating Factor Effects=== | ||
The effect of factor <math>A\,\!</math> on the response can be obtained by taking the difference between the average response when <math>A\,\!</math> is high and the average response when <math>A\,\!</math> is low. The change in the response due to a change in the level of a factor is called the main effect of the factor. The main effect of <math>A\,\!</math> as per the response values in the third table is: | The effect of factor <math>A\,\!</math> on the response can be obtained by taking the difference between the average response when <math>A\,\!</math> is high and the average response when <math>A\,\!</math> is low. The change in the response due to a change in the level of a factor is called the ''main effect'' of the factor. The main effect of <math>A\,\!</math> as per the response values in the third table is: | ||
Line 24: | Line 20: | ||
Therefore, when <math>A\,\!</math> is changed from the lower level to the higher level, the response increases by 20 units. A plot of the response for the two levels of <math>A\,\!</math> at different levels of <math>B\,\!</math> is shown | Therefore, when <math>A\,\!</math> is changed from the lower level to the higher level, the response increases by 20 units. A plot of the response for the two levels of <math>A\,\!</math> at different levels of <math>B\,\!</math> is shown next. The plot shows that change in the level of <math>A\,\!</math> leads to an increase in the response by 20 units regardless of the level of <math>B\,\!</math>. Therefore, no interaction exists in this case as indicated by the parallel lines on the plot. | ||
[[Image:doe6_8.png|thumb|center|650px|Interaction plot for the data in the above table.]] | |||
The main effect of <math>B\,\!</math> can be obtained as: | |||
Revision as of 16:34, 6 January 2014
Experiments with two or more factors are encountered frequently. The best way to carry out such experiments is by using factorial experiments. These are experiments in which all combinations of factors are investigated in each replicate of the experiment. Factorial experiments are the only means to completely and systematically study interactions between factors in addition to identifying significant factors. One-factor-at-a-time experiments (where each factor is investigated separately by keeping all the remaining factors constant) do not reveal the interaction effects between the factors. Further, in one-factor-at-a-time experiments, full randomization is not possible.
To illustrate factorial experiments, consider an experiment where the response is investigated for two factors,
Investigating Factor Effects
The effect of factor
Therefore, when
The main effect of
Investigating Interactions
Now assume that the response values for each of the four treatment combinations were obtained as shown in the fourth table. The main effect of
It appears that
Note that in this case, if a one-factor-at-a-time experiment were used to investigate the effect of factor
Analysis of General Factorial Experiments
In DOE++, factorial experiments are referred to as factorial designs. The experiments explained in this section are referred to as general factorial designs. This is done to distinguish these experiments from the other factorial designs supported by DOE++ (see the figure below).
The other designs (such as the two level full factorial designs that are explained in Two Level Factorial Experiments) are special cases of these experiments in which factors are limited to a specified number of levels. The ANOVA model for the analysis of factorial experiments is formulated as shown next. Assume a factorial experiment in which the effect of two factors,
where:
represents the overall mean effect is the effect of the th level of factor ( ) is the effect of the th level of factor ( ) represents the interaction effect between and represents the random error terms (which are assumed to be normally distributed with a mean of zero and variance of )- and the subscript
denotes the replicates ( )
Since the effects
Hypothesis Tests in General Factorial Experiments
These tests are used to check whether each of the factors investigated in the experiment is significant or not. For the previous example, with two factors,
The test statistics for the three tests are as follows:
- 1)
- where
is the mean square due to factor and is the error mean square.
- where
- 1)
- 2)
- where
is the mean square due to factor and is the error mean square.
- where
- 2)
- 3)
- where
is the mean square due to interaction and is the error mean square.
- where
- 3)
The tests are identical to the partial
where
Similarly the test statistic to test significance of factor
It is recommended to conduct the test for interactions before conducting the test for the main effects. This is because, if an interaction is present, then the main effect of the factor depends on the level of the other factors and looking at the main effect is of little value. However, if the interaction is absent then the main effects become important.
Example
Consider an experiment to investigate the effect of speed and type of fuel additive used on the mileage of a sports utility vehicle. Three speeds and two types of fuel additives are investigated. Each of the treatment combinations are replicated three times. The mileage values observed are displayed in the table below.
The experimental design for the data is shown in the figure below.
In the figure, the factor Speed is represented as factor
The test statistics for the three tests are:
- 1.
- where
is the mean square for factor and is the error mean square
- where
- 1.
- 2.
- where
is the mean square for factor and is the error mean square
- where
- 2.
- 3.
- where
is the mean square for interaction and is the error mean square
- where
- 3.
The ANOVA model for this experiment can be written as:
where
Expression of the ANOVA Model as y = ΧΒ + ε
Since the effects
Therefore, only two of the
Therefore, only one of the
The last five equations given above represent four constraints, as only four of these five equations are independent. Therefore, only two out of the six
The regression version of the ANOVA model can be obtained using indicator variables, similar to the case of the single factor experiment in Fitting ANOVA Models. Since factor
Factor
The
In matrix notation this model can be expressed as:
- where:
The vector
Knowing
Calculation of Sum of Squares for the Model
The model sum of squares,
where
The total sum of squares,
Since there are 18 observed response values, the number of degrees of freedom associated with the total sum of squares is 17 (
Since there are three replicates of the full factorial experiment, all of the error sum of squares is pure error. (This can also be seen from the preceding figure, where each treatment combination of the full factorial design is repeated three times.) The number of degrees of freedom associated with the error sum of squares is:
Calculation of Extra Sum of Squares for the Factors
The sequential sum of squares for factor
where
Since there are two independent effects (
Similarly, the sum of squares for factor
Since there is one independent effect,
The sum of squares for the interaction
Since there are two independent interaction effects,
Calculation of the Test Statistics
Knowing the sum of squares, the test statistic for each of the factors can be calculated. Analyzing the interaction first, the test statistic for interaction
The
Assuming that the desired significance level is 0.1, since
The test statistic for factor
The
Since
The test statistic for factor
The
Since
Calculation of Effect Coefficients
Results for the effect coefficients of the model of the regression version of the ANOVA model are displayed in the Regression Information table in the following figure. Calculations of the results in this table are discussed next. The effect coefficients can be calculated as follows:
Therefore,
For example, the standard error for
Then the
The
Confidence intervals on
Thus, the 90% limits on
Least Squares Means
The estimated mean response corresponding to the
Residual Analysis
As in the case of single factor experiments, plots of residuals can also be used to check for model adequacy in factorial experiments. Box-Cox transformations are also available in DOE++ for factorial experiments.