You are on page 1of 9

The One-way Analysis of Variance (ANOVA)

Statistical comparison of at least 2 population or sample means can be performed using


the ANOVA technique or F-test. This method partitions the total variance of the variable of
interest into several sources or components.
Data Presentation:
P samples Observations (Xij)
Sample 1
Sample 2
.
.
Sample p
where:

X11
X21

X12
X22

Xp1

Xp2

Sample size
(ni)
n1
n2
.
.
np
n

X1n1
. X2n2
.

Xpnp

n = total number of observations


GT = grand total
GM= grand mean = GT/n

Sample
Total (Ti)
T1
T2
.
.
Tp
GT

Sample _
Mean (Xi)
X1
X2
.
.
Xp
GM

ni= number of observation/treatment

Test Procedure:
I.

Ho: There is no significant difference between treatment means


Ha: At least two of the means are not equal
II.
Test stat: Do an F-test at level of significance
III.
DR: Reject Ho if Fc F(p-1,n-1), else accept Ho
IV.
Computation:
ANOVA Table:
Source of
Variation (SV)
Between samples
(Trmt)
Within samples
(Error)
Total

Degree of
Freedom (df)

Sum of
Squares SS)

Mean Squares
(MS)

Fc

Ftab

t-1

TrSS

MSTr

MSTr/MSE

F(t-1, n-t )

n-t
n-1

ESS
TSS

MSE

where:
GT2
CF = -----n

TSS = X CF

Ti2
Trss = ------- - CF
ni

ESS= TSS-TrSS

MSTr = TrSS/t-1

MSE= ESS/n-t

MSTr
Fc = ---------MSE

Ftab: F(t-1, n-t )

V.
VI.

2
ij

Decision: Reject/accept Ho
Conclusion:

Example 1:
The data below represent the number of hours of pain relief provided by four (4) different brands
of headache tablets administered to 20 subjects. These subjects were randomly divided into 4
groups and each was treated with a different brand.
Brands of
Tablets
A
B
C
D

Hours of relief using


5 subjects/tablets
6 7 5 8 3
8 9 6 9 7
3 1 4 5 4
7 3 5 1 2

No. of subjects/
Total/
brand
subject
5
29
5
39
5
17
5
18
n=20
GT = 103

Mean
5.8
7.8
3.4
3.6

Are there significant differences on the mean number of hours of relief provided by
the tablets among the different brands? Use 5% level of significance.
SOLUTION:
i) Ho: A= B= C= D (There is no significant difference in the mean number of hours of
relief provided by the headache tablets among the different brands)
Ha: At least two of the brands of headache tablets have different mean number of hours of
relief provided
ii) Test stat: Do an F-test at 5% level of significance
iii)
DR: Reject Ho if Fc F(p-1,n-1), else accept Ho
iv)
Computation:
1032
CF = -----20

= 530.45

TSS = Xij2 CF = (62+ 72 ++ 22) 530.45 = 649- 530.45 = 118.55


Ti2
(292 +392 + 172 + 182)
Trss = ------- - CF = ----------------------------- - 530.45 = 2975/5 530.45
ni
5
= 595 530.45 = 64.55
ESS= TSS-TrSS = 118.55 64.55 = 54
TrSS
64.55
MSTr = ------- = --------- = 21.52
t-1
4-1

ESS
54
MSE= ------- = -------- = 3.375
n-t
20-4

MSTr
21.52
Fc = ---------- = -------- = 6.38
MSE
3.375

Ftab: F(t-1, n-t ) = F0.05 (3, 16) = 3.24


F0.01 (3, 16) = 5.29

ANOVA Table:
Source of
Variation (SV)
Between samples
(Trmt)
Within samples
(Error)
Total

Degree of
Freedom (df)

Sum of
Squares SS)

Mean Squares
(MS)

4-1 = 3

64.55

21.52

20-4 = 16
20-1 = 19

54
118.55

3.375

Ftab
5% 1%

Fc
6.38*

3.24 5.29

V. Decision: Reject Ho since Fc > Ftab (6.38 > 3.24)


VI.

Conclusion: At least two of the brands of headache tablets have different mean
number of hours of relief provided OR
There are significant differences in the number of hours of relief provided
among the different headache tablets

Recommendation: ?

Example 2.
Researchers who are interested in stress as it relates to work assignments in industrial
settings, conducted a study in which pulse rates of three groups of workers are compared. The
first group consists of office staff who perform routine clerical duties, the second group works
with hazardous materials while the third performs tasks similar to those performed by the second
group but do not come in contact with hazardous materials. Pulse rates are taken at the midpoint
of the one hour lunch period for all three groups. The pulse rates thus obtained are provided
below:
Office workers

: 58 64 71 66 79 74 70

Hazardous materials

: 88 59 74 80 81 69 90

Non-hazardous materials

: 65 70 79 66 74 79 60

Test the hypothesis that the average pulse rates differed significantly among the three
groups of workers at 1% level of significance.

CHI-SQUARE TEST (2-test)


