1 of 69

Two way ANOVA

Dr. Anshul Singh Thapa

2 of 69

Two way ANOVA

  • Till now we have learned how the effect of one independent or one type of treatment was studied on single dependent variable.
  • Now when we want to study the effect of two independent variables on a single dependent variable. Further suppose our aim is to study the independent effects of the independent variables as well as their combined or joint effect on the dependent variable. Then we should use Two Way ANOVA. The Two Way ANOVA studies the following:
    • The independent effect of one training on selected behavior
    • The independent effect of other training on selected behavior
    • The interactional effect of first and second training i.e., 1 x 2 on selected behavior.
  • In two way analysis of variance, usually the two independent variables are taken simultaneously. It has two main effects and one interactional or joint effect. In such situation we have to use analysis of variance in two way i.e., vertically as well as horizontally.

3 of 69

4 of 69

Steps in calculation of ‘F’�Two way ANOVA

Step 1 – Correction factor

Step 2 – Sum of Square of Total SST

Step 3 – Sum of Square among the group SSA

Step 4 – Sum of Square between the A group (Gender) SSAS

Step 5 – Sum of Square among the B group (Game) SSAG

Step 6 – Sum of Square of interaction (Gender x Game) SSS x G

Step 7 – Sum of Square within the Groups SSW

Step 8 – Mean Sum of Squares among the groups MSSA

Step 9 – Mean Sum of Squares between the A groups (Gender) MSSAS

Step 10 – Mean Sum of Squares among the B groups (Game) MSSAG

Step 11 – Mean Sum of Squares interaction (Gender X Game) MSSS x G

Step 12 – Mean Sum of Squares within the groups MSSW

Step 13 – Summary of ANOVA

5 of 69

Steps in calculation of ‘F’�Two way ANOVA

Step 1 – Correction factor

Step 2 – Sum of Square of Total SST

Step 3 – Sum of Square among the group SSA

Step 4 – Sum of Square between the A group (Gender) SSAS

Step 5 – Sum of Square among the B group (Game) SSAG

Step 6 – Sum of Square of interaction (Gender x Game) SSS x G

Step 7 – Sum of Square within the Groups SSW

Step 8 – Mean Sum of Squares among the groups MSSA

Step 9 – Mean Sum of Squares between the A groups (Gender) MSSAS

Step 10 – Mean Sum of Squares among the B groups (Game) MSSAG

Step 11 – Mean Sum of Squares interaction (Gender X Game) MSSS x G

Step 12 – Mean Sum of Squares within the groups MSSW

Step 13 – Summary of ANOVA

6 of 69

Step 1 – Calculation of Correction factor

7 of 69

8 of 69

9 of 69

10 of 69

11 of 69

12 of 69

Step 1 – Calculation of Correction factor

Calculation of Correction Factor (CF)

G2

N

6762

40

CF = 11424.40

13 of 69

Step 2 – Calculation of Sum of Square of Total SST

14 of 69

15 of 69

16 of 69

17 of 69

18 of 69

19 of 69

20 of 69

21 of 69

22 of 69

23 of 69

24 of 69

�Step 2 – Calculation of Sum of Square of Total SST

Calculation of Raw Some of Square (RSS)

(RSS) = X12 + X22 + X32 + X42 = 12192

SST = 3073 + 3783 + 3322 + 2014 = 12192

SST = 12192 – CF

SST = 12192 – 11424.4

SST = 767.6

25 of 69

Step 3 – Calculation of Sum of Square among the groups SSA

26 of 69

27 of 69

28 of 69

29 of 69

30 of 69

31 of 69

32 of 69

33 of 69

34 of 69

35 of 69

Step 3 – Calculation of Sum of Square among the groups SSA

Calculation of Sum of Square of Among the group SSA

SSA = (88)2/5 + (117)2/5 + (87)2/5 + (78)2/5 + (83)2/5 + (70)2/5 + (91)2/5 + (62)2/5 – 11424.4

