Sidebar Menu

This article is a continuation of the Completely Randomized Design (CRD) Factorial. Suppose there is an experiment as follows:
There are 3 types of materials for the manufacture of batteries (A, B, C) which were tested at 3 temperatures (15 o F, 70 o F, 125 o F). From this experiment, we want to know whether the type of material and temperature affect battery life? Are certain types of materials suitable for certain temperatures? The following are the steps for calculating the analysis of variance followed by Duncan Multiple Range - Post Hoc Test.

You can read the full discussion about the Applied example of CRD Factorial in the document below and tutorial on analyse data using Statisctical Software you can learn on the following link: 


Applied Example

Experiment: There are 3 types of materials for the manufacture of batteries (A, B, C) tried at 3 temperatures (15oF, 70oF, 125oF). From the experiment, you want to know whether the type of material and temperature affect battery life? Is a certain type of material suitable for a certain temperature?  From the experiment, battery life data were obtained as follows:

Table 22.  Battery Life Data From 3 Types of Materials at Three Different Temperatures

Material

Temperature

15

70

125

A

130

34

20

 

74

80

82

 

155

40

70

 

180

75

58

B

150

136

25

 

159

106

70

 

188

122

58

 

126

115

45

C

138

174

96

 

168

150

82

 

110

120

104

 

160

139

60

 

Solution:

Treatment Table:

Material (A)

Temperature (B)

Sum

15

70

125

Yi..

A

539

229

230

998

B

623

479

198

1300

C

576

583

342

1501

Sum (Y.j. )

1738

1291

770

Y... = 3799

 Step 1: Calculate the Correction Factor

 $$\begin{matrix}CF=\frac{Y...^2}{rab}=\frac{3799^2}{4\times3\times3}=400900.028\\\\\end{matrix}$$

Step 2: Calculate the Sum of The Total Squares

 $$\begin{matrix}SSTOT=\sum_{i,j,k}{Y_{ijk}}^2-CF\\=(130^2+74^2+....+104^2+60^2)-400900.028\ \\=478547.000\\\end{matrix}$$

Step 3: Calculate the Sum of Squares of Treatment

 $$\begin{matrix}SS(A)=\sum_{i}\frac{{Y_{i..}}^2}{rb}-CF\\=\frac{(998^2+1300^2+1501^2)}{4\times3}-400900.028\ \ \\=10683.722\\\end{matrix}$$

 $$\begin{matrix}SS(B)=\sum_{j}\frac{{Y_{.j.}}^2}{ra}-CF\\=\frac{(1738^2+1291^2+770^2)}{4\times3}-400900.028\ \ \\=39118.722\\\end{matrix}$$

 $$\begin{matrix}SS(AB)=\sum_{i,j}\frac{{Y_{ij.}}^2}{r}-CF-SS(A)-SS(B)\\=\frac{(539^2+229^2+...+583^2+342^2)}{4}-400900.028-10683.722-39118.722\\=9613.778\\\end{matrix}$$

Step 4: Calculate the Sum of Squares of Errors

 $$\begin{matrix}SSE=SSTOT-SS(A)-SS(B)-SS(AB)\\=18230.750\\\end{matrix}$$

Step 5: Create a Variance Analysis Table with its F-Values table

Table 23.  Battery Life Analysis of variance

Sources of Variance

DF

SS

MS

F-stat

F prob

F .05

F .01

Material (A)

2

10683.7222

5341.86111

7.91 **

0.00197608

3.354

5.488

Temperature (B)

2

39118.7222

19559.3611

28.97 **

1.9086E-07

3.354

5.488

AxB

4

9613.77778

2403.44444

3.56 *

0.01861117

2.728

4.106

Error

27

18230.75

675.212963

-

 

 

 

Total

35

77646.9722

 

 

 

 

 

F(0.05,2,2 7) = 3,354

 F(0.0 1,2,2 7)  = 5,488

 F(0.0 5,4,2 7)  = 2,728

 F(0.0 1,4,2 7)  = 4,106

Step 6: Make a Conclusion

Material (A)

Since F-stat (7.91) > 3,354 then we reject H0: μ1 = μ2 = μ3 at a confidence level of 95% (usually given one asterisk mark (*), which indicates a significant difference)

Since F-stat (7.91) > 5,488 then we reject H0: μ1 = μ2 = μ3 at a confidence level of 99% (usually given two asterisk marks (**), which indicate a very noticeable difference)

Temperature (B)

Since F-stat (28.97) > 3,354 then we reject H0: μ1 = μ2 = μ3 at a confidence level of 95% (usually given one asterisk mark (*), which indicates a significant difference)

Since F-stat (28.97) > 5,488 then we reject H0: μ1 = μ2 = μ3 at a confidence level of 99% (usually given two asterisk marks (**), which indicates a very noticeable difference)

Material Interaction x Temperature (AxB)

Since F-stat (3.56) > 2,728 then we reject H0: μ1 = μ2 = μ3 at a 95% confidence level (usually given one asterisk sign (*), which indicates a significant difference)

