Professional Documents
Culture Documents
Inference
Dr. Mona Hassan Ahmed
Prof. of Biostatistics
HIPH, Alexandria University
Lesson Objectives
Know what is Inference
Know what is parameter estimation
Understand hypothesis testing & the
types of errors in decision making.
Know what the -level means.
Learn how to use test statistics to
examine hypothesis about population
mean, proportion
Inference
Use a random sample
to learn something
about a larger
population
Inference
of parameters
* Point Estimation ( X or p)
* Intervals Estimation
Hypothesis Testing
Statistic
Parameter
Mean:
estimates
Standard
deviation:
estimates
Proportion:
estimates
from sample
from entire
population
Population
Mean, , is
unknown
Sample
I am 95%
confident that
is between 40 &
60
Parameter
= Statistic Its Error
Sampling Distribution
X or P
X or P
X or P
Standard Error
S
Quantitative Variable
SE (Mean) =
n
p(1-p)
Qualitative Variable
SE (p) =
Confidence Interval
/2
/2
1-
SE
SE
95% Samples
X - 1.96 SE
X + 1.96 SE
Z-axis
_
X
Confidence Interval
/2
/2
1-
SE
SE
95% Samples
p - 1.96 SE
p + 1.96 SE
Z-axis
Interpretation of
CI
Probabilistic
Practical
In repeated sampling
100(1-)% of all
intervals around sample
means will in the long
run include
We are 100(1-)%
confident that the
single computed CI
contains
= X + Z
SE
95
%
Then CI:
= 170 + 1.96 1
168.04 171.96
Example (Proportion)
In a survey of 140 asthmatics, 35% had
allergy to house dust. Construct the 95% CI
for the population proportion.
= p + Z P(1-p) SE = 0.35(1-0.35) = 0.04
n
140
0.35 1.96 0.04 0.35 + 1.96 0.04
0.27 0.43
27% 43%
Hypothesis testing
A statistical method that uses sample
data to
evaluate a hypothesis
about a population parameter. It is
intended to help researchers
differentiate between real and
random patterns in the data.
What is a Hypothesis?
I assume the mean SBP of
participants is 120 mmHg
An assumption
about the population
parameter.
H1
Level of Significance,
Rejection
Regions
Critical
Value(s)
Result Possibilities
H0: Innocent
Hypothesis Test
Jury Trial
Actual Situation
Verdict
Innocent Correct
Guilty
Actual Situation
Error
Error
Correct
Accept
H0
Reject
H0
1-
Type II
Error ( )
Type I
Error
( )
Power
(1 - )
False
Positive
False
Negative
Factors Increasing
Type II Error
Sample Size n
Increases When n Decreases
p Value Test
If
H0 : 120
State H1
H1 :
Choose
= 0.05
Choose n
n = 100
Choose Test:
Assumptions
Population is normally distributed
t test statistic
s
standard error
n
36.8
36.6
38.0
37.4
37.6
37.0
37.2
38.2
36.8
37.6
37.4
36.1
38.7
36.2
37.2
37.5
Mean
37.22
SD
0.68
SE
0.161
t
2.38
s
standard error
n
P
0.029
Probability (p value)
0.10
0.05
0.01
1
5
10
17
20
24
25
6.314
2.015
1.813
1.740
1.725
1.711
1.708
1.645
12.706
2.571
2.228
2.110
2.086
2.064
2.060
1.960
63.657
4.032
3.169
2.898
2.845
2.797
2.787
2.576
-2.11
+2.11
n
Test is called Z test
where:
Z
Z is computed value
is proportion in population
(null hypothesis value)
sample size
p
(1 )
n
Example
In a survey of diabetics in a large city, it was
found that 100 out of 400 have diabetic foot.
Can we conclude that 20 percent of diabetics in
the sampled population have diabetic foot.
Test at the =0.05 significance level.
Solution
Ho: = 0.20
Z=
H1: 0.20
0.25 0.20
0.20 (1- 0.20)
400
= 2.50
Reject
.025
-1.96
.025
+1.96
Decision:
We have sufficient evidence to
reject the Ho value of 20%
We conclude that in the
population of diabetic the
proportion who have diabetic foot
does not equal 0.20