SSA = 7744/5 + 13689/5 + 7569/5 + 6084/5 + 6889/5 + 4900/5 + 8281/5 + 3844/5 – 11424.4

SSA = 1548.8 + 2737.8 + 1513.8 + 1216.8 + 1377.8 + 980 + 1656.2 + 768.8 – 11424.4

SSA = 11800 – 11424.4

SSA = 375.6

36 of 69

Step 4 – Calculation of Sum of Square between the groups (Gender) SSAS

37 of 69

38 of 69

39 of 69

40 of 69

Step 4 – Calculation of Sum of Square between the groups (Gender) SSAS

Calculation of Sum of Square between the groups (Gender) SSAS

SSAS = (ΣR1)2/ Rn + (ΣR2)2/ Rn - CF

SSAS = (370)2/ 20 + (306)2/20 – 11424.4

SSAS = 6845 + 4681.4 – 11424.4

SSAS = 11526.8 – 11424.4

SSAS = 102.40

41 of 69

Step 5 – Calculation of Sum of Square among the groups (Game) SSAG

42 of 69

43 of 69

44 of 69

45 of 69

46 of 69

Step 5 – Calculation of Sum of Square among the groups (Game) SSAG

Calculation of Sum of Square among the groups (Game) SSAG

SSAG = (ΣC1)2/ Cn + (ΣC2)2/ Cn + (ΣC3)2/ Cn + (ΣC4)2/Cn - CF

SSAG = (171)2/10 + (187)2/10 + (178)2/10 + (140)2/10 – 11424.4

SSAG = 2924.1 + 3496.9 + 3168.4 + 1960 – 11424.4

SSAG = 11549.4 – 11424.4

SSAG = 125

47 of 69

Step 6 – Calculation of Sum of Square among the interaction (Gender x Game) SSAS x AG

Calculation of Sum of Square between the interaction (Gender x Game) SSAS x AG

SSAS x AG = SSA– SSAS – SSAG

SSAS x AG = 375.6 – 102.40 – 125

SSAS x AG = 148.20

48 of 69

Step 7 – Calculation of Sum of Square within the Group SSW

Calculation of Sum of Square within the Group SSW

SSW = SST – SSA

SSW = 767.60 – 375.6

SSW = 392

49 of 69

Step 8 – Calculation of Mean Sum of Square among the groups (MSSA)

Calculation of Mean Sum of Square among the groups (MSSA)

MSSA = SSA/ k – 1

MSSA = 375.6/ 7

MSSA = 53.67

50 of 69

Step 9 – Calculation of Mean Sum of Square between the groups (Gender) (MSSAS)

Calculation of Mean Sum of Square between the groups (Gender) (MSSAS)

MSSAS = SSAS/ k1 – 1

MSSAS = 102.40/ 1

MSSAS = 102.40

51 of 69

Step 10 – Calculation of Mean Sum of Square among the group (Games) MSSAG

Calculation of Mean Sum of Square among the groups (Games) (MSSAG)

MSSAG = SSAG/ k2 – 1

MSSAG = 125/3

MSSAG = 41.67

52 of 69

Step 11 – Calculation of Mean Sum of Square among the group (Gender X Game) MSSAG X AS

Calculation of Mean Sum of Square among the group (Gender X Game) (MSSAG X AS)

MSSAG X AS = SSAG X AS/ (k1 – 1) (k2 – 1)

MSSAG X AS = 148.20/ 3

MSSAG X AS = 49.40

53 of 69

Step 12 – Calculation of Mean Sum of Square within the group MSSW

Calculation of Mean Sum of Square within the group MSSW

MSSW = SSW/ N – k

MSSW = 392/32

MSSW = 12.25

54 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

55 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

56 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

Between the Groups (Gender)

57 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

Between the Groups (Gender)

Among the groups (Game)

58 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

Between the Groups (Gender)

Among the groups (Game)

Interaction (Gender x Game)

59 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

Between the Groups (Gender)

Among the groups (Game)

