Professional Documents
Culture Documents
Type I and II Errors
Type I and II Errors
Type I and II Errors
“CBMBP”
Type I & Type II Errors
Prof.Dr/Ibrahim Kabbash
Professor of public Health and Community Medicine
ILOs
NULL Hypothesis:
H0 : m1 = m2
H1 : m1 = m2
Possible Outcomes in
Hypothesis Testing (Decision)
Correct
Reject Error
Decision
Type I Error
Possible Outcomes in
Hypothesis Testing
Alpha () Null is True
Correct
Null is False
Accept Decision Error
Type II Error
Difference observed is really Correct
Reject Error Decision
just sampling error Type I Error
The prob. of type one error
When we do statistical analysis… if alpha
(p value- significance level) greater than 0.05
2.5% 2.5%
5%
1. Increase our n
2. Decrease variability
There are four things that can happen when you take the pregnancy test:
The test can be ACCURATE, and say that:
1) Woman is pregnant when she actually is, OR
Reality
2) woman not pregnant when she actually ISN’T
H0 True HH00 False
False
(Really
(Really NOT
Are (Really
(Really ARE
NOT
OR it can be INACCURATE, and say that: Pregnant)
pregnant) pregnant)
pregnant)
3) Woman is pregnant when she is NOT
(a FALSE ALARM), or POS
What the (Reject H0)
4) Woman is not
Pregnancy
pregnant when NEG
Test Said
she actually IS…. (Fail to
(a FAILURE TO DETECT the effect) Reject H0)
The Pregnancy Test Example
There are four things that can happen when you take the pregnancy test:
The test can be ACCURATE, and say that:
1) Woman is pregnant when you actually are, OR
Reality
2) Woman is not pregnant when she actually ISN’T
H0 True HH00 False
False
(Really
(Really NOT
Are (Really
(Really ARE
NOT
Or it can be INACCURATE, and say that: Pregnant)
pregnant) pregnant)
pregnant)
3) Woman is pregnant when she ISN’T
= probability of
(a FALSE ALARM), or POS this test raising a
What the (Reject H0)
4) Woman is not FALSE ALARM
= probability of
POS
This (1 - b) is called (Reject H0)
this test raising a
What the FALSE ALARM
The POWER OF Pregnancy b = probability of
THE TEST! Test Said NEG this test FAILING
(Fail to TO DETECT your
Reject H0) pregnancy!
Consequences of Pregnancy Test Errors
• Type I Error – The test raised a false alarm and got the woman
either very worried or excited. She may have already run to the
store to buy baby supplies, incurring unnecessary costs. she
may have spent days or weeks panicking until she realized that
the test was faulty.
• Type II Error - The test failed to detect her pregnancy and she
didn’t stop smoking, therefore potentially harming a life. She
didn’t seek prenatal medical attention.
In a case like this, the test designers need to think about how to
minimize BOTH Type I and Type II Errors. There are
psychological and cost ramifications if either kind happens.
Power of the Test
Power = 1 - b
• It’s the probability of successfully detecting an effect
The power of the test INCREASES as the effect size increases…
• So , if a woman is just ONE day late, the effect size is small – it
will be difficult for that pregnancy test to give an accurate
result. she’ll have a high Type II Error at this time.
• If she is a week late, the effect size is bigger – the Type II Error
will be lower, because the pregnancy is easier to detect.
• If she is a month late, the effect size is HUGE and the Type II
Error will be even smaller.
NOW
now we can:
• Identify type I and type II errors
• Make a decision on practical situation
reference