Anda di halaman 1dari 43

UJI BEDA 2 RATA-RATA,

PROPORSI DAN VARIAN

Statistik Farmasi
2020
dh
Tujuan Perkuliahan
Setelah menyelesaikan kuliah ini, mahasiswa mampu:
• Menguji perbedaan antara dua rata-rata sampel
menggunakan uji z.
• Menguji perbedaan antara dua rata-rata untuk sampel
independen menggunakan uji t
• Menguji perbedaan antara dua rata-rata untuk sampel
dependen.
• Menguji perbedaan dua proporsi
• Menguji perbedaan dua varians
Outline
• Pengantar
• Uji perbedaan antara dua rata-rata sampel menggunakan
uji z.
• Uji perbedaan antara dua rata-rata untuk sampel
independen menggunakan uji t
• Uji perbedaan antara dua rata-rata untuk sampel
dependen
• Uji perbedaan dua proporsi
• Uji perbedaan dua varians
Pengantar
• Pada keadaan tertentu peneliti ingin membandingkan dua rata-
rata sampel, misal menggunakan kelompok eksperimen dan
kontrol.
– Contoh: dua merek sirup obat batuk dapat diuji untuk melihat
apakah satu merek lebih efektif daripada yang lain.
• Dalam membandingkan dua rata-rata, langkah-langkah dasar yang
sama untuk uji hipotesis digunakan, dan uji z dan uji t juga
digunakan. Namun untuk uji t, harus dibedakan apakah kedua
sampel dependen atau independen.
• Untuk membanding dua proporsi bisa digunakan uji z
• Dua varian bisa dibanding dengan uji F
A. Uji beda 2 rata-rata dengan uji z
• Hipotesis yang mungkin:

atau
• Contoh soal 1:
A survey found that the average hotel room rate in Jakarta is
$88.42 and the average room rate in Surabaya is $80.61.
Assume that the data were obtained from two samples of 50
hotels each and that the standard deviations of the
populations are $5.62 and $4.83, respectively. At α = 0.05, can
it be concluded that there is a significant difference in the
rates?
Metode nilai P juga bisa digunakan
• Contoh soal
A researcher hypothesizes that the average number of sports that colleges
offer for males is greater than the average number of sports that colleges
offer for females. A sample of the number of sports offered by colleges is
shown. At α = 0.10, is there enough evidence to support the claim? n1 and
n2 = 50. Assume σ1 and σ2 = 3.3.
• Sometimes, the researcher is interested in testing a specific difference in means
other than zero. For example, he or she might hypothesize that the nursing
students at a community college are, on average, 3.2 years older than those at a
university. In this case, the hypotheses are
B. Uji beda 2 rata-rata untuk sampel independen
dengan uji t
Contoh soal
• The average size of a farm in Klaten, is 191 acres. The average size of a farm in
Sragen, is 199 acres. Assume the data were obtained from two samples with
standard deviations of 38 and 12 acres, respectively, and sample sizes of 8 and 10,
respectively. Can it be concluded at α = 0.05 that the average size of the farms in
the two counties is different? Assume the populations are normally distributed.
C. Uji beda 2 rata-rata untuk sampel dependen
• Sampel dianggap sebagai sampel dependen bila subjek berpasangan atau
bersesuaian dengan cara tertentu.
– Misalnya, anggaplah seorang peneliti medis ingin melihat apakah suatu obat akan
mempengaruhi waktu reaksi penggunanya. Untuk menguji hipotesis ini, peneliti
harus melakukan pretest terhadap subjek pada sampel terlebih dahulu. Artinya,
mereka diberi tes untuk memastikan waktu reaksi normal mereka. Kemudian
setelah minum obat, subjek diuji lagi, menggunakan posttest. Akhirnya, rata-rata
kedua tes tersebut dibandingkan untuk melihat apakah ada perbedaan. Karena
subjek yang sama digunakan dalam kedua kasus tersebut, sampelnya berkaitan;
– Skor subjek yang tinggi pada pretest umumnya akan mencapai nilai tinggi juga
pada posttest, bahkan setelah mengkonsumsi obat tersebut. Demikian juga, skor
yang lebih rendah pada pretest akan cenderung lebih rendah pada posttest.
Untuk memperhitungkan hal ini, peneliti menggunakan uji t, dengan
menggunakan perbedaan antara nilai pretest dan nilai posttest. Dengan demikian
hanya kelebihan atau kekurangan dalam nilai yang dibandingkan.
• Hipotesis yang mungkin:
Contoh soal
• A sample of nine local banks shows their deposits (in billions of
dollars) 3 years ago and their deposits (in billions of dollars)
today. At α = 0.05, can it be concluded that the average in
deposits for the banks is greater today than it was 3 years ago?
Metode nilai P
• The P-values for the t test are found in Table F.
For a left-tailed test with d.f. = 8 and t = -1.67, the
P-value is found between 1.397 and 1.860; hence,
0.05 < P-value < 0.10. Thus, the null hypothesis
cannot be rejected at α = 0.05.
D. Uji perbedaan dua proporsi
• Uji z dengan beberapa modifikasi dapat digunakan untuk menguji
persamaan dua proporsi.
Misalnya, seorang peneliti mungkin bertanya, ‘Apakah proporsi pria
yang berolahraga secara teratur lebih sedikit dari proporsi wanita
yang berolahraga secara teratur?’
Contoh soal 4
• In the nursing home study, the researchers found that 12 out of 34
small nursing homes had a resident vaccination rate of less than 80%,
while 17 out of 24 large nursing homes had a vaccination rate of less
than 80%. At a 0.05, test the claim that there is no difference in the
proportions of the small and large nursing homes with a resident
vaccination rate of less than 80%.
Metode nilai P bisa digunakan

