1.3.5.5. Multi-factor Analysis of Variance
| 1. Exploratory Data Analysis 1.3. EDA Techniques 1.3.5. Quantitative Techniques | |||
| Purpose: Detect significant factors | The analysis of variance (ANOVA) (Neter, Wasserman, and Kutner, 1990) is used to detect significant factors in a multi-factor model. In the multi-factor model, there is a response (dependent) variable and one or more factor (independent) variables. This is a common model in designed experiments where the experimenter sets the values for each of the factor variables and then measures the response variable. Each factor can take on a certain number of values. These are referred to as the levels of a factor. The number of levels can vary betweeen factors. For designed experiments, the number of levels for a given factor tends to be small. Each factor and level combination is a cell. Balanced designs are those in which the cells have an equal number of observations and unbalanced designs are those in which the number of observations varies among cells. It is customary to use balanced designs in designed experiments. | ||
| Definition | The Product and Process Comparisons chapter (chapter 7) contains a more extensive discussion of two-factor ANOVA, including the details for the mathematical computations. The model for the analysis of variance can be stated in two mathematically equivalent ways. We explain the model for a two-way ANOVA (the concepts are the same for additional factors). In the following discussion, each combination of factors and levels is called a cell. In the following, the subscript i refers to the level of factor 1, j refers to the level of factor 2, and the subscript k refers to the kth observation within the (i,j)th cell. For example, Y235 refers to the fifth observation in the second level of factor 1 and the third level of factor 2. The first model is This model decomposes the response into a mean for each cell and an error term. The analysis of variance provides estimates for each cell mean. These cell means are the predicted values of the model and the differences between the response variable and the estimated cell means are the residuals. That is The second model is This model decomposes the response into an overall (grand) mean, factor effects ( and represent the effects of the i-th level of the first factor and the j-th level of the second factor, respectively), and an error term. The analysis of variance provides estimates of the grand mean and the factor effects. The predicted values and the residuals of the model are The distinction between these models is that the second model divides the cell mean into an overall mean and factor effects. This second model makes the factor effect more explicit, so we will emphasize this approach. | ||
| Model Validation | Note that the ANOVA model assumes that the error term, Eijk, should follow the assumptions for a univariate measurement process. That is, after performing an analysis of variance, the model should be validated by analyzing the residuals. | ||
| Multi-Factor ANOVA Example | An analysis of variance was performed for the JAHANMI2.DAT data set. The data contains four, two-level factors: table speed, down feed rate, wheel grit size, and batch. There are 30 measurements of ceramic strength for each factor combination for a total of 480 measurements. ```text | ||
| SOURCE DF SUM OF SQUARES MEAN SQUARE F STATISTIC |
TABLE SPEED 1 26672.726562 26672.726562 6.7080 DOWN FEED RATE 1 11524.053711 11524.053711 2.8982 WHEEL GRIT SIZE 1 14380.633789 14380.633789 3.6166 BATCH 1 727143.125000 727143.125000 182.8703 RESIDUAL 475 1888731.500000 3976.276855 TOTAL (CORRECTED) 479 2668446.000000 5570.868652
RESIDUAL STANDARD DEVIATION = 63.05772781
FACTOR LEVEL N MEAN SD(MEAN)
TABLE SPEED -1 240 657.53168 2.87818 1 240 642.62286 2.87818 DOWN FEED RATE -1 240 645.17755 2.87818 1 240 654.97723 2.87818 WHEEL GRIT SIZE -1 240 655.55084 2.87818 1 240 644.60376 2.87818 BATCH 1 240 688.99890 2.87818 2 240 611.15594 2.87818
| *Questions* | The analysis of variance can be used to answer the following questions: 1. Do any of the factors have a significant effect? 2. Which is the most important factor? 3. Can we account for most of the variability in the data? |
| *Related Techniques* | [One-factor analysis of variance](/u/e358b47166d48c46) [Two-sample *t*-test](/u/d2a8db76a26f9c49) [Box plot](https://www.itl.nist.gov/div898/handbook/eda/section3/boxplot.htm) [Block plot](https://www.itl.nist.gov/div898/handbook/eda/section3/blockplo.htm) [DOE mean plot](https://www.itl.nist.gov/div898/handbook/eda/section3/dexmeanp.htm) |
| *Case Study* | The quantitative ANOVA approach can be contrasted with the more graphical EDA approach in the [ceramic strength](/u/97bf426f4364afe3) case study. |
| *Software* | Most general purpose statistical software programs can perform multi-factor analysis of variance. Both [Dataplot code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda355.dp) and [R code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda355.r) can be used to generate the analyses in this section. These scripts use the [JAHANMI2.DAT](https://www.itl.nist.gov/div898/handbook/datasets/JAHANMI2.DAT) data file. |