Since the calculation (3.56) ≤ 4,106 then we fail to reject H0: μ1 = μ2 = μ3 at a confidence level of 99%

First, we check whether the Interaction Effect is significant or not? If it is significant, then examine the simple effect of the interaction, and ignore the main effect (the self-reliance), even if the main effect is significant! Why? Take another look at the discussion about the effect of interactions and main effect!  Primary ( if significant) effect testing is only performed when the effect of the interaction is not significant.

The value of F0.05(df1=4, df2=27) = 2.728.  The value (Finteraction = 3.56) > F0.05(df1=4, df2=27), therefore at the significant level of α = 5 % we can conclude that the effect of the interaction between the material and the significant temperature. The effect of non-free material and temperature on the average battery life.  This means that the effect of certain specific materials on different temperature levels. Because of the effect of significant interactions, we do not need to test the main effect.

Step 7: Calculate the Coefficient of Variance (CV)

 $$\begin{matrix}CV=\frac{\sqrt{MSE}}{\bar{Y}..}\times100\%=\frac{\sqrt{675.213}}{105.528}\times100\%\\=24.62\% \end{matrix}$$

Post-Hoc

Based on the analysis of variance, the effect of the interaction between Matter and Temperature is significant, so we need to test its simple effect which are logical consequences of factorial experimental models in research.  This is done to get a more comprehensive conclusion and not just to state that the effect of the interaction is significant and busy with the testing of the main effect of the factors being tried.

In this follow-up test, the differences between the average pairs of treatments were carried out using the Duncan test.

  1. Step 1: Calculate the shortest significant region value (Rp):
  • Determine the value of the MSE and its degree of freedom obtained from the Variance Analysis Table.
  • MSE = 675.213
  • ν = df = 27
  • Determine its critical value from the student's significant region table based on the error-degree of freedom and the number of treatments to be compared. 
  • There are three parameters needed to determine the value of r α(p,df), namely the significant level (α), p = the number of treatments to be compared, and the error-degree of freedom (df).  In this example, p= 2.3, the value df = 27 (see the error df in the Variance Analysis table) and α = 0.05. Next, determine the value of r0.05(p, 27).
  • To find the value of r0.05(p, 27) we can see it in the table Significant Ranges for Duncan's Multiple Range Test at a significant level α = 0.05 with p = 2.3 and degree of freedom (v)= 27.  Consider the following image to specify the r-table.
  • By way of interpolation obtained: R value 0.05(p, 27) p = 2 : r0.05(2, 27) = 2.905 p = 3 : r0.05(3, 27) = 3.050
  • From the table we get the values of r: 2.905 and 3.050
  • Calculate the shortest significant region (Rp):

  •  Test criteria:
  • Compare the absolute value of the difference between the two averages with the value of the shortest significant area (Rp), with the following test criteria:
  •  $ if \left|\mu_i-\mu_j\right| \left\langle\begin{matrix}\mathrm{>Rp\ \gg\ test\ results\ are\ significant.}\\\mathrm{\le Rp\ \gg\ test\ results\ are\ not\ significant.}\\\end{matrix}\right.$
  1. Step 2: Sort the average table of treatment from small to large or vice versa. In this example, the average treatment is sorted from small to large

Differences of two material averages at the same temperature level:

Simple effect testing difference of two material averages at a temperature of 15 oC:

   

A

C

B

Notation

Material

Average

134.75

144.00

155.75

 

A

134.75

0.00

   

a

C

144.00

9.25 (2) ns

0.00

 

a

B

155.75

21.00 (3) ns

11.75(2) ns

0.00

a

Notes:

(1)    superscript number [(2); (3)] indicates the rating (p) to compare with the difference between the two averages corresponding to the rating (Remember! the average treatment is pre-sorted). For example, the difference between A vs C compares with Rp(2) = 37,743, because A and C are not separated by other treatments (neighboring), while the difference between A vs B compares with Rp(3) = 39,627.

(2)    ns = not significant; * = significant at a significant level of 5%

(3)    the same line shows no difference between the average pairs of treatments.  When annotated, black lines are notated with letters, while red lines are ignored, because they are already represented by black lines.

Simple effect testing differences of two material averages at a temperature of 70 oC:

   

A

B

C

Notation

Material

Average

57.25

119.75

145.75

 

A

57.25

0.00

   

a

B

119.75

62.50 (2) *

0.00

 

b

C

145.75

88.50am (3) *

26.00 (2) ns

0.00

b

Simple effect testing of differences of two material averages at a temperature of 115 oC:

   

B

A

C

Notation

Material

Average

49.50

57.50

85.50

 

B

49.50

0.00

   

a

A

57.50

8.00am (2)ns

0.00

 

a

C

85.50

36.00 (3) ns

28.00 (2) ns

0.00

a

 

Difference of two average Temperatures at the same Material level:

Simple effect testing of differences in two average Temperatures on Material A:

   

70

125

15

Notation

Temperature

Average

57.25

57.50

134.75

 

70

57.25

0.00

   

a

125

57.50

0.25  (2) ns

0.00

 

a

15

134.75

77.50  (3) *

77.25  (2) *

