Chi Square Indonesia
Chi Square Indonesia
(
(
E
13-4
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 1
Data berikut adalah absensi karyawan suatu
pabrik. Pada level signifikan 0,05, ujilah apakah
ada perbedaan dalam absensi dari hari ke hari
dalam seminggu.
Hari Frekuensi
Senin 120
Selasa 45
Rabu 60
Kamis 90
Jumat 130
13-5
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 1 continued
Asumsikan frekuensi harapan adalah
sama: (120+45+60+90+130)/5=89.
Hitung uji statistik adalah .
Nilai degrees of freedom adalah (5-1)=4.
Maka, nilai kritis adalah 9,488 (dari tabel)
13-6
( )
x
f f
f
e
e
2
0
2
=
(
(
E
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Hari Frekuens
i (fo)
F
harapan
(fe)
Fo-fe (f0-fe)2 (fo-fe)2
fe
Senin 120 89
Selasa 45 89
Rabu 60 89 -
Kamis 90 89
Jumat 130 89
0 X
( )
x
f f
f
e
e
2
0
2
=
(
(
E
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 1 continued
1. : tidak ada perbedaan antara data hasil
pengamatan dan frekuensi harapan dlm absensi.
: ada perbedaan antara hasil pengamatan
dengan frekuensi harapan dlm absensi.
2. Tingkat signifikan =0,05
3. Pilih Uji statistika: chi-square
4. Decision Rule: tolak jika uji statistika lebih
besar dibanding critical value. Hitung nilai dalam
tabel chi-square df=4 , sig.=0.05
5. Hitung chi-square=60,8
6. Conclusion: tolak dan disimpulkan bahwa
terdapat perbedaan antara data hasil pengamatan
dan frekuensi harapan dalam absensi .
H
0
H
1
H
0
H
0
13-7
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Karakteristik chi-square
Nilai tidak pernah negatif
Terdapat sebuah keluarga distribusi
Tidak tergantung ukuran
sampeljumlah kategori
Distribusi chi-square kemiringannya positif
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Goodness-of-Fit Test for Normality
Uji ketepatan Perkiraaan: frekuensi harapan tdk setara
Kartu Baseball : fe = 20, dalam kasus berikut uji
chi-square dipakai untuk fe tidak setara
Kegunaan: untuk menguji apakah frekuensi data
yang diamati dalam distribusi frekuensi sesuai
dengan teori distribusi normal .
Contoh:
13-11
Juml.
Rawat (1th)
% AHAA dr
total
Juml. Warga
Bartow (f0)
Juml. Warga yg
diharapkan (fe)
0 40 55 60
1 30 50 45
2 20 32 30
3 10 13 15
100 150 150
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Steps
1. Ho= tidak ada perbedaan kondisi lokal dan nasional
utk jumlah perawatan di RS
2. H1= ada perbedaan kondisi lokal dan nasional utk
jumlah perawatan di RS
3. Level sign. 0,05
4. Uji statistika chi-square
5. Decision Rule: tolak Ho jika uji statistika lebih
besar (>)dibanding critical value. Hitung nilai dalam
tabel chi-square df=3, sig.=0.05 7,815
6. Hitung chi-square (x2)=1,3723
7. Conclusion: terima ho dan disimpulkan bahwa
tidak terdapat perbedaan antara data hasil
pengamatan lokal dan nasional.
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Goodness-of-Fit Test: Unequal Expected
Frequencies
EXAMPLE 2
The U.S. Bureau of the Census indicated that
63.9% of the population is married, 7.7%
widowed, 6.9% divorced (and not re-married),
and 21.5% single (never been married). A
sample of 500 adults from the Philadelphia
area showed that 310 were married, 40
widowed, 30 divorced, and 120 single. At the
.05 significance level can we conclude that the
Philadelphia area is different from the U.S. as
a whole?
13-8
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 2 continued
Status
Married 310 319.5 .2825
Widowed
40 38.5 .0584
Divorced
30 34.5 .5870
Single 120 107.5 1.4535
Total 500 2.3814
f
0
f
e
( ) / f f f
e e 0
2
13-9
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 2 continued
Step 1: : The distribution has not changed.
: The distribution has changed.
Step 2: The significance level is .05.
Step 3: choose chi-square test
Step 4: is rejected if
Step 5:
Step 6: is accepted. The distribution has not
changed.
H
0
H
1
H
0
05 . , 3 , 815 . 7
2
= = > X o df
3824 . 2
2
= X
H
0
13-10
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Keterbatasan Chi-square
Jika hanya 2 cell, fe dalam tiap sel minimal 5
Jika lebih dari 2 cell, chi-square seharusnya tidak digunakan jika
lebih dari 20% cell fe memiliki frekuensi harapan kurang dari 5
tingkat Fo fe
Petugas 30 32
Supervisor 110 113
Manajer 86 87
Manajer mid 23 24
Ass. VP 5 2
VP 5 4
Senior VP 4 1
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
tingkat Fo fe 0-e (0-e)2/e % of
chisq
Petugas 30 32 -2 0,125 0,89
Supervisor 110 113 -3 0,079 0,57
Manajer 86 87 -1 0,011 0,08
Manajer
mid
23 24 -1 0,041 0,30
Ass. VP 5 2 3 4,5 32,12
VP 5 4 1 0.25 1,78
Senior VP 4 1 3 9 64,25
263 263 14,008 100
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
tingkat Fo fe 0-e (0-e)2/e % of
chisq
Petugas 30 32 -2 0,125
Supervisor 110 113 -3 0,079
Manajer 86 87 -1 0,011
Manajer
mid
23 24 -1 0,041
VP 14 7 7 7
263 263
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Analisis Tabel Kemungkinan
Bab 4. data bivariat
Bab. 5. tabel kemungkinan
Chi-square dapat dipakai utk uji dua
variabel skala nominal. (2 variabel bebas)
Pilihan
tinggal
penyes
uaian
Luar
biasa
baik cukup Tidak
puas
total
Kota
asal
27 35 33 25 120
Bukan
kota
asal
13 15 27 25 80
40 50 60 50 200
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Df= (jumlah baris -1)(jumlah kolom-1)
= (r-1)(c-1)
= (2-1)(4-1)=3
Sign. 0,01
Nilai kritis 11,345
Tolak ho jika x2 > 11,345
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Fe =(juml.baris)(juml. Kolom)/(juml.seluruh)
= ((120)(40))/(200)=24
Pilihan
tinggal
penyesu
aian
Luar
biasa
F0-fe
Baik
F0-fe
cukup
F0-fe
Tidak
puas
F0-fe
Total
F0 fe
Kota
asal
27 - 24 35 30 33 - 36 25 - 30 120-120
Bukan
kota
asal
13 16 15 20 27 24 25 20 80-80
40 40 50 - 50 60 60 50 - 50 200-200
( )
x
f f
f
e
e
2
0
2
=
(
(
E
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
X2= ((27-24)2)/24 + ((35-30)2)/30 + dst
=5,729
terima ho
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Prosedur:
tentukan rata-rata dan standar deviasi dari
distribusi frekuensi. (f0-fe)2/fe
Hitung nilai-z untuk batas bawah kelas dan batas
atas kelas.
Tentukan untuk setiap kategori .
Gunakan chi-square goodness-of-fit test untuk
menentukan jika berkoinsiden dgn .
f
e
f
0
f
e
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
EXAMPLE 3
A sample of 500 donations to the Arthritis
Foundation is reported in the following frequency
distribution. Is it reasonable to conclude that the
distribution is normally distributed with a mean of
$10 and a standard deviation of $2? Use the .05
significance level.
Note: To compute for the first class, first
compute the probability for this class.
P(x<6)=P[z<(6-10)/2]=.0228. Thus is
(.0228)(500)=11.4
f
e
f
e
13-12
Irwin/McGraw-Hill
The McGraw-Hill Companies, Inc., 2000
LIND
MASON
MARCHAL
Example 3 continued
Amount f
o
Area f
e
( )
e
e o
f
f f
2