Lecture 09
Lecture 09
Testing a Mean:
Testing a Proportion
Testing a Variance
Principles of Hypothesis Testing
What is a Hypothesis?
A hypothesis is a claim
X
20 μ = 50
If it is unlikely that
If H0 is true ... then we
reject the null
we would get a
... if in fact this were hypothesis that
sample mean of
the population mean… μ = 50.
this value ...
As a result, if the sample mean is
Region of Region of
Rejection Rejection
Region of
Non-Rejection
Critical Values
Type I Error
Reject a true null hypothesis
H0: μ ≥ 3
H1: μ < 3
Left-tailed test 0
Procedure for Testing a Hypothesis
Step 3. Find
State the null Calculate a the test
hypothesis Collect data
test statistic statistic
Hypothesis
Tests for
Known Unknown
(Z test) (t test)
σKnown
Known σUnknown
Unknown
(Z test) (t test)
The test statistic is:
X μ
Z =
σ
n
Critical Value Approach to Testing
X μ 2.84 3 .16
Z = = = = 2.0
σ 0.8 .08
n 100
Is the test statistic in the rejection region?
0.0228 0.0228
p-value
= 0.0228 + 0.0228 = 0.0456
-1.96 0 1.96 Z
-2.0
Conclusion: Reject the null hypothesis. 2.0
Strength of p -Values
μ X
Critical value
Right-Tailed Tests
H0: μ ≤ 3
There is only one
critical value, since H1: μ > 3
the rejection area is
in only one tail
Critical value
Example: Upper-Tail Z Test for Mean ( Known)
Testing Hypotheses
= 0.10
X μ 53.1 52
Z = = = 0.88
σ 10
n 64
Example: Decision Making using Decision Rule
Reject H0
= 0.10
Reject H0 P( X 53.1)
= 0.10
53.1 52.0
= P Z
0 10/ 64
= P(Z 0.88) = 1 0.8106
Do not reject H0 Reject H0
1.28
Z = 0.88
= 0.1894
t-Test of Hypothesis for the Mean (σ Unknown)
Hypothesis
Tests for
σKnown
Known σUnknown
Unknown
(Z test) (t test)
The test statistic is:
X μ
t n-1 =
S
n
Example: Two-Tail Test ( Unknown)
H0: μ = 168
H1: μ 168
Example Solution: Two-Tail Test
H0: μ = 168
/2=.025 /2=.025
H1: μ 168
166.14 ≤ μ ≤ 178.86
Do not reject H0
Reject H0 Reject H0 p-value = 0.0136:
/2 = .025 /2 = .025
P(Z 2.47) P(Z 2.47)
0.0068 0.0068
= 2(0.0068) = 0.0136
-1.96 0 1.96
Z = -2.47 Z = 2.47