On this page
9.2 Two-Way ANOVA - Fixed Effects
Often, when studying a process, product or service, we have several factors that can influence the characteristic of interest. The ANOVA technique makes it possible to evaluate the impact that these factors have on the characteristic of interest. To do this, consider an experiment with two factors, called $A$ and $B$, in which the factor $A$ has the levels and the factor $B$ has $b$ levels. For each level combination, we perform $r$ replicas. In the table below, we present the experiment data:
| $ \textbf{Fator A}$ \ $\textbf {Fator B} $ | $ 1 $ | $ 2 $ | $ \dots $ | $ b $ | $ \textbf{Média} $ |
|---|---|---|---|---|---|
| $ 1 $ | $ y_{111},\ldots,y_{11r} $ | $ y_{121},\ldots,y_{12r} $ | $ \ldots $ | $ y_{1b1},\ldots,y_{1or} $ | $ \overline{y}_{1..} $ |
| $ 2 $ | $ y_{211},\ldots,y_{21r} $ | $ y_{221},\ldots,y_{22r} $ | $ \ldots $ | $ y_{2b1},\ldots,y_{2or} $ | $ \overline{y}_{2..} $ |
| $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ |
| $ a $ | $ y_{a11},\ldots,y_{a1r} $ | $ y_{a21},\ldots,y_{a2r} $ | $ \ldots $ | $ y_{ab1},\ldots,y_{abr} $ | $ \overline{y}_{a..} $ |
| Average | $ \overline{y}_{.1.} $ | $ \overline{y}_{.2.} $ | $ \ldots $ | $ \overline{y}_{.b.} $ | $ \overline{y}_{…} $ |
Table 9.2.1: Presentation of data for two factors.
Example 2.1
A company that produces windshield wipers for cars wants to know how the factors Type of Reduction Box and Type of Shaft, used in the manufacture of the motors that drive the wipers, influence the noise produced when they are used. To do this, we carried out an experiment with $ 54 $ engines, with $ 3 $ Shaft types (Rolled, Cut and Imported) and $ 2 $ types of Reduction Boxes (National and Imported). For each engine (experimental unit) we measured the noise. The data are in Table 9.2.2.
| Axis Type | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Type of Reduction Box | Rolled | Cropped | Imported | ||||||
| $ 42,1 $ | $ 42 $ | $ 40,3 $ | $ 38,2 $ | $ 37,4 $ | $ 37 $ | $ 40,9 $ | $ 40,7 $ | $ 39,4 $ | |
| National | $ 38,9 $ | $ 38,9 $ | $ 43,7 $ | $ 42,3 $ | $ 41,3 $ | $ 42,1 $ | $ 42 $ | $ 41,4 $ | $ 41,3 $ |
| $ 41 $ | $ 40,1 $ | $ 40,3 $ | $ 40,5 $ | $ 41,3 $ | $ 40,4 $ | $ 40,6 $ | $ 41,3 $ | $ 41,6 $ | |
| $ 39,6 $ | $ 40,2 $ | $ 48,4 $ | $ 41,3 $ | $ 46,8 $ | $ 40,3 $ | $ 39,6 $ | $ 36,9 $ | $ 39,9 $ | |
| Imported | $ 40,9 $ | $ 41 $ | $ 41 $ | $ 40,5 $ | $ 39,9 $ | $ 39,3 $ | $ 38,1 $ | $ 38,1 $ | $ 36,2 $ |
| $ 39,9 $ | $ 41 $ | $ 42,7 $ | $ 41,3 $ | $ 40,1 $ | $ 41,6 $ | $ 36,7 $ | $ 36,7 $ | $ 36,7 $ |
Table 9.2.2: Windshield wiper noise (dB).
In this experiment, we are interested in finding the combination between gearbox and shaft that minimizes noise. When we carry out an experiment with two or more factors, we have to be very careful in interpreting the results. One of the fundamental points of the analysis is the evaluation of the interaction between the factors (gearbox and shaft) with respect to the characteristic of interest (noise).
Interaction graph
The interaction between factors corresponds to the difference in behavior of one factor (example, gearbox) at different levels of the other factor (axis) with respect to the characteristic of interest (noise). One of the simplest ways to evaluate the interaction between factors is the interaction graph. Next, we will build the interaction graph for an example of the noise in the motor that activates the windshield wipers.
Example 2.2
In this example, we will build the interaction graph for Example 2.1. To build the interaction graph we need to calculate the averages $ \overline{y}_{ij.} $ for $ i=1,2 $ and $ j=1,2,3 $ of each combination of factor levels. Thus, for the National Reduction Box and Rolled Axle treatment, we have:
$$\overline{y}_{11.}=\frac{1}{r}\sum_{k=1}^{r}y_{11k}=\frac{42,1+42+40,3+38,9+38,9+43,7+41+40,1+40,3}{9}$$
$$={367,3}{9}=40,81,$$
National Reduction Box and Cut Axle, we have:
$$\overline{y}_{12.}=\frac{1}{r}\sum_{k=1}^{r}y_{11k}=\frac{38,2+ 37,4+37+42,3+41,3+42,1+40,5+41,3+40,4}{9}$$
$$={360,5}{9}=40,06.$$
Likewise, we have:
$ \overline{y}_{13.}= 41,02, \quad \overline{y}_{21.}= 41,63, \quad \overline{y}_{22.}= 41,23 \quad$ and $ \quad \overline{y}_{23.}= 37,7. $
Example 2.3
Below, we display these averages in a graph. Results of this example obtained with the Action software:
Figure 9.2.1: Interaction graph.
Conclusion
The interaction between factors is associated with the change in behavior of one factor at different levels of the other factor, in relation to the characteristic of interest. In figure 9.2.1, we observe that when the gearbox is national (blue line), the three shaft levels (Cut, Imported and Rolled) do not cause a significant change in the engine noise. However, when the reduction gearbox is imported (red line), there is a difference in noise between the three types of shaft. In this case, for an imported axis we have lower noise. In this way, we evidenced an interaction between the factors (gearbox and shaft) in the characteristic of interest (noise). Depending on the type of gearbox, the behavior of the shaft, with respect to noise, is different. This difference characterizes what we call interaction.
Main Effects Chart
When we evaluate the results of our experiment and evidence the presence of interaction, we must be very careful in interpreting these results. In general, in this situation, we lose the interpretation of the isolated influence of factors. However, if we do not show interaction between the factors, we can evaluate the isolated influence of the factors via the main effects graph. The main effects graph helps us evaluate the effect of each factor individually.
Figure 9.2.2 has no relation to the example of windshield wipers.
Figure 9.2.2: Example of main effects graph.
Example 2.4
A process engineer wants to evaluate the impact of the cutting tool on the diameter of parts. To do this, an experiment was carried out with two factors, tool wear and cutting angle. For each factor, two levels were considered.
| Tool | Angle | Diameter |
|---|---|---|
| New | A | 18046,9 |
| New | A | 18046,9 |
| New | A | 18047 |
| New | A | 18047 |
| New | A | 18047,3 |
| New | A | 18047,3 |
| New | A | 18047 |
| New | A | 18047,1 |
| New | A | 18047 |
| New | A | 18046,9 |
| New | A | 18047,1 |
| New | A | 18047 |
| New | A | 18046,9 |
| New | A | 18047 |
| New | A | 18046,8 |
| New | A | 18047 |
| New | A | 18046,9 |
| New | A | 18047 |
| New | A | 18047 |
| New | A | 18047 |
| New | A | 18047 |
| New | A | 18047,1 |
| New | A | 18046,8 |
| New | A | 18047 |
| New | B | 18047,1 |
| New | B | 18047,1 |
| New | B | 18047,1 |
| New | B | 18046,8 |
| New | B | 18046,8 |
| New | B | 18047 |
| New | B | 18047 |
| New | B | 18046,8 |
| New | B | 18047 |
| New | B | 18047 |
| New | B | 18046,8 |
| New | B | 18047 |
| New | B | 18046,9 |
| New | B | 18046,9 |
| New | B | 18046,5 |
| New | B | 18046,5 |
| New | B | 18047,3 |
| New | B | 18047,1 |
| New | B | 18047 |
| New | B | 18047,2 |
| New | B | 18046,9 |
| New | B | 18047,2 |
| New | B | 18047 |
| New | B | 18047,2 |
| New | B | 18047,4 |
| New | B | 18047,1 |
| old | A | 18048,5 |
| old | A | 18048,3 |
| old | A | 18047,9 |
| old | A | 18047,8 |
| old | A | 18047,7 |
| old | A | 18047,8 |
| old | A | 18047,6 |
| old | A | 18047,5 |
| old | A | 18048 |
| old | A | 18047,8 |
| old | A | 18047,9 |
| old | A | 18047,4 |
| old | A | 18047,9 |
| old | A | 18047,7 |
| old | A | 18047,7 |
| old | A | 18047,6 |
| old | A | 18047,8 |
| old | A | 18047,8 |
| old | A | 18047,6 |
| old | A | 18047,8 |
| old | A | 18047,6 |
| old | A | 18047,9 |
| old | A | 18047,8 |
| old | A | 18047,8 |
| old | B | 18047,8 |
| old | B | 18047,7 |
| old | B | 18047,8 |
| old | B | 18047,7 |
| old | B | 18047,9 |
| old | B | 18047,8 |
| old | B | 18047,7 |
| old | B | 18048,1 |
| old | B | 18048 |
| old | B | 18047,6 |
| old | B | 18047,8 |
| old | B | 18047,6 |
| old | B | 18047,9 |
| old | B | 18047,9 |
| old | B | 18047,9 |
| old | B | 18047,8 |
| old | B | 18047,5 |
| old | B | 18048,3 |
| old | B | 18048 |
| old | B | 18047,7 |
| old | B | 18047,6 |
| old | B | 18047,6 |
| old | B | 18047,6 |
| old | B | 18047,7 |
| old | B | 18047,6 |
| old | B | 18047,7 |
Table 9.2.3: Tool wear and cutting angle for two angles (factors)
Initially, let’s evaluate the interaction graph. To build the interaction graph we need to calculate the averages $ \overline{y}_{ij.} $ for $ i=1,2 $ and $ j=1,2 $ of each combination of factor levels. Thus, for the Tool and Angle factors, we have:
$$\overline{y}_{11.}=\frac{1}{r}\sum_{k=1}^{r}y_{11k}=18047$$
$$\overline{y}_{12.}=\frac{1}{r}\sum_{k=1}^{r}y_{11k}=18046,99$$
Likewise, we have:
$ \overline{y}_{21.}= 18047,8, ~~ \overline{y}_{22.}= 18047,78 $. Next, we display the means in the interaction graph.
Figure 9.2.3: Interaction Chart between factors
When evaluating the graph above, we did not see any interaction between the factors, as regardless of the useful life of the tool (New or Old), the effect caused by the cutting angle is the same (negligible). Thus, we conclude that the effect of the cutting angle factor (A and B) is the same at both levels of the tool life factor (New and Old), which characterizes a lack of interaction. In this case, we can interpret the main effects plots.
In the main effects graph we use the averages for each level, as follows
$$\overline{Y}_{i..}=\frac{1}{b~r}\sum_{j=1}^{b}\sum_{k=1}^{r}y_{ijk}~~~\hbox{e}~~~\overline{y}_{.j.}=\frac{1}{a~r}\sum_{i=1}^{a}\sum_{k=1}^{r}y_{ijk}.$$
Thus, in relation to the Tool factor, we have:
$$\overline{y}_{1..}=\frac{1}{b~r}\sum_{j=1}^{b}\sum_{k=1}^{r}y_{1jk}=18046,99~~~{e}$$
$$\overline{y}_{2..}=18047,79.$$
Repeating the same procedure for the Angle factor levels, we obtain:
$$\overline{y}_{.1.}=18047,40~ ~~ \hbox{ e } ~~ ~\overline{y}_{.2.}=18047,38.$$
Thus we constructed Figure 9.2.4, with the main effects.
Results of this example obtained with the Action software:
| Level | Lower Limit | Effect for average | Upper Limit |
|---|---|---|---|
| A | 18047.3452 | 18047.4 | 18047.4548 |
| B | 18047.332 | 18047.3846 | 18047.4372 |
Table 9.2.4: Confidence interval for the Angle Effect
| Level | Lower Limit | Effect for average | Upper Limit |
|---|---|---|---|
| New | 18046.9403 | 18046.994 | 18047.0477 |
| old | 18047.7363 | 18047.79 | 18047.8437 |
Table 9.2.5: Tool Effect confidence interval
Figure 9.2.4: Main effects.
Through the main effects graph, we have evidence that the tool factor impacts the part diameter. However, we did not show any impact of the angle factor on the characteristic of interest (diameter).
9.2.1 Models
Model for the data
In order for us to analyze the results of the experiment, we need a model that describes the data. To facilitate notation, we present a balanced data model (the number of replicas (r) does not depend on the treatment (ij)). In this case we take:
$$Y_{ijk}=\mu+\alpha_i+\beta_j+\tau_{ij}+\varepsilon_{ijk}~~ \begin{cases} i=1,\ldots,a \hbox{ Fator A} \cr j=1,\ldots, b \hbox{ Fator B} \cr k=1,\ldots,r \hbox{ Réplica} \end{cases} \tag{2.1.1}$$
restricted to
$$\alpha_{.}=\sum_{i=1}^{a}\alpha_i=0~,~\beta_{.}=\sum_{j=1}^{b}\beta_j=0 \tag{2.1.2}$$
$$\tau_{.j}=\sum_{i=1}^{a}\tau_{ij}=0~,~\tau_{i.}=\sum_{j=1}^{b}\tau_{ij}=0 \tag{2.1.2}$$
During the development of this module we will use the following notation:
$$y_{i..} = \sum_{j=1}^{b}\sum_{k=1}^{r}y_{ijk}~,~~y_{.j.}=\sum_{i=1}^{a}\sum_{k=1}^{r}y_{ijk}~,~~y_{ij.}=\sum_{k=1}^{r}y_{ijk}~,~~y_{…}=\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}y_{ijk}$$
$$\overline{Y}_{i..}=\frac{1}{b~r}\sum_{j=1}^{b}\sum_{k=1}^{r}y_{ijk}~,~~\overline{y}_{.j.}=\frac{1}{a~r}\sum_{i=1}^{a}\sum_{k=1}^{r}y_{ijk}~,~~\overline{y}_{ij.}=\frac{1}{r}\sum_{k=1}^{r}y_{ijk},$$
$$\overline{y}_{…}=\frac{1}{b~a~r}\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}y_{ijk}$$
We assume that errors $ \varepsilon_{ijk} $ are independent and have a normal distribution with mean 0 and variance $ \sigma^2 $.
How the mistakes $ \varepsilon_{ijk} $ are independent, we obtain that the observations $ Y_{ijk} $ are also independent. Logo
$$\varepsilon_{ijk}\sim N(0;~\sigma^2)~~~\hbox{e}~~Y_{ijk}\sim N(\mu +\alpha_i+\beta_j+\tau_{ij};~\sigma^2).$$
Notation
-
$ Y_{ijk} $ represents the kth reading at the ith level of factor A and jth level of factor B;
-
$ \mu $ is the overall average of the data;
-
$ \alpha_i $ is the effect of the level $ i $ of factor A;
-
$ \beta_j $ is the effect of the level $ j $ factor B;
-
$ \tau_{ij} $ is the effect of the interaction $ ij $ between the factors;
-
$ \varepsilon_{ijk} $ is the random error.
In a two-factor experiment, we have several interests. Firstly, we need to assess whether there is an interaction between the factors. As we saw previously, the interaction graph presents us with evidence of the interaction. Here, we will evaluate the effect of the interaction through a hypothesis test. If the interaction effect is not significant, we evaluate the main (individual) effects, also through appropriate hypothesis tests. In the table below, we present a summary of the hypothesis tests.
| Objective | Hypothesis |
|---|---|
| effect of factor A | (A) $\begin{cases} H_0: \alpha_1 = \cdots = \alpha_a = 0 \cr H_a: \alpha_i \neq 0 ~~ (i = 1,…,a) \end{cases}$ |
| effect of factor B | (B) $\begin{cases} H_0: \beta_1 = \cdots = \beta_b = 0 \cr H_a: \beta_j \neq 0 ~~ (j = 1,…,b) \end{cases}$ |
| Effect of Interaction (A x B) | (C) $\begin{cases} H_0: \tau_{ij} = 0 \hbox{ para todos os valores de i e j} \cr H_a: \tau_{ij} \neq 0 \end{cases}$ |
Table 9.2.6: Summary of hypothesis tests
9.2.2 Decomposition of the Sum of Squares
Here, we will “break” the total variability of the data, called the total sum of squares, into several components. In this case, we show that
$ SQ_T = SQ_A + SQ_B + SQ_{AB} + SQ_E $
in which $ SQ_T $ is the total sum of squares, $ SQ_A $ is the sum of squares of factor A, $ SQ_B $ is the sum of squares of the factor $ B $, $ SQ_{AB} $ is the sum of squares of the interaction $ A\times B $ and $ SQ_E $ is the sum of squares of the error. For this, we have to
$$\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}(y_{ijk}- \overline{y}_{…})^2=$$
$$=\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}\left[(\overline{y}_{i..}-\overline{y}_{…})+(\overline{y}_{.j.}-\overline{y}_{…})+(\overline{y}_{ij.}-\overline{y}_{i..}-\overline{y}_{.j.}+\overline{y}_{…})+ (y_{ijk}-\overline{y}_{ij.})\right]^2 $$
After some algebraic manipulations, we obtain that
$$\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}(y_{ijk}-\overline{y}_{…})^2=b~r \sum_{i=1}^{a}(\overline{y}_{i..}-\overline{y}_{…})^2 +a~r\sum_{j=1}^{b}(\overline{y}_{.j.}-\overline{y}_{…})^2 +r~\sum_{i=1}^{a}\sum_{j=1}^{b}(\overline{y}_{ij.}-\overline{y}_{i..}-\overline{y}_{.j.}+\overline{y}_{…})^2$$
$$+\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}(y_{ijk}-\overline{y}_{ij.})^2$$
Therefore
$$SQ_T=\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}(y_{ijk}-\overline{y}_{…})^2$$
$$SQ_A=b~r\sum_{i=1}^{a}(\overline{y}_{i..}-\overline{y}_{…})^2$$
$$SQ_B=a~r\sum_{j=1}^{b}(\overline{y}_{.j.}-\overline{y}_{…})^2$$
$$SQ_{AB}=r~\sum_{i=1}^{a}\sum_{j=1}^{b}(\overline{y}_{ij.}-\overline{y}_{i..}-\overline{y}_{.j.}+\overline{y}_{…})^2$$
$$SQ_E=\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{r}(y_{ijk}-\overline{y}_{ij.})^2 $$
A convenient way to calculate the sum of squares is to use the sample variance calculation. In Table 9.2.7 we present which variances we must calculate.
| $ \textbf{Fator A}$ \ $\textbf {Fator B} $ | $ 1 $ | $ 2 $ | $ \dots $ | $ b $ | $ \textbf{Média} $ | |
|---|---|---|---|---|---|---|
| $ 1 $ | $ y_{111},\ldots,y_{11r} $ $$ s^2_{11}$$ | $ y_{121},\ldots,y_{12r}$ $$ s^2_{12}$$ | $ \ldots $ | $ y_{1b1},\ldots,y_{1or}$ $$ s^2_{1b}$$ | $ \overline{y}_{1..} $ | |
| $ 2 $ | $ y_{211},\ldots,y_{21r}$ $$ s^2_{21}$$ | $ y_{221},\ldots,y_{22r}$ $$ s^2_{22}$$ | $ \ldots $ | $ y_{2b1},\ldots,y_{2or}$ $$ s^2_{2b}$$ | $ \overline{y}_{2..} $ | |
| $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ | $ \vdots $ | $s^2_A$ |
| $ a $ | $ y_{a11},\ldots,y_{a1r}$ $$ s^2_{a1}$$ | $ y_{a21},\ldots,y_{a2r}$ $$ s^2_{a2}$$ | $ \ldots $ | $ y_{ab1},\ldots,y_{abr}$ $$ s^2_{ab}$$ | $ \overline{y}_{a..} $ | |
| Average | $ \overline{y}_{.1.} $ | $ \overline{y}_{.2.} $ | $ \ldots $ | $ \overline{y}_{.b.} $ | $ \overline{y}_{…} $ | |
| $s^2_B$ |
Table 9.2.7: Data entry and variances.
Therefore,
$$SQ_T=(a~b~r - 1)~s^2_g \tag{2.2.1}$$
$$SQ_A=b~r~(a - 1)~s^2_A \tag{2.2.2}$$
$$SQ_B=a~r~(b - 1)~s^2_B \tag{2.2.3}$$
$$SQ_E=(r - 1)~\sum_{i=1}^{a}\sum_{j=1}^{b}~s^2_{ij} \tag{2.2.4}$$
$$SQ_{AB}=SQ_T-SQ_B-SQ_A-SQ_E \tag{2.2.5}$$
Therefore:
- $ s^2_g $: represents the sampling variance with respect to all data,
$$s^2_g = \frac{1}{a~b~r - 1}\sum_{i=1}^{p}\sum_{j=1}^{b}\sum^{r}_{k=1}(y_{ijk} - \overline{y}_{…})^2;$$
- $ s^2_A $: represents the sample variance in relation to the average levels of Factor A,
$$s^2_A = \frac{1}{a - 1}\sum_{i=1}^{a}(\overline{Y}_{i..} - \overline{y}_{…})^2;$$
- $ s^2_B $: represents the sample variance in relation to the average levels of Factor B,
$$s^2_B = \frac{1}{b - 1}\sum^{b}_{j=1}(\overline{y}_{.j.} - \overline{y}_{…})^2; \quad \hbox{e}$$
- $ s^2_{ij} $: represents the sampling variance with respect to each combination of A and B,
$$s^2_{ij} = \frac{1}{r - 1}\sum^{r}_{k=1}(y_{ijk} - \overline{y}_{ij.})^2.$$
Calculation of Degrees of Freedom
The number of degrees of freedom in a sum of squares is the number of independent elements in that sum. For example, consider the sum of squares $ \sum\limits_{i=1}^{a}(\overline{y}_{i..}- \overline{y}_{…})^2 $. In this case, how $ \sum\limits_{i=1}^{a}(\overline{y}_{i..}-\overline{y}_{…})=0 $, not all elements $ (\overline{y}_{1..}-\overline{y}_{…}),\ldots, (\overline{y}_{a..}-\overline{y}_{…}) $ are independent. Therefore, we have $ (a-1) $ degrees of freedom. In this sense, the respective degrees of freedom associated with each sum of squares are:
| Effect | Degree of Freedom |
|---|---|
| Factor A | a - 1 |
| B Factor | b - 1 |
| Interaction $ A \times B $ | $ (a - 1)(b - 1) $ |
| Error | $ a~b~(r - 1) $ |
| Total | $ a~b~r - 1 $ |
Figure 9.2.8: degrees of freedom
Calculation of mean squares
Each sum of squares divided by its degree of freedom determines the mean square (QM), that is
$$QM_A = \frac{SQ_A}{a - 1} \tag{2.2.6}~~~~~~~~~~~~~~~\hbox{Fator A}$$
$$QM_B = \frac{SQ_B}{b - 1} \tag{2.2.7}~~~~~~~~~~~~~~~\hbox{Fator B}$$
$$QM_{AB} = \frac{SQ_{AB}}{(a - 1)(b - 1)} \tag{2.2.8}~~~~{A\times B}$$
$$QM_E = \frac{SQ_E}{a~b~(r - 1)} \tag{2.2.9}~~~~~~~~~\hbox{Réplica}$$
Considering the expressions (2.2.1)-(2.2.5) and remembering that the model is restricted to the conditions (2.1.2)
$$\alpha_{.}=\sum_{i=1}^{a}\alpha_i=0,$$
$$\beta_{.}=\sum_{j=1}^{b}\beta_j=0,$$
$$\tau_{.j}=\sum_{i=1}^{a}\tau_{ij}=0,$$
$$\tau_{i.}=\sum_{j=1}^{b}\tau_{ij}=0,$$
let’s calculate the expected value of QM.
For the Factor $ A $, we have to
$$E(QM_A) = E\left(\frac{SQ_A}{a - 1}\right) = \frac{1}{a - 1}E(SQ_A)$$
$$ = \frac{1}{a - 1}~E \left[b~r \sum_{i=1}^{a}\left(\overline{y}_{i..} - \overline{y}_{…}\right)^2\right]$$
$$ = \frac{b~r}{a - 1} E \left[ \sum_{i=1}^{a} \overline{Y}_{i..}^2 - a \overline{y}_{…}^2 \right] = \frac{b~r}{a-1} \left[ \sum_{i=1}^{a} E(\overline{Y}_{i..}^2) - a E(\overline{y}_{…}^2) \right]$$
We know that
$$\overline{y}_{i..}~\sim~N \left(\mu + \alpha_{i}+\overline{\beta_.}+\overline{\tau}_{i.}~;~\frac{\sigma^2}{b~r}\right),~~~~~~~~~~~~\overline{y}_{…}~\sim~N\left(\mu+\overline{\alpha}_{.}+\overline{\beta}_{.}+\overline{\tau}_{..}~;~\frac{\sigma^2}{a~b~r}\right)$$
with
$ \overline{\alpha}_{.}~=\cfrac{\alpha_{.}}{a} $,$ \overline{\beta}_{.}~=\cfrac{\beta_{.}}{b} $,
$ \overline{\tau}_{i.}=\cfrac{\tau_{i.}}{a} $,
$ \overline{\tau}_{.j}=\cfrac{\tau_{.j}}{b} $,
and $ \overline{\tau}_{..}~=\cfrac{\tau_{..}}{a b} $.
Remembering the constraints (2.1.2), we are left with
$$\overline{y}_{i..}~\sim~N \left(\mu + \alpha_{i} ~;~\frac{\sigma^2}{b~r}\right),~~~~~~~~~~~~\overline{y}_{…}~\sim~N \left(\mu ~;~\frac{\sigma^2}{a~b~r}\right).$$
With this,
$$E(QM_A) = \frac{b~r}{a - 1} \left[ \sum_{i=1}^{a} \left[ {var}(\overline{y}_{i..})+(E(\overline{y}_{i..}))^2 \right]-a \left[ {var}(\overline{y}_{…})+(E(\overline{y}_{…}))^2 \right] \right]$$
using the constraints (2.1.2) we have
$$ = \sigma^2 + \frac{b~r}{a - 1}~\sum_{i=1}^{a}\left(\alpha_i+\overline{\alpha}_{.}+ \overline{\tau}_{i.}+\overline{\tau}_{..}\right)^2 =\sigma^2+\frac{b~r}{a-1}~\sum_{i=1}^{a}\left(\alpha_i\right)^2$$
In a similar way we obtain the expectations of the other mean squares. Briefly we have:
$$E(QM_A) = \sigma^2+\frac{b~r}{a-1}~\sum_{i=1}^{a}\left(\alpha_i\right)^2$$
$$E(QM_B) = \sigma^2 + \frac{a~r}{b - 1}~\sum^{b}_{j=1}\left(\beta_j\right)^2$$
$$E(QM_{AB}) = \sigma^2 + \frac{r}{(b-1)(a-1)}~\sum_{i=1}^{a}\sum^{b}_{j=1}\left(\tau_{ij}\right)^2$$
$$E(QM_E) = \sigma^2$$
9.2.3 Statistical Analysis
Next, we will develop a test $ F $ to evaluate the effect of the interaction and the main effects, as shown in the table below:
| Objective | Hypothesis |
|---|---|
| effect of factor A | (A) $\begin{cases} H_0: \alpha_1 = \cdots = \alpha_a = 0 \cr H_a: \alpha_i \neq 0 ~~ (i = 1,…,a) \end{cases}$ |
| effect of factor B | (B) $\begin{cases} H_0: \beta_1 = \cdots = \beta_b = 0 \cr H_a: \beta_j \neq 0 ~~ (j = 1,…,b) \end{cases}$ |
| Effect of Interaction (A x B) | (C) $\begin{cases} H_0: \tau_{ij} = 0 \hbox{ para todos os valores de i e j} \cr H_a: \tau_{ij} \neq 0 \end{cases}$ |
Table 9.2.8: Summary of hypothesis tests
We know that the total sum of squares is decomposed in the form $ SQ_T = SQ_A + SQ_B + SQ_{AB} + SQ_E. $
Thus, through Cochran’s theorem, we guarantee, under $ {H}_0 $, the independence of the sums of squares and
$$\cfrac{SQ_A}{\sigma^2} \sim \chi^2_{(a - 1)}~~~ ~~ \hbox{ e } ~~ ~~~\cfrac{SQ_E}{\sigma^2 } \sim \chi^2_{(a~b~(r - 1))},$$
In this way, under $ {H}_0 $ (hypotheses A) statistics
$$F_0=\cfrac{\displaystyle\frac{SQ_A}{(\sigma^2)~(a-1)}}{\cfrac{SQ_E}{\sigma^2~a~b~(r-1)}}~ = ~\cfrac{QM_A}{QM_E} \sim F(a-1;~a~b~(r-1)),$$
that is, $ {F}_0 $ has F-Snedecor distribution with (a-1) degrees of freedom in the numerator and [$ab(r-1)$] degrees of freedom in the denominator.
To determine the test statistics for hypotheses B, we obtain from Cochran’s theorem that, under $ {H}_0 $
$$\cfrac{SQ_B}{\sigma^2} \sim \chi^2_{(b - 1)}~~~ ~~ \hbox{ e } ~~ ~~~\cfrac{SQ_E}{\sigma^2} \sim \chi^2_{(a~b~(r - 1))}~,$$
are independent. Thus, we conclude that the statistics (under $ {H}_0 $)
$$F_0 =\cfrac{\displaystyle\cfrac{SQ_B}{(\sigma^2)~(b-1)}}{\cfrac{SQ_E}{\sigma^2~(a~b~(r-1))}}~ = ~\cfrac{QM_B}{QM_E} \sim F(b - 1;a~b~(r - 1)),$$
i.e. $ {F}_0 $ has F-Snedecor distribution with (b-1) degrees of freedom in the numerator and [$ab(r-1)$] degrees of freedom in the denominator.
To determine the test statistics for hypotheses C, we obtain from Cochran’s theorem that, under $ {H}_0 $
$$\cfrac{SQ_{AB}}{\sigma^2} \sim \chi^2_{(a - 1)(b - 1)}~~~~~\hbox{e~também,}~~~~~\cfrac{SQ_E}{\sigma^2} \sim \chi^2_{(a~b~(r - 1))}~~,$$
are independent. So, under $ {H}_0 $ we have the statistics
$$F_0=\cfrac{\displaystyle\cfrac{SQ_{AB}}{(\sigma^2)~(a-1)(b-1)}}{\cfrac{SQ_E}{(\sigma^2 )~(a~b~(r-1))}}~ = ~\cfrac{QM_{AB}}{QM_E}~~\sim~F((a-1)(b-1);(ab(r-1)))$$
has F-Snedecor distribution with (a - 1)(b - 1) degrees of freedom in the numerator and [a b (r - 1)] degrees of freedom in the denominator.
The critical region (RC) of the F test is given by $ RC=(F~\in~\Re^+ ~\mid~F > F_{1-\alpha}) $.
The critical value $ F_{1-\alpha} $ corresponds to the quantile $ (1-\alpha)100 \char37 $ of the F-Snedecor distribution with the respective degrees of freedom of the numerator and denominator and the level of significance $ \alpha $. Figure 9.2.5 shows the critical region of the test.
Figure 9.2.5: Critical region of the F test.
The statistical test for the proposed hypotheses (A, B, C) is summarized in the table below.
| FV | Degrees of Freedom | Sum of Squares | Medium Squares | F | P-Value |
|---|---|---|---|---|---|
| Factor A | $ a -1 $ | $ SQ_A $ | $ QM_A $ | $ F_{A}=\cfrac{QM_A}{QM_E} $ | $ P(F> F_A) $ |
| B Factor | $ b -1 $ | $ SQ_B $ | $ QM_B $ | $ F_{B}=\cfrac{QM_B}{QM_E} $ | $ P(F> F_B) $ |
| Interaction ($ A\times B $) | $ (a -1)(b -1) $ | $ SQ_{AB} $ | $ QM_{AB} $ | $ F_{AB}=\cfrac{QM_{AB}}{QM_E} $ | $ P(F> F_{AB}) $ |
| Error | $ a~b~(r -1) $ | $ SQ_E $ | $ QM_E $ | ||
| Total | $ a~b~r - 1 $ | $ SQ_T $ |
Table 9.2.9: Analysis of Variance Table (ANOVA).
Example 2.3.1
We will carry out a complete study of the data from Example 2.1, which is repeated in Table 9.2.10.
| $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad $ | Axis Type $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad$ |
|---|
| Type of Reduction Box | Rolled | Cropped | Imported | ||||||
|---|---|---|---|---|---|---|---|---|---|
| $ 42,1 $ | $ 42 $ | $ 40,3 $ | $ 38,2 $ | $ 37,4 $ | $ 37 $ | $ 40,9 $ | $ 40,7 $ | $ 39,4 $ | |
| National | $ 38,9 $ | $ 38,9 $ | $ 43,7 $ | $ 42,3 $ | $ 41,3 $ | $ 42,1 $ | $ 42 $ | $ 41,4 $ | $ 41,3 $ |
| $ 41 $ | $ 40,1 $ | $ 40,3 $ | $ 40,5 $ | $ 41,3 $ | $ 40,4 $ | $ 40,6 $ | $ 41,3 $ | $ 41,6 $ | |
| $ 39,6 $ | $ 40,2 $ | $ 48,4 $ | $ 41,3 $ | $ 46,8 $ | $ 40,3 $ | $ 39,6 $ | $ 36,9 $ | $ 39,9 $ | |
| Imported | $ 40,9 $ | $ 41 $ | $ 41 $ | $ 40,5 $ | $ 39,9 $ | $ 39,3 $ | $ 38,1 $ | $ 38,1 $ | $ 36,2 $ |
| $ 39,9 $ | $ 41 $ | $ 42,7 $ | $ 41,3 $ | $ 40,1 $ | $ 41,6 $ | $ 36,7 $ | $ 36,7 $ | $ 36,7 $ |
Table 9.2.10: Windshield wiper noise (dB).
For the example data, we have:
$$y_{11.}=42,1+42+40,3+38,9+38,9+43,7+41+40,1+40,3=367,3,\quad{e}$$
$$\overline{y}_{11.}=\cfrac{367,3}{9}=40,81, \quad {e}$$
$$\sqrt{s^2_{11}}=\sqrt{\cfrac{1}{8}[(42,1-40,81)^2+(42-40,81)^2+\ldots+(40,1-40,81)^2+(40,3-40,81)^2]}$$
$$=\sqrt{\cfrac{19,79}{8}} = 1,5728.$$
| Axis Type | ||||
|---|---|---|---|---|
| Type of Reduction Box | Rolled | Cropped | Imported | Average |
| National | $$y_{11.} = 367,30$$ $$\bar{y}_{11.} = 40,81$$ $$\sqrt{s^2_{11}} = 1,57$$ | $$y_{12.} = 360,50$$ $$\bar{y}_{12.} = 40,06$$ $$\sqrt{s^2_{12}} = 2,01$$ | $$y_{13.} = 369,20$$ $$\bar{y}_{13.} = 41,02$$ $$\sqrt{s^2_{13}} = 0,75$$ | $$y_{1..} = 1097$$ $$\bar{y}_{1..} = 40,63$$ |
| Imported | $$y_{21.} = 374,70$$ $$\bar{y}_{21.} = 41,63$$ $$\sqrt{s^2_{21}} = 2,69$$ | $$y_{22.} = 371,10$$ $$\bar{y}_{22.} = 41,23$$ $$\sqrt{s^2_{22}} = 2,22$$ | $$y_{23.} = 339,30$$ $$\bar{y}_{23.} = 37,70$$ $$\sqrt{s^2_{23}} = 1,32$$ | $$y_{2..} = 1085,10$$ $$\bar{y}_{2..} = 40,19$$ |
| Average | $$y_{.1.} = 742$$ $$\bar{y}_{.1.} = 41,22$$ | $$y_{.2.} = 731,60$$ $$\bar{y}_{.2.} = 40,64$$ | $$y_{.3.} = 708,50$$ $$\bar{y}_{.3.} = 39,36$$ | $$y_{…} = 2182,10$$ $$\bar{y}_{…} = 40,41$$ |
Table 9.2.11: Windshield wiper noise (dB).
In the sum of squares, which follows, A represents the Reduction Box Type factor and B the Axle Type factor.
$$SQ_A=3*9\left((40,63-40,41)^2+(40,19-40,41)^2\right)$$
$$=2,6224$$
$$SQ_B=2*9 \left((41,22-40,41)^2+(40,64-40,41)^2 + (39,36 - 40,41)^2\right)$$
$$=32,6670$$
$$SQ_E=(42,1-40,81)^2+(42-40,81)^2+\ldots+(37,2-37,70)^2+(36,7-37,70)^2$$
$$=167,8067$$
$$SQ_T=(42,1-40,41)^2+(42-40,41)^2+\ldots+(37,2-40,41)^2+(36,7-40,41)^2$$
$$=259,4254$$
$$SQ_{AB}=259,43-2,62-32,67-167,81$$
$$=56,3293$$
The respective degrees of freedom associated with each sum of squares are:
| Effect | Degree of Freedom |
|---|---|
| Factor A | 1 |
| B Factor | 2 |
| Interaction $ A \times B $ | 2 |
| Error | 48 |
| Total | 53 |
Table 9.2.12: degrees of freedom
The mean squares (QM) are:
$$QM_A=\cfrac{2,62224}{1}=2,62224$$
$$QM_B=\cfrac{32,6670}{2}=16,3335$$
$$QM_{AB}=\cfrac{56,3293}{2}=28,1646$$
$$QM_E=\cfrac{167,8067}{48}=3,4960$$
| FV | Degrees of Freedom | Sum of Squares | Medium Squares | F | P-value |
|---|---|---|---|---|---|
| Axis (B) | 2 | 32,6670 | 16,3335 | $ \cfrac{16,3335}{3,4960}=4,6721 $ | 0,0140 |
| Reduction Box (A) | 1 | 2,6224 | 2,6224 | $ \cfrac{2,6224}{3,4960}=0,7501 $ | 0,3907 |
| Interaction ($ A \times B $) | 2 | 56,3629 | 28,1646 | $ \cfrac{28,1646}{3,4960}=8,0563 $ | 0,0010 |
| Waste | 48 | 167,8067 | 3,4960 | ||
| Total | 53 | 259,4254 |
Table 9.2.13: Analysis of Variance Table (ANOVA).
Results of this example obtained with the Action software:
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Axis | 2 | 32.667 | 16.3335 | 4.6721 | 0.014 |
| Reduction box | 1 | 2.6224 | 2.6224 | 0.7501 | 0.3907 |
| Axis: Gearbox. | 2 | 56.3293 | 28.1646 | 8.0563 | 0.001 |
| Waste | 48 | 167.8067 | 3.496 |
Table 9.2.1: ANOVA Table (Action Stat)
Example 2.3.2
We will do a complete study for the data in Example 2.4
For the example data, we have:
In the sum of squares, which follows, A represents the Tool factor and B the Angle factor.
$$SQ_A=15,8404$$
$$SQ_B=0,0059$$
$$SQ_E=3,547$$
$$SQ_{AB}=0,00037$$
$$SQ_T=19,3936$$
The mean squares (QM) are:
$$QM_A=\cfrac{15,84}{1}=15,84$$
$$QM_B=\cfrac{0,0059}{1}=0,0059$$
$$QM_{AB}=\cfrac{0,00037}{1}=0,00037$$
$$QM_E=\cfrac{3,547}{96}=0,0369$$
| FV | GL | SQ | QM | F | P-value |
|---|---|---|---|---|---|
| Tool (A) | 1 | 15,84 | 15,84 | $ \cfrac{15,8404}{0,037}=428,73 $ | 0 |
| Angle (B) | 1 | 0,0059 | 0,0059 | $ \cfrac{0,0059}{0,037}=0,16 $ | 0,6901 |
| Interaction ($ A \times B $) | 1 | 0,00036 | 0,00036 | $ \cfrac{0,00036}{0,037}=0,01 $ | 0,9206 |
| Waste | 96 | 3,547 | 0,037 | ||
| Total | 99 | 19,3936 |
Table 9.2.15: Analysis of Variance Table (ANOVA).
Results of this example obtained with the Action software:
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Tool | 1 | 15.8404 | 15.8404 | 428.7317 | 0 |
| angle | 1 | 0.0059 | 0.0059 | 0.1599 | 0.6901 |
| Tool:Angle | 1 | 0.0004 | 0.0004 | 0.01 | 0.9206 |
| Waste | 96 | 3.5469 | 0.0369 |
Table 9.2.16: ANOVA Table (Software Action)
9.2.4 Estimation of Model Parameters
Next, we will present the estimators for the model parameters
Model
$$Y_{ijk}=\mu +\alpha_{i}+\beta_{j}+\tau_{ij}+\varepsilon_{ijk},\quad i=1,\ldots,a \quad {e} \quad j=1,\ldots,b.$$
and confidence intervals. As an estimator of the general average, we take
$$\widehat{\mu}=\overline{y}_{…},$$
for the purposes we take
$$\widehat{\alpha_{i}}=\overline{y}_{i..}-\overline{y}_{…}$$
$$\widehat{\beta_{j}}=\overline{y}_{.j.}-\overline{y}_{…}$$
A confidence interval for the mean of the ith level of factor A and the jth level of factor B can be easily established. The average of the ith level of factor A and the jth level of factor B is given by
$$\mu_{i.}=\mu + \alpha_i$$
$$\mu_{j.}=\mu + \beta_j$$
Then, a point estimator for $ \mu_{i.} $ and $ \mu_{j.} $ is defined by
$$\widehat{\mu_{i.}}=\widehat{\mu}+\widehat{\alpha_i} = \overline{y}_{i..}$$
$$\widehat{\mu_{j.}}=\widehat{\mu}+\widehat{\beta_j} = \overline{y}_{.j.}$$
We know that $ Y_{ijk} \sim N(\mu + \alpha_i + \beta_j +\tau_{ij}~;~\sigma^2) $.
Let us assume the constraints (2.1.2), that is, $ \sum\limits^{a_{i=1}}\alpha_i = 0 $, $ \sum\limits^{b}_{j=1}\beta_j = 0 $, $ \sum\limits^{a}_{i=1}\tau_{ij} = 0 $ and $ \sum\limits^{b}_{j=1}\tau_{ij} = 0 $. With this, we have to
$$\overline{y}_{i..} \sim N \left(\mu+\alpha_i~;~\frac{\sigma^2}{b~r}\right) \hbox{e} ~~ \overline{y}_{.j.}\sim N\left(\mu+\beta_j~;~\frac{\sigma^2}{a~r}\right).$$
Furthermore, we conclude that
$$z = \frac{\overline{y}_{i..}- \mu_{i.}}{\sqrt{{var}(\overline{y}_{i..})}}\sim N(0,1) ~~ \hbox{ e } ~~ \frac{a~b~(r - 1)QM_E}{\sigma^2}~\sim~\chi^2_{(a~b~(r-1))}$$
In this way, we obtain that
$$T = \cfrac{\cfrac{\overline{y}_{i..} - \mu_{i.}}{\sqrt{{var}(\overline{y}_{i..})}}}{\sqrt{\cfrac{\cfrac{a~b~(r-1)QM_E}{\sigma^2}}{a~b~(r-1)}}} = \cfrac{\overline{y}_{i..} - \mu_{i.}}{\sqrt{\cfrac{QM_E}{b~r}}}~\sim~t_{(a~b~(r-1))}$$
that is, T has t-Student distribution with $ [a~b~(r - 1)] $ degrees of freedom. Therefore, the confidence interval of $ (1-\alpha)100 \char37 $ for the average of the ith level of factor A is defined by
$$\overline{y}_{i..}-t(1-\alpha/2;a~b~(r-1))*\sqrt{\frac{QME}{b~r} } \leq \mu_{i.} \leq \overline{y}_{i..}+t(1- \alpha/2;a~b~(r-1))*\sqrt{\frac{QME}{b~r}},$$
in which $ t(1-\alpha/2;a~b~(r-1)) $ represents the quantile $ (1-\alpha/2) $ from the t-Student distribution with $ a~b~(r-1) $ degrees of freedom. Likewise, we have that the confidence interval of $ (1-\alpha)100 \char37 $ for the average of the j-th level of factor B is defined by
$$\overline{y}_{.j.}-t(1-\alpha/2;a~b~(r - 1))*\sqrt{\frac{QME}{a~r} } \leq \mu_{.j} \leq \overline{y}_{.j.}+ t(1-\alpha/2;a~b~(r-1))*\sqrt{\frac{QME}{a~r}}$$
We can also create a confidence interval for the difference between the means of the same factor, since
$$\overline{y}_{i..} \sim N\left(\mu+\alpha_i~;~\frac{\sigma^2}{b~r}\right)$$
are independent for $ i=1,\ldots,a $, we have to
$$\overline{y}_{i..} - \overline{y}_{l..} \sim N\left(\alpha_i-\alpha_l~;~\frac{2\sigma^2}b~r\right).$$
Logo
$$ \cfrac{\overline{y}_{i..} - \overline{y}_{l..}-(\alpha_i-\alpha_l)}{\sqrt{\cfrac{2\sigma^2}{b~r}}} \sim N(0,1)$$
In this way, we obtain that
$$T=\frac{\displaystyle\cfrac{\overline{y}_{i..}-\overline{y}_{l..}-(\alpha_i-\alpha_l)}{\displaystyle\sqrt{\cfrac{2\sigma^2}{b~r}}}}{\sqrt{\cfrac{\cfrac{a~b~(r - 1)QM_E}{\sigma^2}}{a~b~(r -1)}}}=\cfrac{\overline{y}_{i..}-\overline{y}_{l..}-(\alpha_i-\alpha_l)}{\sqrt{\cfrac{2*QM_E}{b~r}}}~\sim~t_{(a~b~(r- 1))}$$
Therefore, a confidence interval of $ (1-\alpha)100 \char37 $ for the difference between the means of factor A levels, it will be given by
$$ \overline{y}_{i..}-\overline{y}_{l..}-\Delta \leq \mu_{i.}-\mu_{l.} \leq \overline{y}_{i..} -\overline{y}_{l..} + \Delta$$
where
$$\Delta = t(1 - \alpha /2;a~b~(r - 1)) * \sqrt { \frac {2*QME}{b~r}}.$$
Similarly, we can construct a confidence interval of $ (1-\alpha)100 \char37 $ for the difference between the average levels of factor B, in the form
$$ \overline{y}_{.j.}-\overline{y}_{.l.}-\Delta \leq \mu_{.j}-\mu_{.l} \leq \overline{y}_{.j.}-\overline{y}_{.l.} + \Delta$$
where
$$\Delta=t(1- \alpha/2;a~b~(r - 1))* \sqrt{ \frac{2*QME}{a~r}}.$$
Example 2.4.1
Returning to Example 2.1 (windshield wiper noise), we find the following estimates for the overall mean and level effects.
| $ \widehat{\mu}=\overline{y}_{…} = 40,41 $ | $ \widehat{\beta_{1}}=41,22-40,41=0,81 $ |
|---|---|
| $ \widehat{\alpha_{1}}=40,63-40,41=0,22 $ | $ \widehat{\beta_{2}}=40,64-40,41=0,24 $ |
| $ \widehat{\alpha_{2}}=40,19-40,41=-0,22 $ | $ \widehat{\beta_{3}}=39,36-40,41=-1,05 $ |
Table 9.2.17: parameter estimates
A 95% confidence interval for the mean of level 1 (National) of factor A (Type of Reduction Box) is given by
$$\overline{y}_{1..}-t_{(0,975; 48)}*\sqrt{\frac{QME}{b~r}} \leq \mu_{1.}~~0\leq~~\overline{y}_{1..}+t_{(0,975;48)}*\sqrt{\frac{QME}{b~r}}$$
$$40,63-2,010635*\sqrt{\frac{3,4960}{27}} \leq \mu_{1.} \leq 40,63+2,010635*\sqrt{\frac{3,4960}{27}}$$
$$39,91 \leq {\mu_1.} \leq 41,35$$
A 95% confidence interval for the mean of level 2 (Imported) of factor B (Shaft Type) is given by
$$\overline{y}_{.2.}-t_{(0,975; 48)}*\sqrt{\frac{QME}{a~r}} \leq \mu_{.2} \leq \overline{y}_{.2.}+t_{(0,975; 48)}*\sqrt{\frac{QME}{a~r}}$$
$$39,36-2,010635*\sqrt{\frac{3,4960}{18}} \leq \mu_{.2} \leq 39,36+2,010635*\sqrt{\frac{3,4960}{18}}$$
$$38,47 \leq \mu_{.3} \leq 40,23$$
A 95% confidence interval for the difference between the means of the Cut and Imported level of factor B (Shaft Type) is given by
$$\Delta=t_{(0,975; 48)}*\sqrt{\frac{2*QME}{a~r}}$$
$$\Delta=2,010635*\sqrt{\frac{2*3.4960}{18}}=0,6232506$$
$$ \overline{y}_{.2.}-\overline{y}_{.3.}-\Delta \leq \mu_{2.}-\mu_{3.} \leq \overline{y}_{.2.}-\overline{y}_{.3.}+\Delta $$
$$40,64-39,36-0,6232506 \leq \mu_{2.}-\mu_{3.} \leq 40,64-39,36+0,6232506$$
$$0,6567 \leq \mu_{2.}-\mu_{3.} \leq 1,903251$$
Using the Action software we have the following results:
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Axis | 2 | 32.667 | 16.3335 | 3.6437 | 0.0333 |
| Reduction box | 1 | 2.6224 | 2.6224 | 0.585 | 0.448 |
| Waste | 50 | 224.1359 | 4.4827 |
Table 9.2.18: ANOVA table
| Level | Lower Limit | Effect for average | Upper Limit |
|---|---|---|---|
| Cropped | 39.6421 | 40.6444 | 41.6468 |
| Imported | 38.3588 | 39.3611 | 40.3635 |
| Rolled | 40.2199 | 41.2222 | 42.2246 |
Table 9.2.19: Axis Effect confidence interval
| Level | Lower Limit | Effect for average | Upper Limit |
|---|---|---|---|
| Imported | 39.3705 | 40.1889 | 41.0073 |
| National | 39.8112 | 40.6296 | 41.448 |
Table 9.2.20: Confidence interval for the Reducing Cash Effect
| Factor | Average | Standard Deviation | Lower Limit | Upper Limit |
|---|---|---|---|---|
| Rolled | 41.2222 | 2.1787 | 40.1388 | 42.3056 |
| Imported | 39.3611 | 2.0003 | 38.3664 | 40.3559 |
| Cropped | 40.6444 | 2.1426 | 39.5789 | 41.7099 |
Table 9.2.21: Confidence Interval of the Axis Factor Means
| Factor | Average | Standard Deviation | Lower Limit | Upper Limit |
|---|---|---|---|---|
| Imported | 40.1889 | 2.7413 | 39.1045 | 41.2733 |
| National | 40.6296 | 1.5369 | 40.0216 | 41.2376 |
Table 9.2.22: Confidence Interval of the Means of the Reduction Box Factor
Figure 9.2.5: Factor Interval Chart
9.2.5 Waste analysis
The decomposition of variability in analysis of variance is purely algebraic. However, to carry out statistical tests and confidence intervals, we used the following hypotheses:
- The mistakes $ \varepsilon_{ijk} $ are normal and independent, with an average $ 0 $ and constant variance $ \sigma^2; $ and
- Observations are described through the model $ y_{ijk}=\mu + \alpha_{i} + \beta_{j} + \tau_{ij} + \varepsilon_{ijk}. $
In practice, we need to verify that these assumptions are not absurd. Violations in these assumptions are verified through the residuals. The residue for the kth observation of level i of factor A and level j of factor B is defined by:
$$\widehat{e_{ijk}}=y_{ijk}-\widehat{y_{ijk}}. \tag{2.5.1}$$
where $ \widehat{y_{ijk}} $ is an estimate of the observation $ y_{ijk} $
obtained by:
$$\widehat{y_{ijk}}=\widehat{\mu}+\widehat{\alpha}_i+\widehat{\beta_j}+\widehat{\tau_{ij}}$$
$$=\overline{y}_{…}+(\overline{y}_{i..}-\overline{y}_{..})+(\overline{y}_{.j.}-\overline{y}_{..})+\left(\overline{y}_{ij.}-(\widehat{\alpha}_i+\widehat{\beta_j}-\overline{y}_{…})\right)=\overline{y}_{ij.},$$
Therefore
$$\widehat{y_{ijk}}=\overline{y}_{ij.}. \tag{2.5.2}$$
For more details check the content of Normality Tests (Statistical Inference).
Example 2.5.1
Let us consider the data presented in Example 2.1 and calculate the residuals of the observations.
We remember that the residuals are calculated using the equation $ \widehat{e_{ijk}}=y_{ijk}-\widehat{y_{ijk}}, $ according to (2.5.1), with the $ y_{ijk} $ are each of the values of the response variable, in this case the Noise produced by the windshield wiper, and which $ \widehat{y_{ijk}} = \overline{y}_{ij.}, $ according to expression (2.5.2).
Table 9.2.23 contains the residuals of the example data.
| Axis Type | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Type of Reduction Box | Rolled | Cropped | Imported | ||||||
| 1,29 | 1,19 | -0,51 | -1,86 | -2,66 | -3,06 | -0,12 | -0,32 | -1,62 | |
| National | -1,91 | -1,91 | 2,89 | 2,24 | 1,24 | 2,04 | 0,98 | 0,38 | 0,28 |
| 0,19 | -0,71 | -0,51 | 0,44 | 1,24 | 0,34 | -0,42 | 0,28 | 0,58 | |
| -2,03 | -1,43 | 6,77 | 0,07 | 5,57 | -0,93 | 1,9 | -0,8 | 2,2 | |
| Imported | -0,73 | -0,63 | -0,63 | -0,73 | -1,33 | -1,93 | 0,4 | 0,3 | -1,5 |
| -1,73 | -0,63 | 1,07 | 0,07 | -1,13 | 0,37 | -1 | -0,5 | -1 |
Table 9.2.23: Calculation of Residues.
An important tool in waste analysis are the graphs presented below.
Using the Action software we have the following results:
Figure 9.2.6: Residue graphs.