1.3.5.4. One-Factor ANOVA
| 1. Exploratory Data Analysis 1.3. EDA Techniques 1.3.5. Quantitative Techniques | |||
| Purpose: Test for Equal Means Across Groups | One factor analysis of variance (Snedecor and Cochran, 1989) is a special case of analysis of variance (ANOVA), for one factor of interest, and a generalization of the two-sample t-test. The two-sample t-test is used to decide whether two groups (levels) of a factor have the same mean. One-way analysis of variance generalizes this to levels where k, the number of levels, is greater than or equal to 2. For example, data collected on, say, five instruments have one factor (instruments) at five levels. The ANOVA tests whether instruments have a significant effect on the results. | ||
| Definition | The Product and Process Comparisons chapter (chapter 7) contains a more extensive discussion of one-factor ANOVA, including the details for the mathematical computations of one-way analysis of variance. The model for the analysis of variance can be stated in two mathematically equivalent ways. In the following discussion, each level of each factor is called a cell. For the one-way case, a cell and a level are equivalent since there is only one factor. In the following, the subscript i refers to the level and the subscript j refers to the observation within a level. For example, Y23 refers to the third observation in the second level. 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 estimated 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, the effect of the ith factor level, and an error term. The analysis of variance provides estimates of the grand mean and the effect of the ith factor level. 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 the effect of the i-th factor level. 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, Eij, 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. |
| One-Way ANOVA Example | A one-way analysis of variance was generated for the GEAR.DAT data set. The data set contains 10 measurements of gear diameter for ten different batches for a total of 100 measurements. ```text |
code
DEGREES OF SUM OF MEANSOURCE FREEDOM SQUARES SQUARE F STATISTIC
BATCH 9 0.000729 0.000081 2.2969
RESIDUAL 90 0.003174 0.000035
TOTAL (CORRECTED) 99 0.003903 0.000039
RESIDUAL STANDARD DEVIATION = 0.00594
BATCH N MEAN SD(MEAN)
1 10 0.99800 0.00188 2 10 0.99910 0.00188 3 10 0.99540 0.00188 4 10 0.99820 0.00188 5 10 0.99190 0.00188 6 10 0.99880 0.00188 7 10 1.00150 0.00188 8 10 1.00040 0.00188 9 10 0.99830 0.00188 10 10 0.99480 0.00188
The
| *Question* | The analysis of variance can be used to answer the following question - Are means the same across groups in the data? |
| *Importance* | The analysis of uncertainty depends on whether the factor significantly affects the outcome. |
| *Related Techniques* | [Two-sample *t*-test](/u/d2a8db76a26f9c49) [Multi-factor analysis of variance](/u/af541c26c44aab25) [Regression](https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd141.htm) [Box plot](https://www.itl.nist.gov/div898/handbook/eda/section3/boxplot.htm) |
| *Software* | Most general purpose statistical software programs can generate an analysis of variance. Both [Dataplot code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda354.dp) and [R code](https://www.itl.nist.gov/div898/handbook/eda/section3/eda354.r) can be used to generate the analyses in this section. These scripts use the [GEAR.DAT](https://www.itl.nist.gov/div898/handbook/datasets/GEAR.DAT) data file. |