Professional Documents
Culture Documents
Suprihatin
Department of Agro-Industrial Technology
Faculty of Agricultural Tecnology
Bogor Agricultural University
Odd Semester 2017/2018
k
2 i
O E 2
i , where
i E
i
2. Critical value
The number of category (k) is 4, namely A, B, C, and D db = k – 1 = 4 -
1= 3
Significant level used is 0.05(5%),
Region
Total
A B C D
Observation Data (O) 6 12 14 8 40
Expectation (E) 10 10 10 10 40
2 is calculated from:
2
k
O
i
E
i
2
6 102 12 102 14 102 8 102
4.0
i E 10 10 10 10
i
2
i
k O E 2 200 - 1502 100 - 1502
i 33.3
i E 150 150
i
i
i
k O E 2 1000 - 7502 900 - 7502 600 - 7502 500 - 7502
2 226.7
i E 750 750 750 750
i
1 2 3 4 5 6 7 8
Number of
observed people
30 19 18 24 17 8 17 11
that prefer the
product type (Oi)
12 k 2 3N(k 1)
2 j R
Nk(k 1) i 1
1 76 70 75
2 71 65 77
3 56 57 74
4 67 60 59
5 70 56 76
6 77 71 73
7 45 47 78
8 60 67 62
9 63 60 75
10 60 59 74
11 61 57 60
12 56 60 75
13 59 54 70
14 74 72 71
15 66 63 65
Total 961 918 1064
1 3 1 2
2 2 1 3
3 1 2 3
4 3 2 1
5 2 1 3
6 3 1 2
7 1 2 3
8 1 3 2
9 2 1 3
10 2 1 3
11 3 1 2
12 1 2 3
13 2 1 3
14 3 2 1
15 3 1 2
Jumlah 32 22 36
2
12
(15)(3)(3 1)
322 222 362 3(15)(3 1) 6.93
6. Conclusion:
The 2-calculated is greater than 2 -table (this is located within the
critical area), then Ho is rejected , and it is concluded that the three
product types have different preferences
n
6 di2
rs 1 i 1
n(n 1)
2
• Example:
The following table shows the levels of nicotine and tar found
in 10 brands of cigarettes. Calculate the correlation coefficient
of rank to determine the degree of correlation of nicotine and
tar contents in the cigarettes
Viceroy 2 2 0 0
Marlboro 4.5 4 0.5 0.25
Chesterfield 9 9 0 0
Kool 4.5 6 -1.5 2.25
Kent 3 3 0 0
Raleign 1 1 0 0
Old Gold 7 8 -1 1
Philip Morris 8 7 1 1
Oasis 6 5 1 1
Player 10 10 0 0
Jumlah 5.5
Example:
With the data in the above example, test the hypothesis at the
0.01 significance level that there is no correlation between
nicotine and tar contents ( = 0) with alternative hypothesis that
the correlation is greater than 0
2
C , where
N 2
2
O E
2 r k ij ij
i 1j1 Eij
Expectation (E):
Duration of skripsi completion
IPK In time More time Total
(≤ 6 months) (> 6 months)
Very satisfactory 75
Eij=75*65/100=48.70 Eij=75*35/100=26.25
(IPK ≥ 2,75)
Less satisfactory 25
Eij=25*65/100=16.25 Eij=25*35/100=8.75
(IPK < 2,75)
Total 65 Categorical Data Analysis 35 100 43
2
O E
2 r k ij ij 55 48.752 20 26.252 10 16.252 15 8.752
9.15751
i 1j1 Eij 48.75 26.25 16.25 8.75
2 9.15751
C 0.8764
N 2 100 9.15751
= 0,05
df = (k-1)x(r-1)=(2-1)x(2-1)=1
2(1,0.05) = 3.84 (Chi square table)
Total 58 75 68 81 282
Jumlah 58 75 68 81
2
O E
2 r k ij ij 17 16.472 2 23 21.3002 11 14.904 2
... 29.881
i 1j1 Eij 16.472 21.300 14.904
2 29.881
C 0.31
N 2 282 29.881