Interaction (Gender x Game)

Within the Group

60 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

Between the Groups (Gender)

1

Among the groups (Game)

3

Interaction (Gender x Game)

3

Within the Group

32

61 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

Between the Groups (Gender)

1

102.40

Among the groups (Game)

3

125

Interaction (Gender x Game)

3

148.20

Within the Group

32

392

62 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

Between the Groups (Gender)

1

102.40

102.40

Among the groups (Game)

3

125

41.66

Interaction (Gender x Game)

3

148.20

49.40

Within the Group

32

392

12.25

63 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

Between the Groups (Gender)

1

102.40

102.40

8.35*

Among the groups (Game)

3

125

41.66

3.40*

Interaction (Gender x Game)

3

148.20

49.40

4.03*

Within the Group

32

392

12.25

64 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

2.25 (F.057,32)

Between the Groups (Gender)

1

102.40

102.40

8.35*

4.15 (F.052,32)

Among the groups (Game)

3

125

41.66

3.40*

2.90 (F.053,32)

Interaction (Gender x Game)

3

148.20

49.40

4.03*

2.90 (F.053,32)

Within the Group

32

392

12.25

65 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

2.25 (F.057,32)

Between the Groups (Gender)

1

102.40

102.40

8.35*

4.15 (F.052,32)

Among the groups (Game)

3

125

41.66

3.40*

2.90 (F.053,32)

Interaction (Gender x Game)

3

148.20

49.40

4.03*

2.90 (F.053,32)

Within the Group

32

392

12.25

*Significant at 0.05 level of Significance

66 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

2.25 (F.057,32)

Between the Groups (Gender)

1

102.40

102.40

8.35*

4.15 (F.052,32)

Among the groups (Game)

3

125

41.66

3.40*

2.90 (F.053,32)

Interaction (Gender x Game)

3

148.20

49.40

4.03*

2.90 (F.053,32)

Within the Group

32

392

12.25

*Significant at 0.05 level of Significance

Degree of Freedom:

Among the Group = k – 1

Between the Groups SSAS = k1 – 1

Between the group SSAG = k2 - 1

Within the group = N – k

67 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

2.25 (F.057,32)

Between the Groups (Gender)

1

102.40

102.40

8.35*

4.15 (F.052,32)

Among the groups (Game)

3

125

41.66

3.40*

2.90 (F.053,32)

Interaction (Gender x Game)

3

148.20

49.40

4.03*

2.90 (F.053,32)

Within the Group

32

392

12.25

*Significant at 0.05 level of Significance

Degree of Freedom:

Among the Group = k – 1

Between the Groups SSAS = k1 – 1

Between the group SSAG = k2 - 1

Within the group = N – k

k = 8 (Number of groups)

n = 5 (Number of subjects in each group)

N = 40 [n x k or n1+n2+n3 (Total number of scores in an experiment)]

68 of 69

Step 13 – ANOVA Summary

Source of Variance

df

Sum of Square

Mean Sum of Square

F – value

(calculated value)

F – value

(table value)

Among the groups

7

375.6

53.65

4.37*

2.25 (F.057,32)

Between the Groups (Gender)

1

102.40

102.40

8.35*

4.15 (F.052,32)

Among the groups (Game)

3

125

41.66

3.40*

2.90 (F.053,32)

Interaction (Gender x Game)

3

148.20

49.40

4.03*

2.90 (F.053,32)

Within the Group

32

392

12.25

*Significant at 0.05 level of Significance

Degree of Freedom:

Among the Group = k – 1

Between the Groups SSAS = k1 – 1

Between the group SSAG = k2 - 1

Within the group = N – k

k = 8 (Number of groups)

n = 5 (Number of subjects in each group)

N = 40 [n x k or n1+n2+n3 (Total number of scores in an experiment)]

  • Since computed values of F for row, column and interaction are greater than their corresponding tabulated values, therefore null hypothesis for row, column and interaction may be rejected at .05 level of significance.

69 of 69