On this page
9.3 Multiple Comparisons Test
A very common problem in science and industry is comparing different treatments to determine which ones eventually produce a superior result. As an example, suppose a manufacturer wants to examine the effect on sales due to the packaging model used. A reasonable way to proceed is to select a group of stores with comparable sales volume and randomly and independently assign each store a packaging model to test. We assume that relevant conditions that may affect sales, such as price, shelf layout and promotional efforts, are the same for all stores.
When data collection is complete, it may turn out that one packaging model is clearly superior to the others. In this case, there is no need to perform a statistical analysis. On the other hand, the average sales for each model may be so close that it is not easy to decide whether their differences are real or are due to inherent variation in sales between stores. The common method for investigating such differences is ANOVA.
When the results of the Analysis of Variance (ANOVA) lead to the rejection of the null hypothesis, $ (H_0=\mu_1=\ldots=\mu_k) $, which represents the statement that all means (treatments) are equal, we have evidence that the means between levels differ significantly. In our example, $H_0$ indicates that all packaging has the same impact on sales and we will call it the global null hypothesis. In this way, if we do not reject $H_0$, we concluded that there is no difference between the means of the factor levels and the Analysis of Variance is sufficient for the conclusion. However, if we reject $H_0$, we have statistical evidence that at least two levels of the factor differ from each other. Multiple comparison tests allow you to identify these differences between specific pairs of means or in linear combinations of means.
Comparison approach
One possible approach to the multiple comparison problem is to make each comparison independently using a suitable statistical procedure. For example, a statistical hypothesis test can be used to compare each pair of means, $ \mu_i $ and $ \mu_j $, where the null hypothesis and the alternative hypothesis are of the form
$$ \begin{cases} \mu_i = \mu_j \cr \mu_{i} \neq \mu_{j} \end{cases}$$
The usual statistical technique in this case is known as $ t $. With this test, as with any other hypothesis test, there are chances of making mistakes. One of the possible errors is to reject the null hypothesis, when it is true (Type I Error) or to accept the null hypothesis, when it is false (Type II Error). Any rule for deciding between hypotheses $H_0$ and H1 is evaluated in terms of the probabilities of the two types of errors. We denote the probability of rejecting $H_0$, when this is true for
$$\alpha= P(\hbox{rejeitar}~H_0~\hbox{dado que}~H_0~\hbox{é verdadeira})$$
As already seen, the value $ \alpha $ is called the significance level. Specifying the significance level for the test $ t $, the experimenter controls the probability of finding erroneous differences. When each of several hypothesis tests are performed at the same level of significance $ \alpha $, $ \alpha $ is called the significance level by comparison.
An alternative way to test the difference between means $ \mu_i $ and $ \mu_j $ is to calculate a confidence interval for $ \mu_i-\mu_j $. A confidence interval is formed using the following expression
$$(\hbox{estimativa~pontual})\pm(\hbox{margem~de~erro}),$$
where the point estimate is the best guess for the value $ \mu_i-\mu_j $ based on sample data. In our example, this point estimate would be the difference in the average sales of the package models $ i $ and $ j $. The margin of error reflects the accuracy of the estimate based on the variability of the data, which also depends on the confidence coefficient which is often denoted by $ 1-\alpha $. The confidence coefficient is an expression of how certain we are that the experimental procedure will result in an interval that contains $ \mu_i-\mu_j $. For multiple confidence intervals, each with confidence coefficient $ 1-\alpha $ is called the comparison confidence coefficient.
The difficulty with the “by comparison” approach to multiple comparisons is the possibility of increasing the probability of Type I Error or (equivalently) the possibility of decreasing the overall confidence level. As an example, let us consider two independent hypothesis tests, each at the significance level $ \alpha $. Thus, the probability that none of them have a Type I Error is $ (1-\alpha)^{2} $. In other words, the probability of at least one Type I Error is $ 1-(1-\alpha)^{2} $. Generally, to test the differences between each pair of $ k $ averages, the total of $ c=\frac{1}{2}k(k-1) $ tests $ t $ at the level of significance $ \alpha $. Therefore, the chance of finding at least one incorrect difference is $ \alpha_c=1-(1-\alpha)^{c} $. For $ k \geq 3 $, in addition to terms $ \alpha_c $ greater than $ \alpha $, we still have to $ \alpha_c $ approaches 1 as $ k $ increases. The following table illustrates this situation, in which we calculate the probability of at least one incorrect rejection of the null hypothesis for different values of $ c $.
| $ c $ | % | $ c $ | % | $ c $ | % |
|---|---|---|---|---|---|
| 1 | 5,00 | 10 | 40,12 | 15 | 53,67 |
| 2 | 9,75 | 11 | 43,12 | 20 | 64,15 |
| 3 | 14,26 | 12 | 45,96 | 30 | 78,53 |
| 4 | 18,55 | 13 | 48,67 | 40 | 87,14 |
| 5 | 22,62 | 14 | 51,23 | 50 | 92,30 |
Table 9.3.1: Number of comparisons ($ c $) and joint confidence levels (%).
We can see from this that the insistence on carrying out many two-by-two comparisons at the level of significance by comparison $ \alpha $, causes us to draw conclusions that two treatments are different, even though they are not.
Family
A family is a set of inferences for which it is important to take into account some measure of global error. For example, the collection of all two-by-two comparisons just discussed is a family, where the total error measure is the probability of finding at least one Type I Error. This family is an example of a finite family (containing c elements), but there can be families with infinite numbers of elements. For example, inferences that incorporate each contrast into the set of all contrasts of $ k $ Averages would form an infinite family, in which a contrast is a linear combination of two or more averages in which the sum of the coefficients is zero.
Error rate
As discussed previously, when a family is composed of multiple hypothesis tests and each hypothesis test is performed at the same level of significance $ \alpha $, then $ \alpha $ is the per-comparison error rate (TPC), that is, the probability of incorrectly rejecting each of the null hypotheses that make up the family. A more appropriate error rate is called the familywise error rate (FWER), which is the probability of incorrectly rejecting at least one of the null hypotheses that make up the family.
After specifying the FWER, the researcher must be careful to perform multiple comparison analyzes that guarantee the valid error rate in all possible configurations (formations) of the population means. Thus, we said that such analyzes should “protect” FWER.
There is also a third type of error rate known as the per-family error rate (TPF), which is not a probability like the other rates are, but represents the expected value of errors in the family. For example, we assume that the global null hypothesis is true if each of the $ c $ testing is carried out with a probability of Type I Error $ \alpha/c $, the expected value of Type I Error is $ c\times (\alpha/c)=\alpha $. This way, when $ \mu_1=\mu_2=\ldots=\mu_k $, the TPF is $ \alpha $. For any other average configurations, the TPF would be less than $ \alpha $. An important and easily verified inequality is that
$$TPC\leq\ FWER \leq TPF$$
Many writers following Tukey (1953) refer to the test family error rate (FWER) and the family error rate (TPF) as the experimentwise error rate and the per-experiment error rate, respectively.
Multiple Comparison Methods
Multiple Comparison Methods (MCMs) are statistical procedures designed to take into account and control the increase in the overall probability of Type I Error or the decrease in the global confidence interval. MCMs can be categorized as “single step” or “stepwise”. For one-step procedures, each of the inferences is performed in a single step, without reference to the other inferences in the family. Examples of one-step MCMs that protect FWER include the Tukey Test (balanced data); Tukey-Kramer test (unbalanced data); Dunnet test; Scheffe test and Bonferroni test. These examples will be seen in detail below.
Stepwise procedures perform comparisons in a series of steps, where the results of the current step influence, if any, comparisons made in the next step. Such procedures can be divided into two types: step-down and step-up.
A “step down” procedure can be initiated, for example, by testing the global null hypothesis; If it is rejected, we move on to the next step. In successive steps, a null hypothesis is tested for a subset of means only if they are part of a larger set of means for which the null hypothesis was rejected during a previous step. The Fisher test is an example of a two-step step-down procedure and will be studied in more detail below.
An example of how we can start a “step up” procedure is to test a hypothesis two by two and depending on the results, the step up procedure for a hypothesis involves a larger number of means. In each succession of steps, a decision is made that involves a greater number of averages or the procedure ends.
Comparison of MCMs
As already seen in previous sections, the power of a hypothesis test is the measure of its ability to identify differences, as identifying differences is normally the reason for the analysis, so among suitable hypothesis tests, the preferred one is the one with the greatest power. When the analysis uses confidence intervals, the MCM that presents the smallest interval is the most powerful.
Two-by-two comparisons
In many practical situations we only want to compare the averages two by two. Often we can determine which means differ from each other by testing all pairs of treatment means. Thus, we are interested in contrasts of the form $ \Gamma=\mu_{i}-\mu_{j} $ for everyone $ i\neq j $. There are several procedures to resolve this problem. We will present some of these procedures in the next sections.
9.3.1 Tukey test
Tukey Test (TSD - Tukey Significant Difference)
The test proposed by Tukey (1953) is also known as Tukey’s test for honestly significant difference (HSD) and Tukey’s test for totally significant difference (WSD). It is an exact test in which, for the family of all $ c=\frac{1}{2}k(k-1) $ two-by-two comparisons, the test family error rate (FWER) is exactly $ \alpha $ (and the confidence interval is exactly 1-$ \alpha $). Accurate multiple comparison methods are rare. The Tukey test has been shown to be analytically optimal, in the sense that, among all procedures that result in confidence intervals with the same size for all two-by-two differences with a family confidence coefficient of at least $ 1-\alpha $, the Tukey test results in smaller intervals. This means that if the family consists of all two-by-two comparisons and the Tukey test can be used, it will result in smaller intervals than any other one-step multiple comparison method.
Tukey’s strategy consists of defining the smallest significant difference. This procedure uses the amplitude of the studentized distribution.
Suppose we have $ k $ independent observations, $Y_1,…,Y_k$, of a normal distribution with mean $μ$ and variance $σ^2$. Be $ w $ the amplitude for this set of observations, thus
$$w=\max(Y_{i})-\min(Y_{i}).$$
Suppose we have an estimate $s^2$ of the variance $σ^2$, which is based on the $ N-k $ degrees of freedom and is independent of $Y_i$, in which $ N $ is the total number of observations. In this way, the reason $ w/s $ is called studentized amplitude and is denoted by $ q(k,N-k)=\frac{w}{s} $, in which $ q $ it is a tabulated value (see Tukey Test Table in the appendix).
For equal sample sizes (balanced data), the Tukey test declares two means significantly different if the absolute value of their sample differences exceeds
$$TSD = q_{\alpha}(k,N-k)\sqrt{\frac{QME}{n}},$$
in which $ n $ is the number of replicas of the level. In other words, we reject the equality of the mean of two levels if $ |\bar{y_{i.}}-\bar{y_{j.}}|> TSD $.
A 100(1-α)% confidence interval for the difference between all pairs of means is given as
$$\bar{y_{i.}}-\bar{y_{j.}}-q_{\alpha}(k,N-k)\sqrt{\frac{QME}{n}}\leq\mu_{i}-\mu_{j}\leq\bar{y_{i.}}-\bar{y_{j.}}+q_{\alpha}(k,N-k)\sqrt{\frac{QME}{n}},~~i\neq j.$$
When sample sizes are different (unbalanced data), the Tukey test is modified and is called by several writers the Tukey-Kramer test. This test is not exact, but it is minimally conservative in the sense that the actual FWER is many times less than $ \alpha $. The Tukey-Kramer test declares two means significantly different if the absolute value of their sample differences exceeds
$$TSD=\dfrac{q_{\alpha}(k,N-k)}{\sqrt{2}}\sqrt{QME\left(\dfrac{1}{n_{i}}+\dfrac{1}{n_{j}}\right)}$$
and the confidence interval, for $ {i}\neq{j} $ is
$$\bar{y_{i.}}-\bar{y_{j.}}-\dfrac{q_{\alpha}(k,N-k)}{\sqrt{2}}\sqrt{QME\left(\dfrac{1}{n_{i}}+ \dfrac{1}{n_{j}}\right)}\leq\mu_{i}-\mu_{j}\leq\bar{y_{i.}}-\bar{y_{j.}}+\dfrac{q_{\alpha}(k,N-k)}{\sqrt{2}}\sqrt{QME \left(\dfrac{1}{n_{i}}+\dfrac{1}{n_{j}}\right)}$$
The Tukey-Kramer test has also been analytically confirmed that, for unbalanced data, it provides uniformly shorter intervals than any of the other one-step MCMs for the family of all two-by-two comparisons.
Example 3.1.1
For the data in Example 1, let’s calculate the TSD value and check which levels are equal.
| Factor | Fiber_Resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.3.2: Data from Example 1
As the data is balanced, we have to:
$$TSD=q_{\alpha}(k,N-k)\sqrt{\frac{QME}{n}}$$
$$TSD=q_{0,05}(5,20)\sqrt{\frac{8,06}{5}}$$
$$TSD=4,232\sqrt{1,612}$$
$$TSD=5,373$$
We reject equality between two levels if:
$ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > 5,373 $
| $ \mid \overline{y}_{i.} - \overline{y}_{j.} \mid $ | Result | $ \mid \overline{y}_{i.} - \overline{y}_{j.} \mid $ | Result |
|---|---|---|---|
| $ \mid \overline{y}_{15} - \overline{y}_{20} \mid $ | 5,6 | $ \mid \overline{y}_{20} - \overline{y}_{30} \mid $ | 6,2 |
| $ \mid \overline{y}_{15} - \overline{y}_{25} \mid $ | 7,8 | $ \mid \overline{y}_{20} - \overline{y}_{35} \mid $ | 4,6 |
| $ \mid \overline{y}_{15} - \overline{y}_{30} \mid $ | 11,8 | $ \mid \overline{y}_{25} - \overline{y}_{30} \mid $ | 4,0 |
| $ \mid \overline{y}_{15} - \overline{y}_{35} \mid $ | 1,0 | $ \mid \overline{y}_{25} - \overline{y}_{35} \mid $ | 6,8 |
| $ \mid \overline{y}_{20} - \overline{y}_{25} \mid $ | 2,2 | $ \mid \overline{y}_{30} - \overline{y}_{35} \mid $ | 10,8 |
Table 9.3.3: Differences between levels
Using the Action software we have the following results:
| G.L. | Sum.of.Squares | Square.Medium | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 4 | 475.76 | 118.94 | 14.7568 | 0 |
| Waste | 20 | 161.2 | 8.06 |
Table 9.3.4: ANOVA table
| Comparisons | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 20-15 | 5.6 | 0.227 | 10.973 | 0.0385 |
| 25-15 | 7.8 | 2.427 | 13.173 | 0.0026 |
| 30-15 | 11.8 | 6.427 | 17.173 | 0 |
| 35-15 | 1 | -4.373 | 6.373 | 0.9798 |
| 25-20 | 2.2 | -3.173 | 7.573 | 0.7372 |
| 30-20 | 6.2 | 0.827 | 11.573 | 0.0189 |
| 35-20 | -4.6 | -9.973 | 0.773 | 0.1163 |
| 30-25 | 4 | -1.373 | 9.373 | 0.2101 |
| 35-25 | -6.8 | -12.173 | -1.427 | 0.0091 |
| 35-30 | -10.8 | -16.173 | -5.427 | 0.0001 |
Table 9.3.5: Multiple Comparisons
| Factor | Averages | Groups |
|---|---|---|
| 30 | 21.6 | to |
| 25 | 17.6 | ab |
| 20 | 15.4 | bc |
| 35 | 10.8 | CD |
| 15 | 9.8 | d |
Table 9.3.6: Grouping
Figure 9.3.1: Confidence Intervals
Conclusion
When considering a significance level of 5%, we do not reject the hypothesis of equality between the level means: (15.35); (20.25); (20.35); (25,30).
Example 3.1.2 (Unbalanced data)
A company is interested in testing four types of package models for a new breakfast cereal. Twenty stores with approximately equal sales volumes were selected. Each store was randomly assigned one of the package models, with each package model assigned to five stores. A fire occurred in a store during the study period, which is why this establishment had to be removed from the research. Thus, one of the models was tested in just four stores. The stores were chosen in order to be compared in relation to sales volume. Relevant conditions that could affect sales such as price, promotions and shelf layout were kept the same for all stores in the experiment. The data from this experiment are below. Let’s calculate the TSD value and check which levels are equal.
| Packages | Stores | Total | Average | Number of stores | ||||
|---|---|---|---|---|---|---|---|---|
| $i$ | $ Y_{i1} $ | $ Y_{i2} $ | $ Y_{i3} $ | $ Y_{i4} $ | $ Y_{i4} $ | $ Y_{i} $ | $ \bar{Y_{i.}} $ | $ n_{i} $ |
| 1 | 11 | 17 | 16 | 14 | 15 | 73 | 14,6 | 5 |
| 2 | 12 | 10 | 15 | 19 | 11 | 67 | 13,4 | 5 |
| 3 | 23 | 20 | 18 | 17 | 78 | 19,5 | 4 | |
| 4 | 27 | 33 | 22 | 26 | 28 | 136 | 27,2 | 5 |
Table 9.3.7: Package sales numbers in different stores
To carry out the analysis of the Action software, we must set up the table as follows:
| Factor | Sales |
|---|---|
| 1 | 11 |
| 1 | 17 |
| 1 | 16 |
| 1 | 14 |
| 1 | 15 |
| 2 | 12 |
| 2 | 10 |
| 2 | 15 |
| 2 | 19 |
| 2 | 11 |
| 3 | 23 |
| 3 | 20 |
| 3 | 18 |
| 3 | 17 |
| 4 | 27 |
| 4 | 33 |
| 4 | 22 |
| 4 | 26 |
| 4 | 28 |
Table 9.3.8: Organized data
Using Action software, the ANOVA table for this data is
| G.L. | Sum of Squares | Medium Square | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 3 | 588.2211 | 196.0737 | 18.5911 | 0 |
| Waste | 15 | 158.2 | 10.5467 |
Table 9.3.9: ANOVA Table
We are interested in finding the 95% confidence interval for the Tukey Test for these unbalanced data. To compare package models 1 and 2, for example, we get:
$$TSD=\dfrac{q_{\alpha}(k,N-k)}{\sqrt{2}}\sqrt{QME\left(\dfrac{1}{n_{i}}+ \dfrac{1}{n_{j}}\right)}$$
$$TSD=\dfrac{q_{0,05}(4,15)}{\sqrt{2}}\sqrt{10,546\left(\dfrac{1}{n_{1}}+\dfrac{1}{n_{2}}\right)}$$
$$TSD=\dfrac{4,08}{\sqrt{2}}\sqrt{10,546\left(\dfrac{1}{5}+\dfrac{1}{5}\right)}=5,925.$$
Therefore, the confidence interval for $ \mu_{1}-\mu_{2} $ is
$$\bar{y_{1.}}-\bar{y_{3.}}-TSD\leq\mu_{1}-\mu_{3}\leq\bar{y_{1.}}-\bar{y_{3.}}+TSD$$
$$(14,6-13,4)-5,925\leq\mu_{1}-\mu_{3}\leq(14,6-13,4)+5,925$$
$$-4,72\leq\mu_{1}-\mu_{2}\leq7,12$$
To compare package models 1 and 3, we get:
$$TSD=\dfrac{q_{\alpha}(k,N-k)}{\sqrt{2}}\sqrt{QME\left(\dfrac{1}{n_{i}}+ \dfrac{1}{n_{j}}\right)}$$
$$TSD=\dfrac{q_{0,05}(4,15)}{\sqrt{2}}\sqrt{10,546\left(\dfrac{1}{n_{1}}+\dfrac{1}{n_{3}}\right)}$$
$$TSD=\dfrac{4,08}{\sqrt{2}}\sqrt{10,546\left(\dfrac{1}{5}+\dfrac{1}{4}\right)}=6,28.$$
Therefore, the confidence interval for $ \mu_{1}-\mu_{3} $ is
$$\bar{y_{1.}}-\bar{y_{3.}}-TSD\leq\mu_{1}-\mu_{3}\leq\bar{y_{1.}}-\bar{y_{3.}}+TSD$$
$$(14,6-19,5)-6,28\leq\mu_{1}-\mu_{3}\leq(14,6-19,5)+6,28$$
$$-11,18\leq\mu_{1}-\mu_{2}\leq1,38$$
In a similar way, we found the 95% confidence intervals for the difference in the other means.
$$-18,52\leq\mu_{1}-\mu_{4}\leq-6,68$$
$$-12,38\leq\mu_{2}-\mu_{3}\leq-0,17$$
$$-19,72\leq\mu_{2}-\mu_{4}\leq-7,88$$
$$-13,97\leq\mu_{3}-\mu_{4}\leq-1,42$$
As the data are not balanced and we have two different values for TSD in this example, we consider here the arithmetic mean of the two rates, that is, $ TSD=\frac{5,96+6,28}{2}=6,12 $.
Thus, we reject equality between two levels if:
$ |\bar{y_{i.}}-\bar{y_{j.}}|>6,12 $
| Result | Result | ||
|---|---|---|---|
| $ |\bar{y_{1.}}-\bar{y_{2.}}| $ | $ 1,2 $ | $ |\bar{y_{2.}}-\bar{y_{3.}}| $ | $ 6,1 $ |
| $ |\bar{y_{1.}}-\bar{y_{3.}}| $ | $ 4,9 $ | $ |\bar{y_{2.}}-\bar{y_{4.}}| $ | $ 13,8 $ |
| $ |\bar{y_{1.}}-\bar{y_{4.}}| $ | $ 12,6 $ | $ |\bar{y_{3.}}-\bar{y_{4.}}| $ | $ 7,7 $ |
Table 9.3.10: Difference between levels
Using the Action software we have the following results:
| G.L. | Sum of Squares | Medium Square | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 3 | 588.2211 | 196.0737 | 18.5911 | 0 |
| Waste | 15 | 158.2 | 10.5467 |
Table 9.3.11: Anova Table
| Comparisons | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 2-1 | -1.2 | -7.1198 | 4.7198 | 0.9353 |
| 3-1 | 4.9 | -1.3789 | 11.1789 | 0.1549 |
| 4-1 | 12.6 | 6.6802 | 18.5198 | 0.0001 |
| 3-2 | 6.1 | -0.1789 | 12.3789 | 0.0583 |
| 4-2 | 13.8 | 7.8802 | 19.7198 | 0 |
| 4-3 | 7.7 | 1.4211 | 13.9789 | 0.0142 |
Table 9.3.12: Multiple Comparisons
| Factor | Averages | Groups |
|---|---|---|
| 4 | 27.2 | to |
| 3 | 19.5 | b |
| 1 | 14.6 | b |
| 2 | 13.4 | b |
Table 9.3.13: Grouping
Figure 9.3.2: Confidence Intervals
Conclusion
When considering a significance level of 5%, we do not reject the hypothesis of equality between the means of the levels: (1.2), (1.3) and (2.3).
9.3.2 Fisher test
Fisher test (or LSD)
Fisher’s method, for comparing all pairs of means, controls the error rate at the significance level α for each two-by-two comparison, but does not control the error rate of the experiment. This procedure uses the statistics $ t $ to test $ H_{0}: \mu_{i}=\mu_{j} $, in which
$$t_{0}=\dfrac{\overline{y}_{i.}-\overline{y}_{j.}}{\sqrt{QME\left(\dfrac{1}{n_{i}}+\dfrac{1}{n_{j}}\right)}}.$$
Fisher’s procedure consists of performing multiple t-tests, each at significance level α, only if the preliminary F test is significant at level α. This can be seen as a two-step procedure in which the null hypothesis $H_0$ is tested in the first step by an α-level F test. If the F test is not significant, the procedure ends without having to make detailed inferences on the pairwise differences in the means; otherwise, each pairwise difference is tested by a t-test with α level of significance. This procedure is called the least significant difference (LSD) test.
LSD controls the error rate of the experiment at level α over $H_0$ due to the “protection” provided for this hypothesis by the preliminary F test. However, in other configurations (hypotheses) of true averages, the error rate of the experiment may be greater than α.
For equal sample sizes (balanced data), Fisher’s test considers two means to be significantly different if the absolute value of their sample differences exceeds
$$LSD=t_{(\frac{\alpha}{2},N-k)}\sqrt{2\frac{QME}{n}},$$
and for different sample sizes (unbalanced data)
$$LSD=t_{(\frac{\alpha}{2},N-k)}\sqrt{QME\left(\frac{1}{n_{i}}+\frac{1}{n_{j}} \right)},$$
in which $ t $ is a tabulated value (see Fisher’s Test Table in the Appendix) that depends on the number of degrees of freedom of the errors ($ N-k $).
In other words, we reject equality between the means of the two levels if $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > LSD. $
There is a second Fisher procedure popularly called the Bonferroni procedure that controls the error family rate of the experiment in the strong sense, that is, in all configurations (hypotheses). We will see more details about this procedure in the next section.
Example 3.2.1
Returning to Example 1 (synthetic fiber resistance), let’s calculate the LSD value and check which treatments are the same.
| Factor | Fiber_Resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.3.14: Data from Example 1
As the data is balanced, we have to:
$$LSD=t_{(\frac{\alpha}{2},N-k)}\sqrt{2\frac{QME}{n}}$$
$$LSD=t_{(0,025;25-5)}\sqrt{2\frac{8,06}{5}}$$
$$LSD=2,086\sqrt{3,224}$$
$$LSD=3,7455$$
Equality between two levels is rejected if
$ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > 3,7455 $
| $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result | $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result |
|---|---|---|---|
| $ \mid \overline{y}_{15}-\overline{y}_{20} \mid $ | $ 5,6 $ | $ \mid \overline{y}_{20}-\overline{y}_{30} \mid $ | $ 6,2 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{25} \mid $ | $ 7,8 $ | $ \mid \overline{y}_{20}-\overline{y}_{35} \mid $ | $ 4,6 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{30} \mid $ | $ 11,8 $ | $ \mid \overline{y}_{25}-\overline{y}_{30} \mid $ | $ 4,0 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{35} \mid $ | $ 1,0 $ | $ \mid \overline{y}_{25}-\overline{y}_{35} \mid $ | $ 6,8 $ |
| $ \mid \overline{y}_{20}-\overline{y}_{25} \mid $ | $ 2,2 $ | $ \mid \overline{y}_{30}-\overline{y}_{35} \mid $ | $ 10,8 $ |
Table 9.3.15: Difference between levels
Using the Action software we have the following results:
| Factor | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 15-20 | -5.6 | -9.3455 | -1.8545 | 0.0054 |
| 15-25 | -7.8 | -11.5455 | -4.0545 | 0.0003 |
| 15-30 | -11.8 | -15.5455 | -8.0545 | 0 |
| 15-35 | -1 | -4.7455 | 2.7455 | 0.5838 |
| 20-25 | -2.2 | -5.9455 | 1.5455 | 0.2347 |
| 20-30 | -6.2 | -9.9455 | -2.4545 | 0.0025 |
| 20-35 | 4.6 | 0.8545 | 8.3455 | 0.0186 |
| 25-30 | -4 | -7.7455 | -0.2545 | 0.0375 |
| 25-35 | 6.8 | 3.0545 | 10.5455 | 0.0012 |
| 30-35 | 10.8 | 7.0545 | 14.5455 | 0 |
Table 9.3.16: Multiple Comparisons by Fisher (Action Stat)
Figure 9.3.3: Confidence Intervals
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the level means: $ (15,35); (20,25) $.
Example 3.2.2
Returning to Example 3.2.1 (package models and sales volumes), let’s calculate the value of LSD and check which treatments are the same.
| Factor | Sales |
|---|---|
| 1 | 11 |
| 1 | 17 |
| 1 | 16 |
| 1 | 14 |
| 1 | 15 |
| 2 | 12 |
| 2 | 10 |
| 2 | 15 |
| 2 | 19 |
| 2 | 11 |
| 3 | 23 |
| 3 | 20 |
| 3 | 18 |
| 3 | 17 |
| 4 | 27 |
| 4 | 33 |
| 4 | 22 |
| 4 | 26 |
| 4 | 28 |
Table 9.3.17: data from Example 3.2.1
Since the data is not balanced, we have to
$$LSD=t_{(\frac{\alpha}{2},N-k)}\sqrt{QME\left(\frac{1}{n_{i}}+\frac{1}{n_{j}}\right)}$$
Let us observe that n1= n2= n4 . This way, we will have two distinct values for LSD here, the value to compare level 3 with the others and the value that compares levels with the same sample size (1, 2 and 4). Let us calculate here to illustrate, the LSD value for the differences between the means $ \mu_1 $ and $ \mu_2 $ and for $ \mu_1 $ and $ \mu_3 $.
$$LSD=t_{\left(\frac{\alpha}{2},N-k\right)}\sqrt{2\frac{QME}{n}}=t_{(\frac{0,05}{2},15)}\sqrt{2\frac{10,55}{5}}=4,378.$$
$$LSD=t_{\left(\frac{\alpha}{2},N-k\right)}\sqrt{QME\left(\frac{1}{n_{1}}+\frac{1}{n_{3}}\right)}=t_{(\frac{0,05}{2},15)}\sqrt{10,55\left(\frac{1}{5}+\frac{1}{4} \right)}=4,643.$$
As the data are unbalanced, the LSD rate considered is the arithmetic mean among all rates in the experiment. In this example, as we have two different values for LSD, the value used is $ LSD=\frac{4,643+4,378}{2}=4,513 $.
Thus, we reject equality between levels if:
$$|\bar{y_{i.}}-\bar{y_{j.}}|>4,513$$
| $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result | $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result |
|---|---|---|---|
| $ |\bar{y_{1.}}-\bar{y_{2.}}| $ | $ 1,2 $ | $ |\bar{y_{2.}}-\bar{y_{3.}}| $ | $ 6,1 $ |
| $ |\bar{y_{1.}}-\bar{y_{3.}}| $ | $ 4,9 $ | $ |\bar{y_{2.}}-\bar{y_{4.}}| $ | $ 13,8 $ |
| $ |\bar{y_{1.}}-\bar{y_{4.}}| $ | $ 12,6 $ | $ |\bar{y_{3.}}-\bar{y_{4.}}| $ | $ 7,7 $ |
Table 9.3.18: Difference between levels
Using the Action software we have the following results:
| Factor | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 1-2 | 1.2 | -3.1779 | 5.5779 | 0.5677 |
| 1-3 | -4.9 | -9.5434 | -0.2566 | 0.0307 |
| 1-4 | -12.6 | -16.9779 | -8.2221 | 0 |
| 2-3 | -6.1 | -10.7434 | -1.4566 | 0.0095 |
| 2-4 | -13.8 | -18.1779 | -9.4221 | 0 |
| 3-4 | -7.7 | -12.3434 | -3.0566 | 0.0019 |
Table 9.3.19: Multiple Comparisons by Fisher
Figure 9.3.4: Confidence Intervals
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the means of levels 1 and 2.
9.3.3 Bonferroni test
The second multiple comparison method proposed by Fisher and usually called the Bonferroni test or procedure, consists of performing a test $ t $ for each pair of means at an error rate per comparison (TPC) of $ \frac{\alpha}{\binom{k}{2}} $. Using this test, the family significance level is at most $ \alpha $, for any configuration (formation) of population means. Thus, we have that the Bonferroni test protects the error rate of the test family. This illustrates the error rate known as error rate per family, which as we have seen represents the expected value of errors in the family.
The Bonferroni test can be used for any balanced or unbalanced data. It is not an exact test, being based on an approximation known as Bonferroni’s first inequality. In some situations, the Bonferroni test appears to be quite “conservative” (weak), that is, the test family error rate (FWER) is much lower than the significance level $ \alpha $ established. For the family of all two-by-two comparisons, it will produce larger confidence intervals than the Tukey or Tukey-Kramer test.
For equal sample sizes (balanced data), the Bonferroni test considers two means to be significantly different if the absolute value of their sample differences exceeds
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{2\frac{QME}{n}},$$
and for different sample sizes (unbalanced data)
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{QME\left(\frac{1}{n_{i}}+\frac{1}{n_{j}}\right)}$$
in which $ \alpha^{,}=\frac{1}{2}(\alpha/c) $ and $ c $ is the number of two-by-two comparisons (or we can also say that it is the number of intervals under study). The quantile $ t_{(\alpha^{,},N-k)} $ is from the probability distribution $ t $-Student with parameter $ N-k $
(see Bonferroni Test Table in the appendix). We thus have that the margin of error of the previous equation depends on the number of comparisons.
Given a family of error rates (FWER) of $ \alpha $, the confidence interval for $ \mu_i-\mu_j $ is calculated using the following expression
$$\bar{y}_{i.}-\bar{y}_{j.}-t_{(\alpha,N-k)}\sqrt{QME\left(\dfrac{1}{n_{i}}+\dfrac{1}{n_{j}}\right)}\leq\mu_{i}-\mu_{j} \leq \bar{y}_{i.}-\bar{y}_{j.}+t_{(\alpha,N-k)}\sqrt{QME\left(\dfrac{1}{n_{i}}+ \dfrac{1}{n_{j}}\right)},$$
Example 3.3.1
Returning to Example 1 (synthetic fiber resistance), let’s calculate the LSD value for the Bonferroni Test and check which levels are equal.
| Factor | Fiber_Resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.3.20: data from Example 1
Since the data is balanced, we have to
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{2\frac{QME}{n}}$$
$$LSD= t_{(\frac{1}{2}(\alpha/\binom{5}{2}),25-5)}\sqrt{2\frac{8,06}{5}}$$
$$LSD= t_{(\frac{1}{2}(0,05/10),20)}\sqrt{2\frac{8,06}{5}}$$
$$LSD= 3,153\sqrt{3,224}$$
$$LSD= 5,662$$
We reject equality between levels if
$ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > 5,662 $
| $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result | $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result |
|---|---|---|---|
| $ \mid \overline{y}_{15}-\overline{y}_{20} \mid $ | $ 5,6 $ | $ \mid \overline{y}_{20}-\overline{y}_{30} \mid $ | $ 6,2 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{25} \mid $ | $ 7,8 $ | $ \mid \overline{y}_{20}-\overline{y}_{35} \mid $ | $ 4,6 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{30} \mid $ | $ 11,8 $ | $ \mid \overline{y}_{25}-\overline{y}_{30} \mid $ | $ 4,0 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{35} \mid $ | $ 1,0 $ | $ \mid \overline{y}_{25}-\overline{y}_{35} \mid $ | $ 6,8 $ |
| $ \mid \overline{y}_{20}-\overline{y}_{25} \mid $ | $ 2,2 $ | $ \mid \overline{y}_{30}-\overline{y}_{35} \mid $ | $ 10,8 $ |
Table 9.3.21: Difference between levels
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the level means: (15.35); (20.25); (20.35) and (25.30).
| Factor | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 20-15 | 5.6 | -0.0621 | 11.2621 | 0.0541 |
| 25-15 | 7.8 | 2.1379 | 13.4621 | 0.0031 |
| 30-15 | 11.8 | 6.1379 | 17.4621 | 0 |
| 35-15 | 1 | -4.6621 | 6.6621 | 1 |
| 25-20 | 2.2 | -3.4621 | 7.8621 | 1 |
| 30-20 | 6.2 | 0.5379 | 11.8621 | 0.0251 |
| 20-35 | 4.6 | -1.0621 | 10.2621 | 0.186 |
| 30-25 | 4 | -1.6621 | 9.6621 | 0.3754 |
| 25-35 | 6.8 | 1.1379 | 12.4621 | 0.0116 |
| 30-35 | 10.8 | 5.1379 | 16.4621 | 0.0001 |
Table 9.3.22: Multiple Comparisons by Fisher-Bonferroni
Figure 9.3.5: Confidence Intervals by Fisher-Bonferroni
Example 3.3.2
Returning to Example 3.2.1 (package models and sales volumes), let’s calculate the value of LSD and check which treatments are the same.
| Factor | Sales |
|---|---|
| 1 | 11 |
| 1 | 17 |
| 1 | 16 |
| 1 | 14 |
| 1 | 15 |
| 2 | 12 |
| 2 | 10 |
| 2 | 15 |
| 2 | 19 |
| 2 | 11 |
| 3 | 23 |
| 3 | 20 |
| 3 | 18 |
| 3 | 17 |
| 4 | 27 |
| 4 | 33 |
| 4 | 22 |
| 4 | 26 |
| 4 | 28 |
Table 9.3.23: data from Example 3.2.1
Since the data is not balanced, we have to
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{QME\left(\frac{1}{n_{i}}+\frac{1}{n_{j}}\right)},$$
in which $ \alpha^{,}=\frac{1}{2}(\alpha/c) $, $ c=\binom{4}{2} $ and $ \alpha=0,05 $.
Let us observe that n1= n2= n4 . This way, we will have two distinct values for LSD here, the value to compare level 3 with the others and the value that compares levels with the same sample size (1, 2 and 4). Let us calculate here to illustrate, the LSD value for the differences between the means $ \mu_1 $ and $ \mu_2 $ and for $ \mu_1 $ and $ \mu_3 $.
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{2\frac{QME}{n}}=t_{(\frac{1}{2}(\alpha/c),19-4)}\sqrt{2 \frac{10,55}{5}}=3,036\sqrt{2\frac{10,55}{5}}=6,236.$$
$$LSD=t_{(\alpha^{,},N-k)}\sqrt{QME\left(\frac{1}{n_{1}}+\frac{1}{n_{3}}\right)}=t_{(\frac{1}{2}(\alpha/c),19-4)}\sqrt{10,55\left(\frac{1}{5}+\frac{1}{4}\right)}=6,615.$$
We reject equalities between level means if $ |\bar{y_{1}}-\bar{y_{2}}|>6,236 $; $ |\bar{y_{1}}-\bar{y_{3}}|>6,615 $; $ |\bar{y_{1}}-\bar{y_{4}}|>6,236 $; $ |\bar{y_{2}}-\bar{y_{3}}|>6,615 $; $ |\bar{y_{2}}-\bar{y_{4}}|>6,236 $ and $ |\bar{y_{3}}-\bar{y_{4}}|>6,615. $
| $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result | $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result |
|---|---|---|---|
| $ |\bar{y_{1.}}-\bar{y_{2.}}| $ | $ 1,2 $ | $ |\bar{y_{2.}}-\bar{y_{3.}}| $ | $ 6,1 $ |
| $ |\bar{y_{1.}}-\bar{y_{3.}}| $ | $ 4,9 $ | $ |\bar{y_{2.}}-\bar{y_{4.}}| $ | $ 13,8 $ |
| $ |\bar{y_{1.}}-\bar{y_{4.}}| $ | $ 12,6 $ | $ |\bar{y_{3.}}-\bar{y_{4.}}| $ | $ 7,7 $ |
Table 9.3.24: Difference between levels
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the means of levels (1,2), (1,3) and (2,3).
| Factor | Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|---|
| 1-2 | 1.2 | -5.0363 | 7.4363 | 1 |
| 3-1 | 4.9 | -1.7146 | 11.5146 | 0.2397 |
| 4-1 | 12.6 | 6.3637 | 18.8363 | 0.0001 |
| 3-2 | 6.1 | -0.5146 | 12.7146 | 0.0808 |
| 4-2 | 13.8 | 7.5637 | 20.0363 | 0 |
| 4-3 | 7.7 | 1.0854 | 14.3146 | 0.018 |
Table 9.3.25: Multiple Comparisons by Fisher-Bonferroni
Figure 9.3.6: Confidence Intervals
9.3.4 Scheffe test
The method proposed by Scheffe (1959) is also known as the Scheffe test for the fully significant difference (FSD) and the Scheffe test for the globally significant difference (GSD)). It is an exact method in the sense that, for (finite) families involving all the contrasts of $ k $ averages, the FWER is exactly $ \alpha $.
The Scheffe Test can be used when comparisons are selected after looking at the data and include contrasts, which are not all pairwise. It can also be used when a large number of contrasts, not all in pairs, are specified before collecting data.
Given a FWER of value $ \alpha $, the confidence interval for the contrast
is calculated using the following formula
$$\sum\limits_{i=1}^{k}c_i\bar{y_{i}}\pm\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{QME\sum\limits_{i=1}^{k}\frac{c_{i}^{2}}{n_{i}}},$$
where the quantile $ F_{\alpha,k-1,v} $ It’s the distribution $ F $ with parameters $ k-1 $ and $ v $ (see Scheffe Test Table in the appendix). The margin of error in the previous expression does not depend on the number of contrasts, but rather on the number of means in the contrast.
Sheffe’s method can also be used for the family of all two-by-two comparisons, but will almost always result in larger confidence intervals than previously studied methods (Tukey, Tukey-Kramer, Fisher, and Bonferroni). Given a FWER of $ \alpha $, the confidence interval for $ \mu_i-\mu_j $ is calculated using the following expression
$$\bar{y_{i.}}-\bar{y_{j.}}\pm\sqrt{(k-1)F_{\alpha,k-1,N-k}}\sqrt{QME\left(\frac{1}{n_i}+\frac{1}{n_j}\right)}.$$
Thus, the Scheffe Test considers two means to be significantly different if the absolute value of their sample differences exceeds
$$FSD=\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{QME\left(\frac{1}{n_i}+\frac{1}{n_j}\right)}.$$
In other words, we reject the equality of the mean of two levels if
$$|\bar{y_{i.}}-\bar{y_{j.}}|> FSD$$
An observation made by some authors is that, because this procedure is extremely conservative, when the interest is only in the two-by-two comparison, the Scheffe test is not appropriate. They further recommend that if the number of contrasts used in the study is not considerably greater than the number of groups, and the contrasts were not suggested by the data, the Bonferroni procedure will probably be more powerful than Scheffe. However, if contrasts are suggested by the data, Scheffe’s method should be employed instead of Bonferroni’s, provided that all possible contrasts have been implicitly considered.
Example 3.4.1
For the data in Example 1, let’s calculate the FSD value and check which levels are equal.
| Factor | Fiber_Resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.3.26: data from Example 1
As the data is balanced, we have to:
$$FSD=\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{2\frac{QME}{n}}$$
$$FSD=\sqrt{(5-1)F_{(0.05,5-1,25-4)}}\sqrt{2\frac{8,06}{5}}$$
$$FSD= \sqrt{(5-1)2,866}\sqrt{3,224}$$
$$FSD=6,079$$
We reject equality between two levels if
$ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > 6,079 $
| $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result | $ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid $ | Result |
|---|---|---|---|
| $ \mid \overline{y}_{15}-\overline{y}_{20} \mid $ | $ 5,6 $ | $ \mid \overline{y}_{20}-\overline{y}_{30} \mid $ | $ 6,2 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{25} \mid $ | $ 7,8 $ | $ \mid \overline{y}_{20}-\overline{y}_{35} \mid $ | $ 4,6 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{30} \mid $ | $ 11,8 $ | $ \mid \overline{y}_{25}-\overline{y}_{30} \mid $ | $ 4,0 $ |
| $ \mid \overline{y}_{15}-\overline{y}_{35} \mid $ | $ 1,0 $ | $ \mid \overline{y}_{25}-\overline{y}_{35} \mid $ | $ 6,8 $ |
| $ \mid \overline{y}_{20}-\overline{y}_{25} \mid $ | $ 2,2 $ | $ \mid \overline{y}_{30}-\overline{y}_{35} \mid $ | $ 10,8 $ |
Table 9.3.27: Difference between levels
Using the Action software we have the following results:
| G.L. | Sum of Squares | Medium Square | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 4 | 475.76 | 118.94 | 14.7568 | 0 |
| Waste | 20 | 161.2 | 8.06 |
Table 9.3.28: ANOVA table
| Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|
| 20 - 15 | 5.6 | -1.0079 | 12.2079 |
| 25 - 15 | 7.8 | 1.1921 | 14.4079 |
| 30 - 15 | 11.8 | 5.1921 | 18.4079 |
| 35 - 15 | 1 | -5.6079 | 7.6079 |
| 25 - 20 | 2.2 | -4.4079 | 8.8079 |
| 30 - 20 | 6.2 | -0.4079 | 12.8079 |
| 20 - 35 | 4.6 | -2.0079 | 11.2079 |
| 30 - 25 | 4 | -2.6079 | 10.6079 |
| 25 - 35 | 6.8 | 0.1921 | 13.4079 |
| 30 - 35 | 10.8 | 4.1921 | 17.4079 |
Table 9.3.29: Multiple Comparisons by Scheffé
Figure9.3.7: Confidence Intervals
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the level means: $ (20,15),(15,35); (20,25); (20,35); (25,30) $
Example 3.4.2
Returning to Example 3.2.1 (package models and sales volumes), let’s calculate the value of LSD and check which treatments are the same.
| Factor | Sales |
|---|---|
| 1 | 11 |
| 1 | 17 |
| 1 | 16 |
| 1 | 14 |
| 1 | 15 |
| 2 | 12 |
| 2 | 10 |
| 2 | 15 |
| 2 | 19 |
| 2 | 11 |
| 3 | 23 |
| 3 | 20 |
| 3 | 18 |
| 3 | 17 |
| 4 | 27 |
| 4 | 33 |
| 4 | 22 |
| 4 | 26 |
| 4 | 28 |
Table 9.3.30: data from example 3.2.1
Since the data is not balanced, we have to
$$FSD=\sqrt{(k-1)F_{\alpha,k-1,N-k}}\sqrt{QME\left(\frac{1}{n_i}+\frac{1}{n_j}\right)}.$$
Let us observe that $n_1= n_2= n_4$ . This way, we will have two distinct values for FSD here, the value to compare level 3 with the others and the value that compares levels with the same sample size (1, 2 and 4). Let us calculate here to illustrate, the value of the FSD for the differences between the means $ \mu_1 $ and $ \mu_2 $ and for $ \mu_1 $ and $ \mu_3 $.
$$FSD=\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{2\frac{QME}{n}}=\sqrt{3\times F_{(0.05,3,15)}}\sqrt{2\frac{10,55}{5}}=6,450$$
$$FSD=\sqrt{(k-1)F_{\alpha,k-1,N-k}}\sqrt{QME\left(\frac{1}{n_i}+\frac{1}{n_j}\right)}=\sqrt{3\times F_{(0.05,3,15)}}\sqrt{10,55\left(\frac{1}{5}+\frac{1}{4}\right)}=6,841$$
As the data are not balanced and we have two different values for FSD in this example, we consider here the arithmetic mean of the two rates, that is, $ FSD=\frac{6,841+6,450}{2}=6,645 $.
Thus, we reject equality between two levels if
$$|\bar{y_{i.}}-\bar{y_{j.}}|>6,645$$
| $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result | $ |\bar{y_{i.}}-\bar{y_{j.}}| $ | Result |
|---|---|---|---|
| $ |\bar{y_{1.}}-\bar{y_{2.}}| $ | $ 1,2 $ | $ |\bar{y_{2.}}-\bar{y_{3.}}| $ | $ 6,1 $ |
| $ |\bar{y_{1.}}-\bar{y_{3.}}| $ | $ 4,9 $ | $ |\bar{y_{2.}}-\bar{y_{4.}}| $ | $ 13,8 $ |
| $ |\bar{y_{1.}}-\bar{y_{4.}}| $ | $ 12,6 $ | $ |\bar{y_{3.}}-\bar{y_{4.}}| $ | $ 7,7 $ |
Table 9.3.31: Difference between levels
Using the Action software we have the following results:
| G.L. | Sum of Squares | Medium Square | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 3 | 588.2211 | 196.0737 | 18.5911 | 0 |
| Waste | 15 | 158.2 | 10.5467 |
Table 9.3.32: ANOVA table
| Center | Lower Limit | Upper Limit | P-value |
|---|---|---|---|
| 1 - 2 | 1.2 | -5.1044 | 7.5044 |
| 3 - 1 | 4.9 | -1.7868 | 11.5868 |
| 4 - 1 | 12.6 | 6.2956 | 18.9044 |
| 3 - 2 | 6.1 | -0.5868 | 12.7868 |
| 4 - 2 | 13.8 | 7.4956 | 20.1044 |
| 4 - 3 | 7.7 | 1.0132 | 14.3868 |
Table 9.3.33: Multiple Comparisons by Scheffé
Figure 9.3.8: Confidence Intervals
Conclusion
When considering a significance level of $ 5 \char37 $, we do not reject the hypothesis of equality between the means of levels (1,2), (1,3) and (2,3).
Example 3.4.3 (Confidence intervals for different mean contrasts)
The data in the table below resulted from an experiment carried out in a completely randomized design, in which each of the four treatments was repeated five times. To illustrate, we will consider as treatments 4 teaching methods that were each applied to 5 groups of children in which, for each application of a method, we have the average performance of each group of children.
| Methods | Performance | Total | Average | Groups | ||||
|---|---|---|---|---|---|---|---|---|
| $i$ | $ Y_{i1} $ | $ Y_{i2} $ | $ Y_{i3} $ | $ Y_{i4} $ | $ Y_{i5} $ | $ Y_{i} $ | $ \bar{Y}_{i.} $ | $ n_{i} $ |
| 1 | 7,2 | 6,7 | 5,6 | 4,4 | 5,2 | 29,1 | 5,82 | 5 |
| 2 | 8,8 | 6,5 | 7,1 | 9,4 | 5,7 | 37,5 | 7,5 | 5 |
| 3 | 7,8 | 9,9 | 8,3 | 7 | 9,1 | 42,1 | 8,42 | 5 |
| 4 | 4,9 | 4,6 | 6,2 | 5 | 6,3 | 27 | 5,4 | 5 |
Table 9.3.34: Number of average performance of each group of children by different methods
To carry out the analysis of the Action software, we must set up the table as follows:
| Method | Average performance |
|---|---|
| 1 | 7,2 |
| 1 | 6,7 |
| 1 | 5,6 |
| 1 | 4,4 |
| 1 | 5,2 |
| 2 | 8,8 |
| 2 | 6,5 |
| 2 | 7,1 |
| 2 | 9,4 |
| 2 | 5,7 |
| 3 | 7,8 |
| 3 | 9,9 |
| 3 | 8,3 |
| 3 | 7 |
| 3 | 9,1 |
| 4 | 4,9 |
| 4 | 4,6 |
| 4 | 6,2 |
| 4 | 5 |
| 4 | 6,3 |
Table 9.3.35: organized data
Using Action software, the ANOVA table for this data is
| G.L. | Sum of Squares | Medium Square | F Stat | P.value | |
|---|---|---|---|---|---|
| Factor | 3 | 30.1695 | 10.0565 | 7.1845 | 0.0029 |
| Waste | 16 | 22.396 | 1.3997 |
Table 9.3.36: ANOVA table
In this example we are interested in finding confidence intervals for different contrasts of the means. As we saw earlier, an arbitrary contrast is defined by
$$C=\sum\limits_{i=1}^{k}c_i\mu_i \quad \hbox{em que,}\quad \sum\limits_{i=1}^{k}c_i=0.$$
We estimate $ C $ by $ \hat{C}=\sum\limits_{i=1}^{k}c_{i}\bar{Y_{i.}}, $ so that the estimated variance is $ S^{2}_{\hat{C}}=QME\sum\limits_{i=1}^{k}\frac{c_{i}^{2}}{n_{i}}. $
Thus, as seen above, all confidence intervals are given by
$$\hat{C}=\sum\limits_{i=1}^{k}c_i\bar{y_{i}}\pm\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{QME\sum\limits_{i=1}^{k}\frac{c_{i}^{2}}{n_{1}}}.$$
In this example, we wish to estimate and construct confidence intervals for the following contrasts:
$$C_{1}=\frac{\mu_1+\mu_2}{2}-\frac{\mu_{3}+\mu_{4}}{2}$$
$$C_{2}=\frac{\mu_1+\mu_2}{2}-\frac{\mu_{3}+\mu_{4}}{2}$$
The estimated points are:
$$\hat{C_{1}}=\frac{\bar{Y_{1}}+\bar{Y_{2}}}{2}-\frac{\bar{Y_{3}}+\bar{Y_{4}}}{2}=\frac{5,82+7,5}{2}-\frac{8,42+5,4}{2}=-0,25$$
$$\hat{C_{1}}=\frac{\bar{Y_{1}}+\bar{Y_{3}}}{2}-\frac{\bar{Y_{2}}+\bar{Y_{4}}}{2}=\frac{5,82+8,42}{2}-\frac{7,5+5,4}{2}=0,67$$
According to the Anova table above, we have QME=1.40. Applying the previous formulas we obtain in both cases that
$$S_{\hat{C}}^{2}=QME\sum\limits_{i=1}^{k}\frac{c_{i}^{2}}{n_{i}}=1,4\sum\limits_{i=1}^{4} \frac{c_{i}^{2}}{5}=1,40\times\left(\frac{4\times(1/2)^{2}}{5}\right)=1,40\times 0,2=0,28.$$
In this way, a 95% confidence interval for the contrasts $ C1_{1} $ and $ C_{2} $ are given by
$$\sum\limits_{i=1}^{k}c_i\bar{y_{i}}\pm\sqrt{(k-1)F_{(\alpha,k-1,N-k)}}\sqrt{QME\sum\limits_{i=1}^{k}\frac{c_{i}^{2}}{n_{1}}},$$
in which $ F_{\alpha,k-1,N-k}=F_{0,05;3;16}=3,239 $.
Thus, the confidence limits for $ C_{1} $ and $ C_{2} $ will respectively be $ -0.25\pm\sqrt{(4-1)F_{(0,05;3;16)}}\sqrt{0,28}=1,631 $ and $ 0,67\pm\sqrt{(4-1)F_{(0,05;3;16)}}\sqrt{0,28}=1,631 $. Therefore, the confidence intervals are given by
$$-1,881\leq C_{1}\leq1,381$$
$$-0,961\leq C_{2}\leq2,301$$
9.3.5 Dunnett test
Comparisons of means with a control or reference value
Dunnett’s test
Dunnett (1955) pioneered the concept that when a control is present, comparisons of preliminary interest may be comparisons of each new treatment with the control. For example, the control may be a placebo, a “standard” treatment, or any other specific treatment (such as a new drug). Let’s suppose that $μ_1,…,μ_{j-1}$ are the averages of new treatments and $μ_j$ is the control average. When performing multiple comparisons with a control, the primary parameters of interest are $μ_i-μ_j$ for $ i=1, \ldots, j-1 $, the difference between each new treatment mean $μ_i$ and the control mean $μ_j$, that is, we want to test the hypotheses
$$ \begin{cases} H_0: \mu_i = \mu_j \cr H_1: \mu_{i} \neq \mu_{j} \end{cases}$$
Dunnett’s method is a modification of the test $ t $ usual. The smallest significant difference in this case is given by
$$d=d^{\ast}_{\alpha}(k,N-k) \sqrt{2\times\frac{QME}{n}}~~~~~~~~~~~~~\hbox{(dados~balanceados)}.$$
$$d=d_{\alpha}^{\ast}(k,N-k) \sqrt{QME\left(\frac{1}{n_{i}}+\frac{1}{n_{j}}\right)}~~~~~\hbox{(dados~não~balanceados)}.$$
in which $ d^{\ast}_{\alpha}(k,N-k) $ is a tabulated value proposed by Dunnet (see Dunnett’s Test Table in the Appendix), which depends on the number of levels (k) and the error degrees of freedom (N-k).
If we take the level $ j $ as a control, we reject equality between the mean level $ i $ and the average level $ j $ if:
$ \mid \overline{y}_{i.}-\overline{y}_{j.} \mid > d. $
Example 3.5.1
Let us consider the effect of cigarette smoking on lung diseases. In this case, let us take lung diseases measured from non-smokers (NF) and 5 groups of smokers classified as PF: passive smoker; NI: people who smoke but do not inhale the smoke; FL: people who smoke 1 to 10 cigarettes per day; FM: people who smoke 11 to 39 cigarettes per day and FE: people who smoke more than 40 cigarettes per day. We take non-smokers as the control group, and we are interested in how much smoking can affect lung health in terms of vital force capacity (CFV), relative to not smoking. In this example, we take α=0.05. The data for this example is below.
| Group | CFV |
|---|---|
| NF | 3,7890 |
| NF | 3,6953 |
| NF | 3,9272 |
| NF | 3,9563 |
| NF | 3,7490 |
| NF | 3,1549 |
| NF | 3,4596 |
| NF | 2,8963 |
| NF | 2,3569 |
| NF | 2,7896 |
| NF | 3,1549 |
| FP | 3,5633 |
| FP | 2,8318 |
| FP | 3,2156 |
| FP | 3,2136 |
| FP | 3,1877 |
| FP | 3,2451 |
| FP | 3,1050 |
| FP | 3,2312 |
| FP | 3,2014 |
| FP | 3,1877 |
| FP | 3,6395 |
| NI | 3,1492 |
| NI | 3,1945 |
| NI | 2,9791 |
| NI | 3,0127 |
| NI | 2,9985 |
| NI | 2,8963 |
| NI | 3,2520 |
| NI | 3,6271 |
| NI | 3,4651 |
| NI | 2,8963 |
| NI | 3,6271 |
| FL | 2,8356 |
| FL | 3,1546 |
| FL | 3,1579 |
| FL | 2,4663 |
| FL | 2,9863 |
| FL | 3,0356 |
| FL | 3,5669 |
| FL | 3,2619 |
| FL | 3,3480 |
| FL | 3,5669 |
| FL | 3,2619 |
| FM | 2,9865 |
| FM | 2,8384 |
| FM | 2,8000 |
| FM | 2,8963 |
| FM | 2,6934 |
| FM | 2,8183 |
| FM | 2,8963 |
| FM | 2,6934 |
| FM | 2,8183 |
| FM | 2,5693 |
| FM | 2,8183 |
| FE | 2,6397 |
| FE | 2,3976 |
| FE | 2,4112 |
| FE | 2,2356 |
| FE | 2,5282 |
| FE | 2,8963 |
| FE | 2,6539 |
| FE | 2,5550 |
| FE | 2,8957 |
| FE | 2,3694 |
| FE | 2,5550 |
Table 9.3.37: data from example 3.5.1
Using Action software, the ANOVA table for this data is
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Group | 5 | 5.0908 | 1.0182 | 11.0008 | 0 |
| Waste | 60 | 5.5532 | 0.0926 |
Table 9.3.38: ANOVA table
As the data is balanced, we have to:
$$d=d^{\ast}_{\alpha}(k,N-k) \sqrt{2\frac{QME}{n}}$$
$$d=d^{\ast}_{0,05}(6,66-6) \sqrt{2\frac{0,09255}{6}}$$
$$d=2,58\sqrt{0.03085}$$
$$d=0,4531$$
Therefore, we reject equality between the means of the two groups if
$ \mid \overline{y}_{i.}-\overline{y}_{NF} \mid >0,4531. $
| $ \mid \overline{y}_{i.}-\overline{y}_{NF} \mid $ | Results | $ \mid \overline{y}_{i.}-\overline{y}_{NF} \mid $ | Results |
|---|---|---|---|
| $ \mid \overline{y}_{FP}-\overline{y}_{NF} \mid $ | $ 0,118 $ | $ \mid \overline{y}_{FM}-\overline{y}_{NF} \mid $ | $ 0,554 $ |
| $ \mid \overline{y}_{NI}-\overline{y}_{NF} \mid $ | $ 0,166 $ | $ \mid \overline{y}_{FE}-\overline{y}_{NF} \mid $ | $ 0,799 $ |
| $ \mid \overline{y}_{FL}-\overline{y}_{NF} \mid $ | $ 0,207 $ |
Table 9.3.39: Difference between levels
Using the Action software we have the following results:
| Average | Lower Limit | Upper Limit | P-Value | |
|---|---|---|---|---|
| FE - NF | -0.7992 | -1.1341 | -0.4644 | 0 |
| FL - NF | -0.2079 | -0.5428 | 0.1269 | 0.366 |
| FM - NF | -0.5546 | -0.8894 | -0.2197 | 0.0003 |
| FP - NF | -0.1188 | -0.4537 | 0.216 | 0.8267 |
| NI - NF | -0.1665 | -0.5013 | 0.1684 | 0.5758 |
Table 9.3.40: Dunnett test
Figure 9.3.9: Confidence Intervals
Conclusion
When considering a significance level of 5%, we do not reject the hypothesis of equality between the groups (NF, NP) and (NF, NI).
Example 3.5.2
Considering the data from Example 1, let’s calculate the value of d and check which treatments are equal. We will use level 25 as a control level.
| Factor | Fiber_Resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.2.41: data from Example 1
As the data is balanced, we have to:
$$d=d^{\ast}_{\alpha}(k,N-k) \sqrt{2\frac{QME}{n}}$$
$$d=d_{0,05}(5;20) \sqrt{2\frac{8,06}{5}}$$
$$d=2,65\sqrt{3,224}$$
$$d=4,7582$$
We reject equality between the means of the two treatments if:
$ \mid \overline{y}_{i.}-\overline{y}_{25} \mid > 4,7582. $
| $ \mid \overline{y}_{i.}-\overline{y}_{25} \mid $ | Results | $ \mid \overline{y}_{i.}-\overline{y}_{25} \mid $ | Results |
|---|---|---|---|
| $ \mid \overline{y}_{15}-\overline{y}_{25} \mid $ | $ 7,8 $ | $ \mid \overline{y}_{30}-\overline{y}_{25} \mid $ | $ 4,0 $ |
| $ \mid \overline{y}_{20}-\overline{y}_{25} \mid $ | $ 2,2 $ | $ \mid \overline{y}_{35}-\overline{y}_{25} \mid $ | $ 6,8 $ |
Table 9.2.42: Difference between means
Using the Action software we have the following results:
| Average | Lower Limit | Upper Limit | P-Value | |
|---|---|---|---|---|
| 15 - 25 | -7.8 | -12.5587 | -3.0413 | 0.0011 |
| 20 - 25 | -2.2 | -6.9587 | 2.5587 | 0.5632 |
| 30 - 25 | 4 | -0.7587 | 8.7587 | 0.1158 |
| 35 - 25 | -6.8 | -11.5587 | -2.0413 | 0.0042 |
Table 9.2.43: Dunnet Test
Figure 9.3.10: Confidence Intervals
Conclusion
When considering a significance level of 5%, we do not reject the hypothesis of equality between the means of the levels: (20.25) and (30.25).
9.3.6 HSU Test
HSU Test (Multiple Comparisons with the Best-MCB)
We previously saw the problem of comparing study treatments with a control treatment that is used as a “reference” (Dunnet’s test). In some applications, the relevant (unknown) reference is the “best” treatment, that is, the treatment that has the largest (largest) or smallest (smallest) average value, depending on the analysis of interest. The test proposed by Jason Hsu has the characteristic of comparing all treatments with the best.
As motivation, let us consider the following situation. Suppose that among five treatments being compared, two treatments are so bad that most of the patients who received one of the two died within a short period of time. So, it is possibly not of primary interest to know which of these two treatments is worse, the inference that neither is better is sufficient. Suppose that the second best treatment (among the remaining three) is almost as good as the true best treatment. Therefore, statistical inference that identifies both as practically the best may be of interest, as there may be other considerations that impact the choice of treatment. Therefore, in these situations all two-by-two comparisons are not of interest. The main question here is “What comparisons are of preliminary interest?”
We can characterize the comparisons of primary interest in these situations as “multiple comparisons with the best.” Thus, if a larger treatment effect is better, even if the best treatment is unknown, we can define the parameters of preliminary interest as
$$\max_{j=1,\ldots,k}\mu_{j}-\mu_{i},i=1,\ldots,k,\quad \tag{3.6.1}$$
the difference between the effect of the true best treatment and each of the $ k $ treatment effects.
However, in most cases it is advantageous to compare each treatment with the best of the other treatments. Suppose that a greater treatment effect implies a better treatment. So the parameters
$$\mu_{i}-\max_{j\neq i}\mu_{j}, i=1,\ldots,k$$
contains all the information that the parameters given by expression (3.6.1).
Naturally, if the smallest treatment effect implies the best treatment, then by symmetry the preliminary parameters of interest are
$$\mu_{i}-\min_{j\neq i}\mu_{j},i=1,\ldots,k.$$
Assuming that the best is the highest average between the factor levels, we will consider a set of intervals with a confidence level of $ (1-\alpha)100 \char37 $ simultaneous values for the difference between the average of the ith factor level and the maximum between the averages of the other factor levels. The calculation of the limits of these intervals is obtained using the following equations:
$$D^{-}_{i}=-\left[\overline{y}_{i.} - \max_{j \neq i} (\overline{y}_{j.})-d_{\alpha}(k,N-k)\sqrt{2\left(\frac{QME}{n}\right)}~\right]^- \qquad \hbox{Limite Inferior}$$
$$D^{+}_{i} = \left[ \overline{y}_{i.} - \max_{j \neq i} (\overline{y}_{j.}) + d_{\alpha}(k,N-k)\sqrt{2 \left( \frac{QME}{n} \right)} ~ \right]^+ \qquad \hbox{Limite Superior}$$
being that $ d_{\alpha}(k,N-k) $ is a tabulated value (see hsu Table in the Appendix) that depends on the number of levels ($ k $) and the number of error degrees of freedom ($ N-k $) and $ n_i $ is the number of replicas of the level $ i $ (for unbalanced data). For balanced data all $ n_i $ are the same.
If the interval ($ D^-_i~;~D^+_i $) assume only positive values, we consider that the $ i $-th level of the factor is the best.
Now, let’s suppose that the best is the lowest average between the factor levels, or the highest average is better, but we are interested in making multiple comparisons with the “worst” treatment, so the parameters of interest are $ \mu_{i}-\min_{j \neq i}\mu_{j},i=1,\ldots,k $. Considering a set of intervals with a confidence level of $ (1-\alpha)100 \char37 $ simultaneous for the difference between the average of the ith factor level and the minimum between the averages of the other factor levels. The calculation of the limits of these intervals is obtained using the following equations:
$$D^{-}_{i} = -\left[\overline{y}_{i.} - \min_{j \neq i}(\overline{y}_{j.}) - d_{\alpha}(k,N-k)\sqrt{2\left(\frac{\text{QME}}{n_i}\right)}~\right]^-~~~~~~\hbox{Limite Inferior}$$
$$D^{+}_{i} = \left[\overline{y}_{i.} - \min_{j \neq i}(\overline{y}_{j.}) +d_{\alpha}(k,N-k)\sqrt{2\left(\frac{\text{QME}}{n_i}\right)}~\right]^+~~~~~~\hbox{Limite Superior}$$
being that $ d_{\alpha}(k,N-k) $ is a tabulated value (see HSU Test Table in the Appendix) that depends on the number of levels ($ k $) and the number of error degrees of freedom ($ N-k $) and $ n_i $ is the number of replicas of the level $ i $ (for unbalanced data). For balanced data all $ n_i $ are the same.
If the interval ($ D^-_i~;~D^+_i $) assume only negative values, we consider that the $ i $-th level of the factor is the best.
To simplify the analysis and arrangement of the results on a graph, we performed the following transformation of the limits of the confidence intervals. For each value of $ D_i $, we calculate:
$$[D^{-}_{i} ]^\prime = \hbox{min} \lbrace 0, D^{-}_{i} \rbrace = \begin{cases} D^{-}_{i} \quad \hbox{se } x < 0 \cr 0 \qquad \hbox{caso contrário} \end{cases} \qquad \hbox{ e } \tag{3.4.1}$$
$$[D^{+}_{i} ]^\prime = \hbox{max} \lbrace 0, D^{-}_{i} \rbrace = \begin{cases} D^{+}_{i} \quad \hbox{se } x < 0 \cr 0 \qquad \hbox{caso contrário} \end{cases} \qquad \quad \tag{3.4.2}$$
Example 3.6.1
Returning to Example 1, of the resistance of the synthetic fiber, we will calculate the Confidence Intervals for all levels, assuming that the higher the resistance of the synthetic fiber the better.
| Factor | Fiber_resistance |
|---|---|
| 15 | 7 |
| 15 | 7 |
| 15 | 15 |
| 15 | 11 |
| 15 | 9 |
| 20 | 12 |
| 20 | 17 |
| 20 | 12 |
| 20 | 18 |
| 20 | 18 |
| 25 | 14 |
| 25 | 18 |
| 25 | 18 |
| 25 | 19 |
| 25 | 19 |
| 30 | 19 |
| 30 | 25 |
| 30 | 22 |
| 30 | 19 |
| 30 | 23 |
| 35 | 7 |
| 35 | 10 |
| 35 | 11 |
| 35 | 15 |
| 35 | 11 |
Table 9.3.44: Data from Example 1
| Level | $ \overline{y}_{i.} $ | $\max_{j \neq i}(\overline{y}_{j.})$ | $ \overline{y}_{i.}-\max_{j \neq i}(\overline{y}_{j.}) $ |
|---|---|---|---|
| $ 15 $ | $ 9,8 $ | $ 21,6 $ | $ -11,8 $ |
| $ 20 $ | $ 15,4 $ | $ 21,6 $ | $ -6,2 $ |
| $ 25 $ | $ 17,6 $ | $ 21,6 $ | $ -4,0 $ |
| $ 30 $ | $ 21,6 $ | $ 17,6 $ | $ 4,0 $ |
| $ 35 $ | $ 10,8 $ | $ 21,6 $ | $ -10,8 $ |
Table 9.3.45: Maximum and Minimum of averages between levels
How $ d_{\alpha}(k,N-k)=2,305 $, $ QME=8,06 $ and $ n=5 $. So:
$$d_{\alpha}(k,N-k)\sqrt{2 \left( \frac{QME}n\right)}=4,138$$
To the level $ 15 $, we have to:
$$D^-_1=-[-11,8 - 4,138]^-$$
$$=-[-15,938]^-$$
$$=-15,938$$
$$D^+_1=[-11,8 + 4,138]^+$$
$$=[-7,662]^+$$
$$=0$$
Repeating this procedure for the other levels, we obtain
| Level | $ D^-_i $ | Center | $ D^+_i $ |
|---|---|---|---|
| $ 15 $ | $ -15,938 $ | $ -11,8 $ | $ 0 $ |
| $ 20 $ | $ -10,338 $ | $ -6,2 $ | $ 0 $ |
| $ 25 $ | $ -8,138 $ | $ -4,0 $ | $ 0,138 $ |
| $ 30 $ | $ -0,138 $ | $ 4,0 $ | $ 8,138 $ |
| $ 35 $ | $ -14,938 $ | $ -10,8 $ | $ 0 $ |
Table 9.3.46: Calculated Confidence Intervals
As the Confidence Interval for level 30 has large parts of positive values, we can say that it is the best among the others.
Using the Action software we have the following results:
| Level | Average | Lower Limit | Upper Limit |
|---|---|---|---|
| 15 | -11.8 | -15.939 | 0 |
| 20 | -6.2 | -10.339 | 0 |
| 25 | -4 | -8.139 | 0.139 |
| 30 | 4 | -0.139 | 8.139 |
| 35 | -10.8 | -14.939 | 0 |
Table 9.3.47: HSU Test: Bigger is better
Figure 9.3.11: Confidence Intervals
Conclusion
As the confidence interval referring to the level $ 30 $, has large parts of positive values, we can say that it is the best among the others.
Example 3.6.2
The presence of harmful insects in farm fields can be detected by examining the insects trapped on boards covered with sticky material erected in the fields. The number of grain leaf beetles trapped when 24 plates are placed in the oat field in a given month has been reported. There were 24 plates associated in 4 groups (6 plates in each group) according to the colors green, white, purple and blue. At a significance level of 0.05%, we will apply the HSU Test to this example. The data for this example is below.
| Color | Insects |
|---|---|
| green | 45 |
| green | 59 |
| green | 48 |
| green | 46 |
| green | 38 |
| green | 47 |
| white | 21 |
| white | 12 |
| white | 14 |
| white | 17 |
| white | 13 |
| white | 17 |
| purple | 37 |
| purple | 32 |
| purple | 15 |
| purple | 25 |
| purple | 39 |
| purple | 41 |
| blue | 16 |
| blue | 11 |
| blue | 20 |
| blue | 21 |
| blue | 14 |
| blue | 7 |
Table 9.3.48: data from Example 3.6.2
| Color | $ \bar{y_{i}} $ | $ \min_{j}(\bar{y_{j}}) $ | $ \overline{y}_{i.} - \min_{j\neq i}(\overline{y}_{j.}) $ |
|---|---|---|---|
| Green | $ 47,17 $ | $ 14,83 $ | $ 32,33 $ |
| White | $ 15,67 $ | $ 14,83 $ | $ 0,833 $ |
| Purple | $ 31,5 $ | $ 14,83 $ | $ 16,67 $ |
| Blue | $ 14,83 $ | $ 15,67 $ | $ -0,833 $ |
Table 9.3.49: Maxima and Minimum between level averages
Using the Action software, the ANOVA table for this data is
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Color | 3 | 4218.4583 | 1406.1528 | 30.5519 | 0 |
| Waste | 20 | 920.5 | 46.025 |
Table 9.3.50: ANOVA Table
We have to $ d_{o,05}(4,20)=2,192 $, $ QME=46,025 $ and $ n=6 $. In this way,
$$d_{\alpha}(k,N-k)\sqrt{2\left(\frac{QME}{n}\right)}= 8,585$$
For the green color, we have:
$$D_{1}^{-}=-(47,17-14,83-8,585)^{-}=-(20,7)^{-}=0$$
$$D_{1}^{+}=(47,17-14,83+8,585)^{+}=(43,98)^{+}=40,919$$
Repeating this procedure for the other colors (levels), we obtain:
| Color | $ D_{i}^{-} $ | Average | $ D_{i}^{+} $ |
|---|---|---|---|
| Green | 0 | 32,333 | 40,919 |
| Blue | -9,419 | -0,833 | 7,752 |
| White | -7,752 | 0,833 | 9,419 |
| Purple | 0 | 16,667 | 25,252 |
Table 9.3.51: Calculated Confidence Intervals
As the confidence interval for the color blue has large parts of negative values, we can say that it is the best among the others.
Using the Action software we have the following results:
| Level | Average | Lower Limit | Upper Limit |
|---|---|---|---|
| blue | -0.833 | -9.419 | 7.752 |
| white | 0.833 | -7.752 | 9.419 |
| purple | 16.667 | 0 | 25.252 |
| green | 32.333 | 0 | 40.919 |
Table 9.3.52: HSU Test: Smaller is better
Figure 9.3.12: Confidence Intervals
Conclusion
As the confidence interval for the color blue has large parts of negative values, we can say that it is the best among the others.