Professional Documents
Culture Documents
LECTURE 8.Pptx Edited - PPTX Sem 1 2022 - 2023
LECTURE 8.Pptx Edited - PPTX Sem 1 2022 - 2023
LECTURE 8.Pptx Edited - PPTX Sem 1 2022 - 2023
Inference About
a Population: Hypothesis
Testing
(ONE SAMPLE TESTS)
Estimation: determine the unknown value of
a population parameter on the basis of a
sample statistic.
H 0 : μ 30 H 0 : X 30
H1 : μ 30
One-tail test
H0 : = 0 H0 : p = p0
Three H1 : > 0 H1 : p > p0 Three
possible possible
statistical H0 : = 0 H0 : p = p0 statistical
hypotheses H1 : < 0 H1 : p < p0 hypotheses
to test a to test a
population Two-tail test population
mean proportion
H0 : = 0 H0 : p = p0
H1 : 0 H1 : p p0
a) H0 : = 90 ; H1 : 90
c) = 58; 58
d) 0.48 ; = 0.48
Region Region
of of
Region of Rejection
Rejection
Non-
Rejection
You may get the
critical values by
Critical Values
refer to the If the test statistics Z* or
statistical table t* is located here, then
you reject H0
S.5 : Make the statistical decision
Type II Error
Failure to reject a false null hypothesis
The probability of a Type II Error is β
Possible Errors in Hypothesis Test Decision
Making
Possible Hypothesis Test Outcomes
Actual Situation
Population mean
Population proportion
Hypothesis Tests for the Population Mean
Assumptions:
(i) population is normally distributed
(ii) If the population is not normally distributed then use n ≥ 30 (central limit
theorem)
Remember Lecture 7
where we discuss two Hypothesis
same cases Tests for
Known Unknown
(Z test) (t test)
X μ 29.84 30 .16
ZSTAT 2.0
σ 0.8 0.08
n 100
Decision Rule:
Reject H0 if Reject H0 Do not reject H0 Reject H0
= 0.05/2 = 0.05/2
σKnown
Known σUnknown
Unknown
(Z test) (t test)
The test statistic is:
X μ
t STAT
S
n
Example: Two-Tail Test
( Unknown)
The average cost of a hotel room in
New York is said to be $168 per
night. To determine if this is true, a
random sample of 25 hotels is taken Extract the info
and resulted in an of $172.50 and S from the question
of $15.40. Test the appropriate to ease you:
hypotheses at = 0.05.
S = $15.4
(Assume the population distribution is normal)
n = 25
a = 0.05
is unknown so
use t-test
Example Solution:
Two-Tail t Test
H0: μ = 168 a/2=.025 a/2=.025
H1: μ ¹ 168
a = 0.05 Reject H0 Do not reject H0 Reject H0
-t 24,0.025 0
t 24,0.025
n = 25, df = 25-1=24 -2.0639 2.0639
1.46
is unknown, so
Xμ 172.50 168
use a t statistic t STAT 1.46
S 15.40
Critical Value: n 25
Decision: Do not reject H0 because t stat (1.46) < t0.025, 24 (2.0639).
±t24,0.025 = ± 2.0639
Conclusion: There is not enough statistical evidence that the
average cost of a hotel room is equal to true $168
How to Perform One-Tail Tests
In many cases, the alternative hypothesis focuses
on a particular direction
This is a lower-tail (refer to symbol <) test
since the alternative hypothesis is focused
H0: μ ≥ 3
on the lower tail below the mean of 3
H1: μ < 3
p̂ p
ZSTAT
p (1 p )
n
Remember:
p is population proportion
is sample proportion
Example: Z Test for Proportion
A marketing company
claims that it receives
responses from 8% of
those surveyed. To test
this claim, a random Extract the info from the
sample of 500 were question to ease you:
p
surveyed with 25 = 25/500 = 0.05
responses. Test at the = n = 500
0.05 significance level. a = 0.05
Z Test for Proportion: Solution
6 Steps of hypothesis testing
S.1
H0: p = 0.08 S.3 Test Statistic:
H1: p ¹ 0.08 p̂ p .05 .08
Z 2.47
S.2 STAT
p (1 p ) .08(1 .08)
a = 0.05
n = 500, = 0.05
n 500
S.4 S.5 Decision:
Critical Values, Z0.05/2 = Z0.025: ± 1.96 Reject H0 because - ZSTAT < -Z0.025 or
Reject Reject
-2.47 < -1.96
.025 .025 S.6
Conclusion:
-1.96 0 1.96 z There is no enough evidence to accept the
-2.47 company’s claim that it receives 8%
response rate.
MORE EXAMPLE: EXAMPLE 1
S.2 = 0.05
178 −170
S.3 ¿
Test statistic : Z * 65 / √ 400 = 2.46
S.2 = 0.10
5.69 −6
¿
S.3 Test statistic : t 1.58/ √ 12 = -0.68
*
p = 0.6
n = 300
S.1 H0 : p = 0.6 vs. H1 : p 0.6
S.2 = 0.05
0.65 − 0.6
S.3 Test statistic : Z ¿
*
= 1.77
√0.6( 0.4)
300