• Tentukan dengan menggunakan nilai P untuk menyelesaikan


contoh soal 4
E. Uji beda dua varians
• Peneliti mungkin juga tertarik untuk membandingkan dua varian atau
standar deviasi. Misalnya, apakah variasi kadar kolesterol pada pria
dan wanita berbeda?
• Untuk perbandingan dua variasi atau standar deviasi, digunakan uji F.
• Uji F memiliki dua syarat untuk derajat kebebasan: dari pembilang
(numerator), n1 -1, dan dari penyebut (denominator), n2 - 1, di mana
n1 adalah ukuran sampel dimana varians yang lebih besar diperoleh.
• Tabel H memberikan nilai kritis F untuk α = 0.005, 0.01, 0.025, 0.05,
dan 0.10 (setiap nilai α diberikan pada table H yang berbeda). Ini
adalah nilai one-tailed; Jika uji two-tailed dilakukan, maka nilai α/2
harus digunakan. Misalnya, dilakukan uji two-tailed dengan α = 0,05,
maka tabel α = 0,05/2 = 0,025 Tabel H harus digunakan.
Contoh menggunakan table H
• Find the critical value for a right-tailed • Find the critical value for a two-tailed
F test when α = 0.05, the degrees of F test with α = 0.05 when the sample
freedom for the numerator size from which the variance for the
(abbreviated d.f.N.) are 15, and the numerator was obtained was 21 and
degrees of freedom for the the sample size from which the
denominator (d.f.D.) are 21. variance for the denominator was
obtained was 12

Bila derajat kebebasan tidak dapat ditemukan di tabel, nilai terdekat pada sisi yang lebih kecil harus digunakan.
Misalnya, jika d.f.N. = 14, nilai ini adalah antara nilai 12 dan 15; Karena itu 12 harus digunakan.
Contoh soal
• A medical researcher wishes to see whether the variance of the heart
rates (in beats per minute) of smokers is different from the variance of
heart rates of people who do not smoke. Two samples are selected,
and the data are as shown. Using α = 0.05, is there enough evidence
to support the claim?
Latihan soal 1

• Jawablah soal pada “contoh soal 1” dengan metode P!

 Contoh soal 1:
A survey found that the average hotel room rate in Jakarta is
$88.42 and the average room rate in Surabaya is $80.61. Assume
that the data were obtained from two samples of 50 hotels each
and that the standard deviations of the populations are $5.62 and
$4.83, respectively. At α = 0.05, can it be concluded that there is a
significant difference in the rates?
Latihan soal 2

• The standard deviation of the average waiting time to see a


doctor for non-life-threatening problems in the emergency
room at an urban hospital is 32 minutes. At a second
hospital, the standard deviation is 28 minutes. If a sample
of 16 patients was used in the first case and 18 in the
second case, is there enough evidence to conclude at the
0.01 significance level that the standard deviation of the
waiting times in the first hospital is greater than the
standard deviation of the waiting times in the second
hospital?
Soal latihan 3
Latihan soal 4
• Peneliti ingin melihat apakah obat antihipertensi baru bisa menurunkan
tekanan darah diastolik pada orang normal. Duabelas subyek dipilih secara
acak dan diukur tekanan darah diastoliknya, kemudian diberi obat
antihipertensi baru, dan diukur tekanan darahnya. Hasilnya ditunjukkan
pada tabel. Jika diasumsikan variabel terdistribusi normal dan dengan
menggunakan α = 0,01, bisakah disimpulkan bahwa tekanan darah
diastolik akan menurun jika diberi obat antihipertensi baru tersebut?

Subyek 1 2 3 4 5 6 7 8 9 10 11 12
Sebelum 74 85 68 78 76 65 71 79 75 72 83 68
Sesudah 68 81 66 76 70 64 77 70 74 67 80 66
Latihan soal 5
• The average length of “short hospital stays” for men is slightly longer
than that for women, 5.2 days versus 4.5 days. A random sample of
recent hospital stays for both men and women revealed the
following. At α = 0.01, is there sufficient evidence to conclude that
the average hospital stay for men is longer than the average hospital
stay for women?
T ERI
MA K
ASIH

Anda mungkin juga menyukai