download

Matakuliah
Tahun
: L0104 / Statistika Psikologi
: 2008
Pengujian Hipotesis Proporsi dan Varians/Ragam
Pertemuan 16
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa akan
mampu :
Mahasiswa akan dapat menyusun simpulan dari
hasil uji hipotesis proporsi dan varians/ragam
3
Bina Nusantara
Outline Materi
•
•
•
•
Uji hipotesis proporsi sampel besar
Uji hipotesis beda proporsi sampel besar
Uji hipotesis varians
Uji hipotesis kesamaan dua varians
4
Bina Nusantara
Hypothesis Testing
• Developing Null and Alternative Hypotheses
• Type I and Type II Errors
• One-Tailed Tests About a Population Mean:
Large-Sample Case
• Two-Tailed Tests About a Population Mean:
Large-Sample Case
• Tests About a Population Mean:
Small-Sample Case
continued
Bina Nusantara
Hypothesis Testing
•
•
•
•
Tests About a Population Proportion
Hypothesis Testing and Decision Making
Calculating the Probability of Type II Errors
Determining the Sample Size for a Hypothesis
Test
about a Population Mean
Bina Nusantara
Developing Null and Alternative Hypotheses
• Hypothesis testing can be used to determine whether a
statement about the value of a population parameter
should or should not be rejected.
• The null hypothesis, denoted by H0 , is a tentative
assumption about a population parameter.
• The alternative hypothesis, denoted by Ha, is the
opposite of what is stated in the null hypothesis.
• Hypothesis testing is similar to a criminal trial. The
hypotheses are:
H0: The defendant is innocent
Ha: The defendant is guilty
Bina Nusantara
Developing Null and Alternative
Hypotheses
• Testing Research Hypotheses
– The research hypothesis should be expressed as
the alternative hypothesis.
– The conclusion that the research hypothesis is
true comes from sample data that contradict the
null hypothesis.
Bina Nusantara
A Summary of Forms for Null and
Alternative Hypotheses about a
Population Mean
• The equality part of the hypotheses always appears in
the null hypothesis.
• In general, a hypothesis test about the value of a
population mean μ must take one of the following three
forms (where μ0 is the hypothesized value of the
population mean).
H0: μ> μ0
Ha: μ < μ0
Bina Nusantara
H0: μ < μ0
Ha: μ > μ0
H0: μ = μ0
Ha: μ μ0
Type I and Type II Errors
• Since hypothesis tests are based on sample data,
we must allow for the possibility of errors.
• A Type I error is rejecting H0 when it is true.
• A Type II error is accepting H0 when it is false.
• The person conducting the hypothesis test
specifies the maximum allowable probability of
making a
•
Type I error, denoted by α and called the level
of significance.
• Generally, we cannot control for the probability of
making a Type II error, denoted by β.
• Statistician avoids the risk of making a Type II
error by using “do not reject H0” and not “accept
H0”.
Bina Nusantara
Contoh Soal: Metro EMS
• Type I and Type II Errors
Conclusion
12 )
Accept H0
(Conclude μ < 12 )
Error
Bina Nusantara
Reject H0
(Conclude μ > 12)
Population Condition
H0 True
Ha True
(μ < 12 )
(μ >
Correct
Type II
Conclusion
Type I
Error
Correct
The Use of p-Values



Bina Nusantara
The p-value is the probability of obtaining a
sample result that is at least as unlikely as
what is observed.
The p-value can be used to make the decision
in a hypothesis test by noting that:
• if the p-value is less than the level of
significance , the value of the test statistic
is in the rejection region.
• if the p-value is greater than or equal to ,
the value of the test statistic is not in the
rejection region.
Reject H0 if the p-value < .
The Steps of Hypothesis Testing






Bina Nusantara
Determine the appropriate hypotheses.
Select the test statistic for deciding whether or
not to reject the null hypothesis.
Specify the level of significance  for the test.
Use to develop the rule for rejecting H0.
Collect the sample data and compute the
value of the test statistic.
a) Compare the test statistic to the critical
value(s) in the rejection rule, or
b) Compute the p-value based on the test
statistic and compare it to to determine
whether or not to reject H0.
One-Tailed Tests about a Population
Mean: Large-Sample Case (n > 30)

Hypotheses
H0:   
Ha: 

Test Statistic
 Known
z

