Testing Hypothesis - One Sample Test: Chapter - 8
Testing Hypothesis - One Sample Test: Chapter - 8
Testing Hypothesis –
One Sample Test
What is hypothesis ?
• Hypothesis means assumption
H0
Significance level
• The purpose of hypothesis testing is to make
judgment about the difference between sample
statistic (mean) and hypothesized population
parameters (mean)
Rejection Region
Rejection Region
• Type - 2 error
– Error of accepting null hypothesis when it is false
– Its probability is denoted by
– It happens when significance level is low
– There is a trade off between these two types of errors
Decision Table
for Hypothesis Testing
Which distribution to use ?
: 1000
HH0 o: 40 Rejection Rejection
Region Region
HHa a: :1000
40 Non Rejection Region
=1000
Critical Values
One tail test and Two tail test
H 0 : 40 H 0 : 40
H a : 40 H a : 40
Rejection Region Rejection Region
H 0 : 40 H 0 : p 0.18
H a : 40 H a : p 0.18
• Two-tailed Test
H 0 : 12
H a : 12
Step - 1
• State your hypothesis
H 0 : $74,914
2
.025
2
.025
Rejection
H a : $74,914 Rejection
Region
Region
Zc 196
. Zc 1.96
CPA Net Income Example:
Two-tailed Test (Part 2)
If z zc 1.96, reject H 0 .
If z zc 1.96, do not reject H 0 .
x 78,695 74,914
z 2.75
14,530
n 112
z = 2.75 zc = 1.96, reject H 0 .
CPA Net Income Example:
Critical Value Method (Part 1)
H 0 : $74,914 Lower
x z
H a : $74,914
c c
n
14,530
74,914 1.96
112
.025 .025
2 2 72,223
Rejection
Rejection Region Upper
Region
Non Rejection Region xc z c
n
72,223 77,605
14,530
74,914 1.96
112
Zzcc 196
1..96 0
z=0 zZc c 1196
..96
77,605
CPA Net Income Example:
Critical Value Method (Part 2)
.025 .025
2 2
Rejection
Rejection Region
Region
Non Rejection Region
72,223 77,605
Zzcc 196
1..96 0
z=0 zZcc 1196
..96
H 0 : 4.30
H a : 4.30
Rejection
Region
=.05
zZcc 1645
1..645 0
Solution to Example 1: z Test
(Part 2)
Rejection x 4.156 4.30
Region zx 1.42
0.574
=.05 n 32
If z 1.645, reject H 0 .
If z 1.645, do not reject H 0 .
Solution to Example 1: Critical Value
(Part 1)
H 0 : 4.30
Rejection
Region
=.05
4.30
xxcc 44.133
.133
If x 4.133, reject H 0 .
If x 4.133, do not reject H 0 .
Haa: : 2525
.025
2
.025
2
Non Rejection Region
df n 1 19 t 2.093 t c
2.093
c
Critical Values
Two-tailed Test:
Unknown, = .05 (part 3)
Xx 2551
. .51
25 . 25.0
250
.025
.025 2 t . 1.04
104
2 Ss 21933
. 2.1933
Non Rejection Region
nn 20 20
t c
2.093 t c
2.093
H a : 471
.05
Critical Value
Solution to Example 2: (Part 3)
t c
1717
.
z
pˆ p n p 5, and
pq nq 5
n
where : pˆ sample proportion
p population proportion
q 1- p
Testing Hypotheses about a
Proportion: Manufacturer Example
(Part 1)
Rejection Regions
H 0 : p .08
.05
.05
2 2
H a : p .08 Z
zc 1645
c
.
Non Rejection Region
Zzc 1645
c
.
Critical Values
Testing Hypotheses about a
Proportion: Manufacturer Example
(Part 2)
Rejection Regions If Zz 11645
. 645,, reject Ho..
0
If Zz 1.645,
1645
. , do not reject Ho.. 0
33
33
pˆ .165
.165
.05 .05 200
200
2 2
Non Rejection Region pˆ Pp 165.08
.165 .08
zZ 4.43
4.43
Zzc 1645
c
. zZcc 1645
.
Pp Q
q (.(.08
08)(.)(.9292
))
Critical Values n 200
200
Since zZ 44..43 11645
.645,, reject
reject H
Ho0..
Example 3
A survey of the morning beverage market shows
that the primary breakfast beverage for 17% of
Americans is milk. A milk producer in Wisconsin,
where milk is plentiful, believes the figure is
higher for Wisconsin. To test this idea, she
contacts a random sample of 550 Wisconsin
residents and asks which primary beverage they
consumed for breakfast that day. Suppose 115
replied that milk was the primary beverage. Using
a level of significance of .05, test the idea that the
milk figure is higher for Wisconsin.
Solution to Example 3: (Part 1)
H0o:: Pp .17
H 17 Rejection Region
Haa::Pp ..17
H 17 .05
Critical Value
Solution to Example 3: (Part 2)
If Zz 1645
If 1..645, ,reject
rejectHHo.0 .
Rejection Region If Zz 1645
If 1..645, ,do
donot
notreject
rejectHHo.0 .
115
115
.05 ppˆ .209
.209
550
550
ppˆ Pp .209
.209 .17
.17
Non Rejection Region Zz 2.442.44
PpQq (.17
(.17 )(.)83)
)(.83
Zzc 1645
c
.
nn 550
550
Critical Value
Since
Since Z
z = 22.44 11645
.44 ..645,, reject
reject H
Ho0..
Deciding which distribution to use in
Hypothesis Testing:
When population When population
Standard deviation Standard deviation
is Known is Not Known