Tests for independence or significant relationship between two nominal or ordinal
variables. It also tests for equality of any number of proportions or frequencies in rxc
contingency table.
Data Presentation: r x c contingency table
Row 1
Row 2
.
Row r

Column 1
f11
f21

Column 2
f12
f22

fr1

fr2

Column c
f1c
f2c
frc

where: f = frequency count


Test Procedure:
i) Ho: All population proportions are equal or the same
There is no significant relationship between r and c variables
r and c variables are not significantly related/dependent
r and c variables are independent from each other
Ha: All population proportions are not equal or different
There is a significant relationship between r and c variables
r and c variables are significantly related/dependent
r and c variables are dependent from each other
ii) Test stat: Do a 2-test at level of significance
3

iii)
iv)

DR: Reject Ho if 2c 2 (r-1)(c-1) else accept Ho


Computation:

(Obs-Exp)2
c = --------------Exp
where:
2

vs. 2 (r-1)(c-1)

Obs = Observed values


Exp = Expected values

Row total x Column total


= ------------------------------Grand total

v) Decision: Reject/accept Ho
vi) Conclusion:
Example 1:
A study was conducted regarding nutritional instruction and low birth weight babies. In
this study, 314 mothers received nutritional instruction of which 23 had low birth weight babies.
By contrast, 39 of the 316 mothers in the non-instruction group had low birth weight babies.
With the data shown below, test the hypothesis that the proportion of low birth babies born to the
mothers receiving nutritional instruction is the same as the proportion born to mothers who did
not receive instruction.
Low birth weight
Not low birth weight

With Instruction No Instruction


23
39
291
277

SOLUTION:
i) Ho: The proportion of low birth babies born to the mothers receiving nutritional instruction
is the same as the proportion born to mothers who did not receive instruction.
Ha: The proportion of low birth babies born to the mothers receiving nutritional instruction
is not the same as the proportion born to mothers who did not receive instruction.
ii)
Test stat: Do a 2-test at level of significance
iii)
DR: Reject Ho if 2c 2 (r-1)(c-1) else accept Ho
iv) Computation:
Nutritional Instruction
With Instruction No Instruction
Low birth weight
Not low birth weight
Total

23
291
314

(30.90)
(283.10)

39
277
316

(31.10)
(284.90)

(314)(62)
Exp11 = ----------- = 30.90
630

(316)(62)
Exp12 = ----------- = 31.10
630

(314)(568)
Exp11 = ------------- = 283.10
630

(316)(568)
Exp12 =------------- = 284.90
630

Total
62
568
630

(Obs-Exp)2 (23-30.90)2 (39-31.10)2 (291-283.10)2


(277-284.90)2
c = --------------- = ------------- + ------------- + ----------------- + --------------Exp
30.90
31.10
283.10
284.90
2

= 2.02 + 2.01 + 0.22 + 0.22 = 4.47


2 tab = 2 (r-1)(c-1) = 20.05 (2-1)(2-1) = 20.05 (1) = 3.841
v) Decision: Reject Ho since 4.47>3.841
vi) Conclusion: The proportion of low birth babies born to the mothers receiving nutritional
instruction is not the same as the proportion born to mothers who did not
receive instruction.
Example 2.
The side effects of nonsteroidal anti-inflammatory drugs (NSAID) include problems
involving peptic ulceration, renal function, and liver disease. In 1996, the American College of
Rheumatology issued and disseminated guidelines recommending baseline tests (CBC, hepatic
panel, and renal tests) when prescribing NSAID.A study was conducted by Rothenberg and
Holcomb (A-6)to determine if physicians taking part in a national database of computerize
medical records performed the recommended baseline tests when prescribing NSAID. The
researches classified physicians in the study into four categories; those practicing in internal
medicine, family practice, academic family practice, and multispecialty groups. The data appear
in the following table.
-------------------------------------------------------------------------------------Performed Baseline Tests
Practice Type
Yes
No
-------------------------------------------------------------------------------------Internal medicine
294
921
Family practice
98
2862
Academic family practice
50
3064
Multispecialty groups
203
2652
-------------------------------------------------------------------------------------Do the data above provide sufficient evidence for us to conclude that type of practice and
performance of baseline tests are related? Use =0.01.

PROBLEM SET

