### Chapter M0. The Analysis of Variance

STA 3032, section CWH2, Sommer

#### The following data was reported on total Fe for four types of iron formation [tex]$(1=$[/tex] carbonate, [tex]$2=$[/tex] silicate, [tex]$3=$[/tex] magnetite, [tex]$4=$[/tex] hematite [tex]$)$[/tex]:

\begin{tabular}{llllllllllll}
1: & 20.8 & 28.1 & 27.8 & 27.0 & 27.9 & 25.2 & 25.3 & 27.1 & 20.5 & 31.1 \\
\hline 2: & 26.4 & 24.0 & 26.2 & 20.2 & 23.6 & 34.0 & 17.1 & 26.8 & 23.7 & 25.2 \\
\hline 3: & 29.6 & 34.0 & 27.5 & 29.4 & 28.5 & 26.2 & 29.9 & 29.5 & 30.0 & 36.4 \\
\hline 4: & 36.8 & 44.2 & 34.1 & 30.3 & 31.5 & 33.1 & 34.1 & 32.9 & 36.3 & 25.7 \\
\end{tabular}

#### Carry out an analysis of variance [tex]$F$[/tex] test at a significance level of 0.01. State the appropriate hypotheses.

[tex]\[ H_0: \mu_1 = \mu_2 = \mu_3 = \mu_4 \][/tex]
[tex]\[ H_a: \text{At least two } \mu_i \text{ are unequal} \][/tex]

#### Summarize the results in an ANOVA table. (Round your answers to two decimal places.)

\begin{tabular}{|c|c|c|c|c|c|c|c|}
\hline
Source & df & Sum of Squares & Mean Squares & [tex]$F$[/tex] \\
\hline
Treatments & 3 & 522.20 & 127.37 & 11.03 \\
\hline
Error & 36 & 174.00 & 22.82 & \\
\hline
Total & 39 & 1278.08 & & \\
\hline
\end{tabular}



Answer :

Certainly! Let's walk through the process of performing an Analysis of Variance (ANOVA) test. We have data on the total Fe content for four types of iron formations: carbonate, silicate, magnetite, and hematite.

### Hypotheses:
- Null hypothesis ([tex]\(H_0\)[/tex]): The means of the total Fe content for all four types of iron formations are equal.
[tex]\[ H_0: \mu_1 = \mu_2 = \mu_3 = \mu_4 \][/tex]
- Alternative hypothesis ([tex]\(H_a\)[/tex]): At least two of the means are different.
[tex]\[ H_a: \text{At least two }\mu_i \text{ are unequal} \][/tex]

### Building the ANOVA Table:
To carry out the ANOVA, we create an ANOVA table which includes sources of variation, degrees of freedom (df), sum of squares (SS), mean squares (MS), and the F-statistic.

1. Degrees of Freedom (df):
- Between groups (treatments): [tex]\( df_{between} = k - 1 = 4 - 1 = 3 \)[/tex], where [tex]\(k = 4\)[/tex] is the number of groups.
- Within groups (error): [tex]\( df_{within} = N - k = 40 - 4 = 36 \)[/tex], where [tex]\(N = 40\)[/tex] is the total number of observations.

2. Sum of Squares (SS):
- Between groups (SS[tex]\(_{between}\)[/tex]): 522.2
- Within groups (SS[tex]\(_{within}\)[/tex]): 174.00

3. Mean Squares (MS):
- Between groups (MS[tex]\(_{between}\)[/tex]):
[tex]\[ MS_{between} = \frac{SS_{between}}{df_{between}} = \frac{522.2}{3} = 174.07 \][/tex]
- Within groups (MS[tex]\(_{within}\)[/tex]):
[tex]\[ MS_{within} = \frac{SS_{within}}{df_{within}} = \frac{174.00}{36} = 4.83 \][/tex]

4. F-Statistic:
- The F-statistic is the ratio of the mean squares:
[tex]\[ F_{calculated} = \frac{MS_{between}}{MS_{within}} = \frac{174.07}{4.83} = 36.01 \][/tex]

5. p-value:
- Obtained p-value is approximately [tex]\(2.82 \times 10^{-5}\)[/tex].

### ANOVA Summary Table:
```
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{Source} & \multicolumn{2}{|c|}{df} & \multicolumn{2}{|c|}{Sum of Squares} & \multicolumn{2}{|c|}{Mean Squares} & \multicolumn{2}{|c|}{F} \\
\hline
& Treatment & Error & Treatment & Error & Treatment & Error & Calculated F & p-value \\
\hline
& 3 & 36 & 522.2 & 174.0 & 174.07 & 4.83 & 36.01 & [tex]\(2.82 \times 10^{-5}\)[/tex] \\
\hline
Total & & & 696.2 & & & & \\
\hline
\end{tabular}
```

### Conclusion:
Since the calculated p-value ([tex]\(2.82 \times 10^{-5}\)[/tex]) is significantly less than the significance level ([tex]\(\alpha = 0.01\)[/tex]), we reject the null hypothesis. This indicates that there are significant differences between the means of the total Fe content for the different types of iron formations. In other words, not all the means are equal, and at least two of the means are significantly different.