Week06 Hypothesis Testing
Week06 Hypothesis Testing
Hypothesis Testing
Review and Preview
Basics of Hypothesis Testing
Testing a Claim about a Proportion
Testing a Claim About a Mean
Testing a Claim About a Standard Deviation
or Variance
Type I & Type II errors
380
0.93
pˆ p 400
z 1.57
pq 0.93 0.07
n 400
(n 1) s 2
2
2
Do Not
Type II
Innocent Correct Error Reject 1- a
Error ( b )
H0
Type I
Reject Power
Guilty Error Correct Error
H0 (1 - b )
(a )
Translate to a slightly
different rejection
rule…
0 za
SIS 1037Y 2020/2021 108
If the rule is, reject H0 if z = (𝑥-μ
ҧ 0)/(σ/√n) > za, then
an equivalent rule is to reject when 𝑥ҧ > μ0 + za (σ/√n)
μ0 μ0 + z a
(σ/√n) SIS 1037Y 2020/2021 109
The type II error probability (β) is the blue area,
where μt is the true population mean.
μt μ0 + z a
(σ/√n) SIS 1037Y 2020/2021 110
So to find β, we need to find the area
to the left of μ0 + za (σ/√n).
Score Actual Mean
c - μ0 / (σ / √n) = -1.645
c - 5.2 / (0.6 / √(9)) = -1.645
c - 5.2 = -0.329
c = 4.87
Reject H0
(ex: you conclude that the drug Type I error (α) Correct
works)
Do not reject H0
(ex: you conclude that there is
insufficient evidence that the drug Correct Type II Error (β)
works)
A particular compound is not hazardous in
drinking water if it is present at a rate of no
more than 25ppm. A watchdog group believes
that a certain water source does not meet this
standard.
◦ μ: mean amount of the compound (in ppm)
H0: μ < 25
Ha: μ > 25
◦ If the lobbying group decides to gather data and formally conduct this
test, describe type I and type II errors in the context of this scenario
and the consequences of each.
SIS 1037Y 2020/2021 119
Type I error:
◦ Stating that the evidence indicates the support level is
less than 55% (and the proposal may be in jeopardy of
failing) when that is not the case.
◦ The lobbying group will have kept advertising dollars
aimed at this proposal when they could have been
spent elsewhere.
Type II error:
◦ Stating that the proposal appears to have a “safe” level
of support when that is not the case.
◦ The lobbying group would shift funds away from
supporting this proposal even though it may still be in
need of that support.