Bina Nusantara
x  0
/ n
or
H0:   
Ha: 
 Unknown
z
x  0
s/ n
Rejection Rule
Reject H0 if z > zReject H0 if z < -z
Contoh Soal: Metro EMS
• One-Tailed Test about a Population Mean: Large n
Let = P(Type I Error) = .05
Sampling distribution
of x (assuming H0 is
true and  = 12)
Reject H0
Do Not Reject H0

1.645 x
12
Bina Nusantara
c
(Critical value)
x
Contoh Soal: Metro EMS
• One-Tailed Test about a Population Mean: Large n
Let n = 40, x = 13.25 minutes, s = 3.2 minutes
(The sample standard deviation s can be used to
estimate the population standard deviation α.)
x   13. 25  12
z

 2. 47
 / n 3. 2 / 40
Since 2.47 > 1.645, we reject H0.
Conclusion: We are 95% confident that Metro EMS
is not meeting the response goal of 12 minutes;
appropriate action should be taken to improve
service.
Bina Nusantara
Contoh Soal: Metro EMS
• Using the p-value to Test the Hypothesis
Recall that z = 2.47 for x = 13.25. Then p-value =
.0068.
Since p-value < α, that is .0068 < .05, we reject H0.
Reject H0
Do Not Reject H0
Bina Nusantara
0
p-value
1.645 2.47
z
Two-Tailed Tests about a
Population Mean:
Large-Sample Case (n > 30)
• Hypotheses
• Test Statistic
• Rejection Rule
H0: μ = μ0
Ha: μ μ
σ Known
σ Unknown
x  0
z
/ n
x  0
z
s/ n
Reject H0 if |z| > z
Bina Nusantara
Summary of Test Statistics to be Used in a
Hypothesis Test about a Population Mean
Yes
s known ?
Yes
n > 30 ?
No
Yes
Use s to
estimate s
s known ?
Yes
z
Bina Nusantara
x 
/ n
No
x 
z
s/ n
x 
z
/ n
No
Popul.
approx.
normal
?
No
Use s to
estimate s
x 
t
s/ n
Increase n
to > 30
A Summary of Forms for Null and
Alternative Hypotheses about a
Population Proportion
• The equality part of the hypotheses always appears in
the null hypothesis.
• In general, a hypothesis test about the value of a
population proportion p must take one of the following
three forms (where p0 is the hypothesized value of the
population proportion).
H0: p > p0
Ha: p < p0
Bina Nusantara
H0: p < p0
Ha: p > p0
H0: p = p0
Ha: p  p0
A Summary of Forms for Null and
Alternative Hypotheses about a
Differen of two Population
Proportion
• The equality part of the hypotheses always appears in
the null hypothesis.
• In general, a hypothesis test about the value of a
population proportion p must take one of the following
three forms
H0: p1 > p2
Ha: p1 < p2
Bina Nusantara
H0: p1 < p2
Ha: p1 > p2
H0: p1 = p2
Ha: p1≠ p2
Contoh Soal: NSC
• Two-Tailed Test about a Population Proportion:
Large n
– Hypothesis
– Test Statistic
H0: p =.5
Ha: p .5
p0 (1  p0 ) .5(1  .5)
p 

 .045644
n
120
p  p0 (67/120)  .5
z

 1.278
p
.045644
Bina Nusantara
Contoh Untuk Uji Perbedaan dua
Proporsi P1 dan P2
Bina Nusantara
Hypothesis Testing
About a Population Variance

Right-Tailed Test
• Hypotheses
H 0 :  2   20
H a :  2   20
• Test Statistic
2 
• Rejection Rule
 20
2

Reject H0 if  
(where (1 ) is based on
a chi-square distribution with n - 1 d.f.) or
Reject H0 if p-value < 
2
Bina Nusantara
( n  1) s 2
 2(1  )
Hypothesis Testing
About a Population Variance

Two-Tailed Test
• Hypotheses
H 0 :  2   20
H a :  2   20
• Test Statistic
• Rejection Rule
 
2
( n  1) s 2
 20
 2   2(1  / 2 )
or  2   2 / 2
2
2

and

Reject H0 if (1 /2)
 /2 (where
are based on a chi-square distribution with n - 1 d.f.) or Reject H0 if p-value < 
Bina Nusantara
Selamat Belajar
Semoga Sukses
Bina Nusantara