Test of Difference and Friedman
Test of Difference and Friedman
Test of Difference and Friedman
This unit tackles statistical processes on the test of difference between two or more variables.
Just like in the previous unit, testing the null hypothesis (Ho) is a part of the lessons here.
This will provide you with better understanding of values obtained as they are applied in
your profession.
I. Topics:
A. Test of Difference Between Two Means
B. Friedman’s two-Way ANOVA
II. Objectives:
III. Presentation
A. Test of Difference
a. The t-test for one-sample case is used in determining the significant difference
between the sample mean from a standard mean.
Example:
Problem (adopted from Subong): Is there any significant difference on the sample mean
of the nicotine content in the blood stream of 100 patients who are cigarette smokers
compared with that of the standard mean of nicotine content in the blood stream of
standard or normal cigarette smokers?
sd = 15 mg/i.u.
sd of sample mean = 4.58
n = 100
Illustration of Calculation:
1) t-test for independent samples. This is used when there are 2 data taken from 2
distinct or different groups. The formula is:
M 1−M 2
t=
√ √
2
Model 1 ( n 1−1 ) ( s 1 ) +(n 2−1)(s 2)² 1 1
+
n 1+n 2−2 n1 n2
s1 = 2.23 s2 = 2.51
n1 = 30 n2 = 32
47.62−35.15
t=
√ √
2
( 30−1 )( 2.23 ) +(32−1)(2.51) ² 1 1
+
30+32−2 30 32
computed value
Interpretation:
Degree of freedom (df) = 60
Level of significance = 0.05
Critical value = 2.0
Decision: Ho is rejected.
Conclusion: There is significant difference . . .
Model 2
To determine the sum of squares: square all the scores and get the total.
79² + 83² + 90² + 81² + 93² +89² = 44 361
To get the mean: add all the scores and divide it by n (round-off the mean to the nearest whole
number. 79 + 83 + 90 + 81 + 93 + 89 = 515 515/6 = 85.8 (86)
∑d ² 157
To get the variance: N −1 = 6−1 =31.4
To get sd: Subtract mean from score, then square the difference and add them together. Divide
X M D D²
79 86 -7 49
83 86 -3 9
90 86 4 16
81 86 -5 25
93 86 7 49
89 86 3 9____
∑d²=157
M 1−M 2 ❑
¿
t-ratio
√ s 1+ s 2 1
+
√1
n 1+n 2−2 n 1 n 2
=
√ √
❑ ❑+❑ =
❑ ❑ ❑
computed value
2) t-test for dependent samples – this is used when 2 data are taken from the same
group.
Example: You want to determine the significant difference between the Theoretical
and Practical performance of the Male and Female students in Statistics.
² 12 2
X r= ∑ ( Ri ) −3 N ( K +1)
NK (K + 1)
²
Where: X ris the Friedman’s two-way ANOVA by ranks
Example:
Data:
² 12 12
X r= 200-3(4)(4) = 48 200 - 48 = 0.25 (200) -48 = 50 – 48 =2
( 4) ( 3 )( 4 )
Computed value
df= (k-1) = 3 – 1 = 2 Level of significance: 0.05= 5.991
Score
Part I. Determine the differences of the two means of the following cases and test the Ho given.
A. Independent Samples
Model 1:
Problem: Is there a significant difference in the performance of Accountancy students in AEC
22 (Biostatistics) final examination when categorized according to gender?
Data:
Male: 32; 29; 27; 30; 18; 21; 31; 28; 25; 23; 24; 15
Female: 40; 37; 28; 16; 12; 32; 32; 26; 25; 23; 21; 33; 34; 19
df = 12 + 14 – 2 = 24; Critical value: 0.05 = 2.064
Model 1:
Data: M1 = 25 M2 = 27
M1 = 303/12 = 25.25 or 25
s1 = 5.30 s2 = 8.14 M2 = 378/14 = 27
s1 = √ 309/11 = 5.30
n1 = 12 n2 = 4 s2 = √861/13 = 8.14
n1 = 12
n2 = 14
M 1−M 2
√
T ratio = ( n 1−1 ) ( s 1 )2 +(n 2−1)(s 2)²
n 1+n 2−2 √ 1 1
+
n1 n2
25−27
√
= ( 12−1 ) ( 5.30 ) +(14−1)(8.14) ²
√
2
1 1
+
12+14−2 12 14
−2
=
√ ( 11 ) (28.09)+(13)(66.26)
24
√ 0.085+0.071
−2
=
√ ( 308.99 ) +( 861.40)
24
√0.154
−2
=
√ (1,170.4 )
24
√ 0.154
−2
=
√ 48.8 √ 0.154
−2
= ( 6.98 ) (0.39)
−2
= 2.72
= 0.74 computed value
Model 2
Hospitals 96 95 92 95 95
Polyclinics 95 87 85 92 95
Practicum Paper 30
Name : ___________________________________________________________
Ho: There is no significant difference in the perceptions of three groups of business owners on
oil price increase.
Raw Data;
A. Food Industries
Total
Perceptions 3 2 1 Points Wm Rank Interpretation
1. It goes with
inflation. 32 16 2
2.It is the result of lack
of production. 11 27 12
3.There is economic
sabotage. 29 18 3
4.Application of the
Law of Supply and 8 26 16
Demand.
5. It is the result of
conflicts among oil 31 9 10
exporting countries.
Overall Weighted Mean
B. Bakeries
Total
Perceptions 3 2 1 Points Wm Rank Interpretation
1. It goes with
inflation. 7 12 16
2.It is the result of lack
of production. 5 18 12
3.There is economic
sabotage. 21 7 7
4.Application of the
Law of Supply and 6 23 6
Demand.
5. It is the result of
conflicts among oil 7 7 21
exporting countries.
Overall Weighted Mean
C. Agricultural products
Total
Perception 3 2 1 Points Wm Rank Interpretation
1. It goes with
inflation. 9 21 10
2.It is the result of lack
of production. 17 12 11
3.There is economic
sabotage. 5 8 27
4.Application of the
Law of Supply and 13 13 14
Demand.
5. It is the result of
conflicts among oil 19 14 7
exporting countries.
Overall Weighted Mean
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_________________________________________________________________.