Stat 2 (Chapter 7)
Stat 2 (Chapter 7)
Hypothesis Testing
Outline
mean (μ)
proportion (P)
Introduction
• Statistical inference: is the process of using
sample information to make estimates and test
hypotheses about the characteristics the
population
Statistical Inference
possibility of errors.
H0 is true H0 is false
Accept H0 Correct conclusion Type II error
Reject H0 Type I error Correct
conclusion
Step 3: select the test statistics
approaches to proceed:
Let = 0.05
Sampling distribution
ഥ (assuming H0 is
of X
true and = 12)
Reject H0
Do Not
Reject H0 = 00
Z-scale
Decision rule 0 1.645
(CV)
Reject H0 if Zcal > Zcv
Step 5: Compute the value of the sample
test statistics
Sample test statistics include t, Z, x2, F
Step 6: make a decision and interpret
the result
❑Compare the computed value of the sample test
statistics with the critical value and make a decision
to reject or not to reject the H0 .
The p-value approach
•δ is Unknown
✓Use s to estimate δ
x −
z=
S/ n
One-Tailed Tests about a Population Mean:
Large-Sample Case (n > 30)
n Hypotheses Right-tailed Test Left-tailed Test
H0: 0 or H0: 0
Ha: 0 Ha: 0
Sampling distribution
of Xഥ (assuming H0 is
true and = 12) Reject H0
Do Not
= 00
Reject H0
ഥ
X
0 1.645
(Critical value)
Example: Metro EMS
𝑋ത − μ 13.25 − 12
𝑍= 𝑠 = = 2.47
3.2
𝑛 40
Example: Metro EMS
• Using the p-value to Test the Hypothesis
Recall that z = 2.47 for = 13.25. Then p-value = 0.0068.
Since p-value < , that is 0.0068 < .05, we reject H0.
Reject H0
Do Not
Reject H0 p-value= 000
z
0 1.645 2.47
Two-Tailed Tests about a Population
Mean: Large-Sample Case (n > 30)
• Hypotheses:
H0: = 0
Ha: ≠ 0
x − 0 x − 0
z= z=
/ n s/ n
Sampling distribution
of x (assuming H0 is
true and = 6)
z
-1.96 0 1.96
Example: Glow Toothpaste
x − 0 6 .1 − 6
z= = = 2 .7 4
s / n .2 / 3 0
Since 2.74 > 1.96, we reject H0.
Example: Glow Toothpaste
or 6.0284 to 6.1716
One-Tailed Two-Tailed
H0: ≤ 0 Reject H0 if t > t H0: = 0
ഥ − 𝝁𝑿ഥ 𝟔𝟖. 𝟐 − 𝟔𝟓
𝑿
𝒕= 𝒔 = = 𝟑. 𝟑𝟕
𝟑. 𝟖
𝒏 𝟏𝟔
A Summary of Forms for Null and Alternative
Hypotheses about a Population Proportion
p − p0
•Test Statistic z=
p
where: p 0 (1 − p 0 )
p =
n
•Rejection Rule
One-Tailed Two-Tailed