0.00

b

 

Simple effect testing of differences in two average Temperatures on Material B:

   

125

70

15

Notation

Temperature

Average

49.50

119.75

155.75

 

125

49.50

0.00

   

a

70

119.75

70.25am (2) *

0.00

 

b

15

155.75

106.25 (3) *

36.00 (2) ns

0.00

b

 

Simple effect testing of differences in two average Temperatures on Material C:

   

125

15

70

Notation

Temperature

Average

85.50

144.00

145.75

 

125

85.50

0.00

   

a

15

144.00

58.50 (2) *

0.00

 

b

70

145.75

60.25 (3) *

1.75 (2) ns

0.00

b

 

The presentation of a simple effect test on such experiments can be summarized in the form of a two-way table as shown in the following table:

Temperature (S)

Material (M)

A

B

C

15

134,750 b
A

155,750 b
 A

144,000 b
A

70

57,250 a A

119,750 b
B

145,750 b
B

125

57,500 a A

49,500 a
A

85,500 a
A

Remarks:

The numbers followed by the same letter did not differ markedly according to Duncan's test at a significant level of 5%.  Lowercase letters are read in the vertical direction (column) and capital letters are read in the horizontal direction (row)

Alternative: Interaction Effect (combination of factor level)

If the interaction is significant, a simple effect should be examined. However, if you want to compare the combination (AxB), then the number of treatments to be compared (p) is different from the previous calculation. The number of p = t-1 = 9-1 = 8.

Table of combination levels of the two factors

No.

Material

Temperature

Average

1

A

15

134.75

2

A

70

57.25

3

A

125

57.50

4

B

15

155.75

5

B

70

119.75

6

B

125

49.50

7

C

15

144.00

8

C

70

145.75

9

C

125

85.50

       

 

Comparison (Duncan)

 

2

3

4

5

6

7

8

9

Sy

12.99

12.99

12.99

12.99

12.99

12.99

12.99

12.99

Rp

2.91

3.05

3.14

3.21

3.27

3.30

3.34

3.36

RP

37.74

39.63

40.73

41.64

42.42

42.87

43.33

43.59

 

Matrix Table of differences in the differences of the average pairs of AxB (after being sorted in ascending order)

       

6

2

3

9

5

1

7

8

4

 

No.

M

S

Average

49.50

57.25

57.50

85.50

119.75

134.75

144.00

145.75

155.75

 

6

B

125

49.50

0.00

               

a

2

A

70

57.25

7.75

0.00

             

a

3

A

125

57.50

8.00

0.25

0.00

           

a

9

C

125

85.50

36.00

28.25

28.00

0.00

         

ab

5

B

70

119.75

70.25 *

62.50 *

62.25 *

34.25

0.00

       

bc

1

A

15

134.75

85.25 *

77.50 *

77.25 *

49.25 *

15.00

0.00

     

c

7

C

15

144.00

94.50 *

86.75 *

86.50 *

58.50 *

24.25

9.25

0.00

   

c

8

C

70

145.75

96.25 *

88.50 *

88.25 *

60.25 *

26.00

11.00

1.75

0.00

 

c

4

B

15

155.75

106.25 *

98.50 *

98.25 *

70.25 *

36.00

21.00

11.75

10.00

0.00

c

Remarks:

Compare the difference between the pairs of two averages with the corresponding comparison values based on the distance rating between the two averages (in the example above, to facilitate the understanding of comparing the difference in averages with the corresponding ratings marked in the same color code between the difference and the comparator)

The presentation of the AxB interaction effect test on the experiment can be summarized in the form of a two-way table as shown in the following table:

Temperature (S)

Material (M)

A

B

C

15

134,750 c

155,750 c

144,000 c

70

57,250 a

119,750 bc

145,750 c

125

57,500 a

49,500 a

85,500 ab

Remarks:
The numbers followed by the same letter did not differ markedly according to Duncan's test at a significant level of 5%.

Which material is the best? Materials C? In the table above, it is difficult to interpret, because there are interdependencies between factors.

What temperature is best? 15 C?

Try to compare the results of the interaction effect test with the simple effect test!

In a simple effect test, interdependencies can be interpreted.

Temperature (S)

Material (M)

A

B

C

15

134,750 b
A

155,750 b
A

144,000 b
A

70

57,250 a
A

119,750 b
B

145,750 b
B

125

57,500 a
A

49,500 a
A

85,500 a
A

Remarks:
The numbers followed by the same letter did not differ markedly according to Duncan's test at a significant level of 5%.  Lowercase letters are read in the vertical direction (column) and capital letters are read in the horizontal direction (row)

Which material is the best? Materials C? No! All materials do not differ when the temperature is low (15) or high (125). Materials B and C are good when the temperature is 70 C.

What temperature is best? 15 C? Yes, if material A is used, but if material B or C is used, the suitable temperatures are 15 C and 75 C.

 

Calculation Using SmartstatXL Excel Add-In

Graphical user interface, application Description automatically generated

Table Description automatically generated

Graphical user interface, application Description automatically generated

Graphical user interface Description automatically generated with low confidence