1.
A study by Sma`rason et al. was motivated by the observations of other researchers
that sera from preeclamptic women damaged cultured human endothelial cells. Subjects for
the present study were women with preeclampsia, matched control women with normal
pregnancies, and nonpregnant women of childbearing age. Among the data collected were the
following observations on a relevant variable measured on subjects in the three groups.
----------------------------------------------------------------------------------------------Preeclampsia
Pregnant Controls
Nonpregnant Controls
----------------------------------------------------------------------------------------------113.5
91.4
94.5
106.6
95.6
115.9
39.1
113.1
107.2
95.5
100.8
103.2
43.5
88.2
104.7
49.2
92.2
94.9
99.5
78.6
93.0
102.9
96.9
100.4
----------------------------------------------------------------------------------------------

2.

Hughes et al. point out that systematic complications in acute pancreatitis are largely
responsible for mortality associated with the disease. They note further that proinflammatory
cytokines, particularly TNF, may play a central role in acute pancreatitis by mediating the
systemic squelae. Among the data collected were the following hematocrit (%) values for
adult male rats surviving more than 48 hours:

Sham
:
Untreated :
Treated :

38
56
40

40
60
42

32
50
38

36
50
46

40
50
36

40

38

40

38

40

35

40

40

55

35

36

3. Boles and Johnson examined the beliefs held by adolescents regarding smoking and weight.
Respondents characterized their weight into three categories: underweight, overweight, or
appropriate. Smoking status was categorized according to the answer to the question, Do
you currently smoke, meaning one or more cigarettes per day? The following table shows
the results of a telephone study of adolescents in the age group 12-17.
=================================
Smoking
Yes No
------------------------------------------------------Underweight
17
97
Overweight
25
142
Appropriate
96
816
=================================
Do the data provide sufficient evidence to suggest that weight perception and smoking status
are related in adolescents? Use =0.05.

4. A sample of 500 college students participated in a study designed to evaluate the level of
college students knowledge of a certain group of common diseases. The following table
shows the students classified by major field of study and level of knowledge of the group of
diseases.
==========================================
Knowledge of Diseases
Major
Good
Poor
Total
----------------------------------------------------------------------Premedical
31
91
122
Other
19
359
378
---------------------------------------------------------------------Total
50
450
500
==========================================
Do these data suggest that there is a relationship between knowledge of the group of diseases
and major field of study of the college students from which the present sample was drawn?
Let =0.01.
5. The following table shows the results of a survey in which the subjects were a sample of
300 adults residing in a certain metropolitan area. Each subject was asked to indicate which
of three policies they favored with respect to smoking in public places.
------------------------------------------------------------------------------------------------------------------Policy Favored
---------------------------------------------------------------------------------Highest
No restrictions Smoking allowed
No smoking
No
Education Level
On Smoking
in designated
at all
opinion
areas only
-----------------------------------------------------------------------------------------------------------------College students
5
44
23
3
High school graduate
15
100
30
5
Grade school graduate
15
40
10
10
----------------------------------------------------------------------------------------------------------------Can one conclude from these data that, in the sampled population, there is a relationship between
level of education and attitude toward smoking in public places? Let =2.5%
6. The purpose of a study by brown and persley (A-8) was to characterize acute hepatitis A in
patients more than 40 years old. They performed a retrospective chart review of 20 subjects
who were diagnosed with acute hepatitis A, but were not hospitalized. Of interest was the use
of age (years) to predict bilirubin levels (mg/dL). The following data were collected.
-------------------------------------------------------------------------------------------------------------Age(Years)
Bilirubin (mg/dL)
Age (Years)
Biliribin (mg/dL)
--------------------------------------------------------------------------------------------------------------78
7.5
44
7.0
72
12.9
42
1.8
81
14.3
45
.8
59
8.0
78
3.8
64
14.1
47
3.5
48
10.9
50
5.1
46
12.3
57
16.5
42
1.0
52
3.5
58
5.2
58
5.6
52
5.1
45
1.9

7. A simple random sample of 15 apparently healthy children between the age of 6 months and
15 years yielded the following data on age, X, and liver volume p0er unit of body weight
(ml/kg), Y:
-----------------------------------------------------------X
Y
X
Y
-----------------------------------------------------------0.5
41
10.0
26
0.7
55
10.1
35
2.5
41
10.9
25
4.1
39
11.5
31
5.9
50
12.1
31
6.1
32
14.1
29
7.0
41
15.0
23
8.2
42
--------------------------------------------------------8. A study by Triller et al. (A-14) examine the length of time required for home health-care
nurses to repackage a patients medication into various medication organizers (i.e. pill
boxes). For the 19 patients in the study, researchers recorded the time required for
repackaging of medications. They also recorded the number of problems encountered in the
repackaging session.
Patient No.

10

No.of Problems

Repackaging
Time(Minutes)

38

25

18

15

25

10

10

15

9. The following are the weights (kg) and blood glucose levels (mg/100 ml) of 16 apparently
healthy adult males:
Weight (X)

Glucose(Y)

64.0
75.3
73.0
82.1
76.2
95.7
59.4
93.4
82.1
78.9
76 7
82.1
83.9
73.0
64.4
77.6

108
109
104
102
105
121
79
107
101
85
99
100
108
104
102
87

Find the simple linear regression equation and test Ho: =0 using both ANOVA and the t test.
Test Ho: =0 and construct a 95 percent confidence interval for . What is the predicted glucose
level for a man who weights 95 kg? Construct the 95 percent prediction interval for his weight. Let =
0.5 for all tests.

Patient No.

11

12

13

14

15

16

17

18

19

No.of Problems

10

Repackaging
Time(Minutes)

10

15

17

18

23

29

22

20

You might also like