1 of 18

ANOVA and Test of Independence

Md. Ershadul Haque, PhD

Associate Professor

Dept. of Statistics, University of Dhaka

23-24 February, 2024

2 of 18

  • When we are interested in comparing the mean scores of more than two groups. In this situation we would use analysis of variance. Analysis of variance is so called because it compares the variance.

Assumptions

  • Before conducting the ANOVA the necessary assumptions must be met. The assumptions for ANOVA are the same as those for the t-test.
  • Population normality- populations from which the samples have been drawn should be normal.
  • Homogeneity of variance- the scores in each group should have homogeneous variances between the different groups

One-way Analysis of Variance (ANOVA)

3 of 18

 

ANOVA (Cont…)

4 of 18

 

ANOVA (Cont…)

5 of 18

 

ANOVA (Cont…)

6 of 18

 

ANOVA (Cont…)

Sources of Variation

Sum of Squares (SS)

Degrees of Freedom (df)

Mean Square(MS)

F

Treatments

  •  

k-1

  •  
  •  

Error

  •  

n-k

  •  

Total

  •  

n-1

-

-

7 of 18

Problems on ANOVA

Problem-2: The manager of a computer software company wishes to study the number of hours senior executives spend at their desktop computers by type of industry. The manager selected a sample of the executives from each of three industries. At the 0.05 significance level, can she conclude there is a difference in the mean number of hours spent per week by industry?

Banking

Retail

Insurance

12

8

10

10

8

8

10

6

6

12

8

8

10

10

10

8 of 18

Problems on ANOVA (Cont…)

  •  

Banking

Retail

Insurance

Treatment Total

54

40

42

Treatment Mean

10.8

8.0

8.4

Overall Mean

9.07

Overall Variance

3.35

9 of 18

Problems on ANOVA (Cont…)

  •  

Sources of Variation

Sum of Squares

Degrees of Freedom

Mean Square

F

Treatments

22.93

2

11.47

5.74

Error

23.97

12

2

Total

46.9

14

-

-

10 of 18

 

 

11 of 18

 

 

12 of 18

  • The use of cellular phones in automobiles has increased dramatically in the last few years. Of concern to traffic experts, as well as manufacturers of cellular phones, is the effect on accident rates. Is someone who is using a cellular phone more likely to be involved in a traffic accident? What is your conclusion from the following sample information? Use the .05 significance level.

 

13 of 18

 

 

14 of 18

 

 

15 of 18

  • The quality control department at Food Town Inc., a grocery chain in upstate New York, conducts a monthly check on the comparison of scanned prices to posted prices. The chart below summarizes the results of a sample of 500 items last month. Company management would like to know whether there is any relationship between error rates on regularly priced items and specially priced items. Use the .01 significance level.

 

16 of 18

 

 

 

Regular

Special

Total

Undercharge

20 (14.1) [8.51%]

10 (15.9) [3.77%]

30

Overcharge

15 (21.2) [6.38%]

30 (23.8) [11.32%]

45

Correct

200 (199.8) [85.11]

225 (225.2) [84.91%]

425

Total

235 [100%]

265 [100%]

500

17 of 18

 

 

18 of 18

Thank you for your attention!