Documente Academic
Documente Profesional
Documente Cultură
PENGUJIAN HIPOTESIS :
Two Sample Hypothesis
Beberapa Uji Statistik
Macam Uji Statistik
Data/
Satu Komparatif (dua sampel) Komparatif (lebih dari 2 Asosiatif
skala
sample sampel) (hubungan)
ukur
Related / Independen Related Independen
Paired
Nominal • Binomial Mc Nemar • Fisher • 2 for k 2 for k Contingency
• 2 One Exact sample sample Coefficient C
Sample Probability
• 2 Two • Cochran
Sample Q
Ordinal Run Test • Sign test • Median test Friedman • Median • Spearman
• Wilcoxon • Mann- Two Way- Extension Rank
matched Whitney U Anova Correlation
pair test • Kruskal-
• Kolmogorov Wallis • Kendall Tau
Smirnov One Way
• Wald- Anova
Woldfowitz
Interval T Test T-test of T-test of • Two Way • One-Way • Pearson
Rasio Related independent Anova Anova Product
Moment
• Partial
Correlation
• Multiple
Correlation
Uji Beda yang biasa dipakai :
Uji Parametrik Uji nonparametrik Tujuan
(menggunakan
asumsi distribusi
Normal)
Kasus Ganda ( 2 kelompok/perlakuan)
Dependence Interdependence
How many variable are Is the structure of
being predicted ? relationships among :
X 1 X
Z
2
2 2
σ1 σ2
n1 n2
Dengan taraf nyata α, maka kriteria pengujian adalah :
• Eka arah negatif : Tolak Ho : Zhitung ≤ - Z α Atau | Zhitung | ≥ | Z α |
Terima Ho : Zhitung > - Z α Atau | Zhitung | < |Z α |
Dwi arah (two tail): Tolak Ho : Z ≤ - Z/2 dan Z ≥ Z/2 atau | Z |≥ |Z/2 |
• Terima Ho : | Z | < |Z/2 | atau -Z /2 < Z < Z /2
Contoh;
• Diketahui; n1 = 100, X1 = 20,7, σ1 = 6.3
n2 = 100, X2 = 18.5, σ2 = 5.8
Pertanyaan :
a. tentukan 95% confidence interval untuk 1 - 2
b. Ujilah hipotesis nol bahwa rata-rata kedua populasi adalah
sama. α = 0.02
Contoh 2
• 141 subjects is used in an experiment to compare
two treatments. Treatment 1 is given to 79 subjects
selected at random, and the remaining 62 are given
treatment 2. the means and standard deviations of
the responses are:
• Treatment 1 : mean = 109, SD = 46.2
• Treatment 2 : mean = 128, SD = 53.4
• Suppose the investigator wishes to establish that
treatment 2 has a higher mean response than
treatment 1, perform the test at alpha 5% and find
the P-value
2. Jika σ1 = σ2 = σ dan σ tidak diketahui
(two – sample pooled t- test)
Test statistic:
t
X 1 X 2
s p2
n1 1s12 n 2 1s 22
1 1
sp n1 n 2 2
n1 n2
Cat : db = n1 + n2 - 2
Keputusan :
• Eka arah negatif : Tolak Ho : thitung ≤ - t α Atau | thitung | ≥ | t α |
• Terima Ho : thitung > - t α Atau | thitung | < |t α |
Dwi arah (two tail): Tolak Ho : t ≤ - t/2 dan t ≥ t/2 atau | t | ≥ |t/2 |
• Terima Ho : | t | < |t/2 | atau -t /2 < t < t/2
Contoh 1
Diketahui:
• Sample dari populasi 1 : 8, 5, 7, 6, 9, 7,10,5,4,5
• Sample dari populasi 2 : 2, 6, 4, 7, 6, 3, 5,8,10,4
Pertanyaan :
• Apakah data tersebut cukup kuat untuk menduga bahwa rata-rata 1
sama dengan µ2 ? Ujilah pada alpha 10%
Contoh 2
Dua pakan ternak A dan B diberikan kepada ayam secara
terpisah selama satu bulan. Ingin diketahui pakan yang mana
yang lebih baik bagi ayam tersebut, dilihat dari tambahan berat
daging ayam tsb. Sampel acak yang terdiri atas 10 ayam diberi
pakan A dan 11 ayam diberi pakan B. Tambahan berat badan
ayam (dalam ons) hasil percobaan tsb adalah:
Pakan 3.1 3.0 3.3 2.9 2.6 3.0 3.6 2.7 3.8 4.0
A
Pakan 2.7 2.9 3.4 3.2 2.9 3.0 3.0 2.6 3.7 3.3 3.0
B
Dengan taraf nyata alpha 5%, tentukan apakah kedua macam pakan tsb
sama baiknya atau tidak
Contoh 3:
• In a study of lettuce growth, 10 seedlings were randomly
allocated to be grown in either standard nutrient solution or in
a solution containing extra nitrogen. After 22 days of growth,
the plants were harvested and weighted, with the results given
in the table:
drug A 10.5 7.8 9.3 8.7 10.2 8.9 7.4 9.3 8.7 7.9
drug B 11.2 10.3 9.2 9.7 8.9 10.7 9.9 10.1 7.8 8.9
Contoh 5:
A plant physiologist investigated the effect of mechanical stress on the
growth of soybean plant. Individually potted seedlings were divided into
two groups. Those in the first group were stressed by shaking for 20
minutes twice daily, while those in the second group (the second control
group) were no shaken. After 16 days of growth the plants were
harvested and total leaf area (cm2) was measured for each plant. The
data are given in table: Control Stressed
X 1 X 2
Statistik uji : t'
s12 s 22
n1 n 2
dengan derajat bebas
untuk distribusi - t
adalah : Kaidah Keputusan :
2
S 12 S 2 2 Jika thitung ≥ t Tolak H0 ; apabila
n n H1 : 1 2
υ 1 2
At 300C (suhu 40 38 32 37 39 41 35
kamar)
At 100C 36 45 32 52 59 41 48 55
(another
temperature)
Catatan: untuk mengetahui apakah varians kedua sampel
tersebut homogen atau tidak, maka dilakukan pengujian
homogenitas varians :
• Pengujian homogenitas varians dengan hipotesis :
H0 : X2 = y2 (kedua varians sama) v.s. H1 : X2 y2 (kedua
varians berbeda)
σ2 is known σ2 is unknown if
( n1 ,n2 large or small) ( n1 ,n2 small)
n1 n2 2
p
26
• If population is not normally distributed
• and n1, n2 is large(n1 ≥ 30 ,n2≥ 30)
• and population variances is known,
(X1 - X 2 ) - ( 1 2 )
Z
12 22
n1 n2
27
Sekilas SPSS
• SPSS = Statistical Package for the Social Sciences,
sekarang Statistical Product and Service Solution
• SPSS merupakan software aplikasi statistik yang
sangat populer, baik bagi praktisi yang sedang
menggunakan riset maupun bagi mahasiswa yang
akan menyelesaikan tugas akhir
• Anda dapat menggunakan SPSS untuk melihat,
mengedit atau melakukan perhitungan,
mengelola data, mengurutkan dan menyaring
data, membuat grafik, menganalisis data,
mencetak dan sebagainya.
Langkah-langkah komputer program SPSS Untuk
Uji Perbandingan Dua Nilai Tengah Tidak
Berpasangan
• Buka data editor/ file data
• Klik analyze: pilih compare mean
• Klik independent sample t-test
o Kotak test variable : diisi nilai X1
o Kotak group variabel: klik define group
• Muncul dialog define group
o Group 1 : diisi angka 1
o Group 2 : diisi angka 2
• Klik continue
• Klik option
o confidence interval : diisi 90% atau 95%
o Missing value : pilih exlude case analysis by analysis
• Klik continue
• Klik ok
UJI PERBANDINGAN DUA NILAI TENGAH (COMPARE MEANS)
Independent-Samples T Test
Kontrol 175 132 218 151 200 219 234 149 187 123 248 206 179 206
Vit A 142 311 337 262 302 195 253 199 236 216 211 176 249 214