Beruflich Dokumente
Kultur Dokumente
Hypothesis Testing
• Concepts of Hypothesis Testing
• Formulating Hypotheses
• Significance Level α
• Test Statistic & p-value
• Concluding Test Properly
• Testing for Population Mean
• Testing for Population Proportion
NBS 2016S1 AB1202 CCK-STAT-018
3
Formulating Hypotheses
• Hypothesis statements take the form:
▫ H0 : null hypothesis statement
▫ H1 : alternative hypothesis statement
▫ Eg: H0 : 𝜇 = 10 cm
▫ H1 : 𝜇 ≠ 10 cm
• Hypothesis statements should be mutually
exclusive, and exhaustive (covering all possible
outcomes)
• Hypothesis statements are not universal truths.
• Depending on who is performing the statistical
sampling and purpose, hypothesis statements
could be formed differently about the same reality.
NBS 2016S1 AB1202 CCK-STAT-018
5
Significance Level α
• The probability of outlying events occurring in
the samples when the null hypothesis is indeed
the reality.
• Area of 𝛼 covers the H0 : 𝜇 = 10 cm
H1 : 𝜇 ≠ 10 cm
alternative hypothesis 1−𝛼 𝛼
outcomes. 𝛼
2
𝛼 2
• It’s two-tailed with
2
if H1 has unequal
sign. 𝜇 = 10
𝑋
Critical Value
• Critical value(s) 𝑧𝑐 depends on 𝛼 – in fact, it is such
𝛼
that 𝑃 𝑍 < 𝑧𝑐 = for two-tailed tests.
2
• Suppose we choose
H0 : 𝜇 = 10 cm
𝛼 = 0.05. H1 : 𝜇 ≠ 10 cm
• 𝑃 𝑍 < 𝑧𝑐 = 0.025 ⇒ 1−𝛼 𝛼
𝛼
2
𝑧𝑐 = −1.96 2
• Being two-tailed, our
critical values are
𝑋
± 1.96. 𝜇 = 10
𝑧=0 𝑍
• If it’s left-tailed with 𝑧𝑐− = −1.96 𝑧𝑐+ = 1.96
𝛼, 𝑧𝑐 = −1.645.
• If it’s right-tailed
with 𝛼, 𝑧𝑐 = 1.645.
NBS 2016S1 AB1202 CCK-STAT-018
8
One-Tail Cases
• If hypotheses are stated as: • If hypotheses are stated as:
▫ H0 : 𝜇 ≥ 10 cm ▫ H0 : 𝜇 ≤ 10 cm
▫ H1 : 𝜇 < 10 cm ▫ H1 : 𝜇 > 10 cm
• Then we have a left-tail • Then we have a right-tail
test. p-value = 𝑃 𝑍 < 𝑧 test. p-value = 𝑃 𝑍 > 𝑧
= 0.0057 = 1 − 0.0057 = 0.9943
Rejection Rejection
1−𝛼 1−𝛼
Region Region
𝑝
𝑝 𝛼
𝛼
𝑥 𝜇 = 10 𝑋 𝑥 𝜇 = 10
𝑧𝑐 = −1.645 𝑧𝑐 = 1.645 𝑋
𝑧 = −2.53 𝑧=0 𝑍 𝑧 = −2.53 𝑧=0 𝑍