Professional Documents
Culture Documents
Sampel
Field ecologist often wish to compare the
average value of some variables in two
samples. This problem typically resolves
into two steps:
a. Is the observed difference between the
average of two samples significant, or is
it due to the change of sampling error?
b. If a difference between the average of
two samples is indeed significant, what is
the extent of the difference?
H0: samples are drawn from population with
identical averages and any observed
difference between sampling is due to
sampling error.
H1: samples are drawn from population with
different averages: and observed
difference between samples cannot be
accounted for by sampling error.
Contoh kasus
• Membandingkan jumlah individu satwa
dan tumbuhan dari dua tipe habitat
• Membandingkan diversitas tumbuhan dan
hewan di dua tipe ekosistem
• Membandingkan pengaruh suatu
perlakuan terhadap obyek penelitian
Hipotesis
• Hypothesis - the prediction about what will happen during
an experiment or observational study, or what researchers
will find.
• Examples:
– Drug X will lower blood pressure
– Smoking will increase the risk of cancer
– Lowering ticket prices will increase event attendance
Hypotheses
Example:
Lowering ticket prices will increase event attendance
HO vs. HA
• We write and test our hypothesis in this
‘competing’ fashion for several reasons,
one is to address the issue of random
sampling error (RSE)
Random Sampling Error
Remember RSE?
Because the group you sampled does NOT EXACTLY represent
the population you sampled from (by chance/accident)
Red blocks vs Green blocks
Always have a chance of RSE
Type I Error
We could reject the null hypothesis although it was
really true
HA: Smoking increases risk of death (FALSE)
HO: Smoking does not increase risk of death
(TRUE)
OR…
Error…
OR…
Type II Error
We could fail to reject the null hypothesis when it was
really untrue
HA: Smoking increases risk of death (TRUE)
HO: Smoking does not increase risk of death (FALSE)
Syarat;
1.Data harus dalam skala interval atau ratio.
2. Sebaran data mendekati sebaran normal
3. Populasi yang dibandingkan mempunyai
variance yang sama.
F-Test
sample 1 Sampel 2
n = 41 n= 31
X= 24,71 X= 19,60
S=6,34 S=4,82
S2= 40,1956 S2= 23,2324
greater var iance
F=
lesser var iance
F= 40,1956/23,2324 = 1,730
Check pada tabel F pada P=0,05 untuk v1=40 dan v2=30, nilai F tabel= 2,01
Kesimpulan: sample memiliki variance yang sama atau mirip.
Z-test
Kegunaan; untuk uji beda rata-rata sampel yang
besar. Distribusi data tidak harus normal,
asalkan jumlah sampel besar lebih dari 30
observasi.Untuk data yang sebarannya
menceng harus lebih dari 50 observasi
( x1 − x 2)
z=
s12 s22
+
n1 n2
(24,71 − 19,60) 5,11
z= = = 3,89
40,1956 23,2324 1,315
+
41 31
( x1 − x 2)
t=
(n1 − 1) s + (n 2 − 1) s
2 2
n1 + n 2
n1n 2
1 2
(n1 + n2 − 2)
Contoh:
Sampel 1 Sampel 2
n=6 N2=8
X=74,8 X=72,99
S=1,04 S=1,48
S2=1,08 S2=2,20
d
t=
nd − (d )
2 2
n −1
Bandingkan t hitung dengan t table (P=0,05,
df=n-1
t table=2,262
Kesimpulan?
Non Parametric
The Mann-Whitney U-Test for
Unmatched Samples
2. Hitung Rank
R1: jumlah rank sample 1
R2: jumlah rank sample 2
n2 (n2 + 1) n1 (n1 + 1)
U1 = n1n2 + − R2 ; U 2 = n1n2 + − R1
2 2
4. Check penghitungan
U1 + U2 = n1xn2