HT CI Samplesize
HT CI Samplesize
HT CI Samplesize
Mekelle University
College of Health Sciences
Department of Public Health
Epidemiology& Biostatistics Team
Tesfaye Hailu (Bsc.PH, MPH-Epidemiology)
E-mail: tesfayehailu2002@yahoo.com
Inference
S
Quantitative SE (Mean) =
Variable n
p(1-p)
Qualitative
SE (p) = n
Variable
Example CI for Mean
An epidemiologist studied the blood glucose level
of a random sample of 100 patients. The mean
was 170, with a SD of 10.
= X + Z
SE
SE = 10/10 = 1
Then CI: = 170 + 1.96 1 168.04 ≥ 171.96
We are 95% confident that the population mean
is between 168.04 and 171.96
Example CI for Proportion
11.19
Two tail test (conclusion)
11.22
Errors in HT
• The null hypothesis is either true or false.
• Correspondingly, Ho is either not rejected or rejected
• Type I error: rejecting the null hypothesis when it is
true.
* The probability of making a type I error is denoted by α.
• Type II error: not rejecting the null hypothesis when it
is actually false.
* The probability of making a type II error is denoted by
β.
Power: 1- β
Type I and Type II Errors
True State of Nature
The null The null
hypothesis is hypothesis is
true false
Type I error
We decide to (rejecting a true Correct
reject the null hypothesis) decision
null hypothesis
Decision
Type II error
We fail to Correct (Accepting a false
reject the decision null hypothesis)
null hypothesis
Hypothesis testing about mean
Example:
• Researchers are interested in the mean level
of some enzyme in a certain population. They
are asking: can we conclude that the mean
enzyme level in this population is different
from 25?
• Solution : Steps ???
Cont...
• Step 1: H0: μ = 25
H1: μ ≠ 25
• Step 2: They collect a sample of size 10 from a normally distributed population with a
• known variance, σ2 = 45.
• The calculated
• sample mean is = 22.
• Step 3:
• Testing a hypothesis about population mean
• • The population is normally distributed
• • Population variance is known
• ⇒ Z ‐ statistic is the appropriate one
• Z = x- μo
σ / √n
Cont...
• Step 4: α = 0.05
• Step 5.
Cont...
• Step 6. Z=22-25/√45/10= -1.41???
Step 7.conclusion
-1.41<-1.96 dont reject Ho.
Decision:
Reject Reject We have sufficient evidence to reject the Ho
value of 20%
.025 .025
We conclude that in the population of diabetic
the proportion who have diabetic foot does
not equal 0.20
-1.96 0 +1.96 Z
Sample size determination
• Why ???
• In studies concerned with estimating some
characteristic of a population (e.g. The
prevalence of asthmatic children), sample
size calculations are important to ensure that
estimates are obtained with required
precision or confidence.
Sample size determination
Sample size determination depends on the:
• objective of the study;
• design of the study;
• plan for statistical analysis;
• accuracy of the measurements to be made
• degree of precision required for
generalization;
• degree of confidence with which to conclude.
Minimum Sample Size: Mean and
Proportion
• Minimum •re quired sam
• ple size• i n estimati
• ng the pop
• ulation
•• • m:
• mean,
• •• •za2• s2
• • • • • •n = • 2
• • B2
• Bound of• e stimate:
• s
• • • • B• •=• z a
• 2• n
• B2
Example
•• AAmarketing
marketingresearch
researchfirm
firmwants
wantstotoconduct
conductaasurvey
surveytotoestimate
estimatethethe
averageamount
average amountspent
spenton
onentertainment
entertainmentby byeach
eachperson
personvisiting
visitingaapopular
popular
resort. The
resort. Thepeople
peoplewho
whoplan
planthe
thesurvey
surveywould
wouldlike
liketotodetermine
determinethethe
averageamount
average amountspent
spentby
byall
allpeople
peoplevisiting
visitingthe
theresort
resorttotowithin
within$120,
$120,withwith
95%confidence.
95% confidence. From
Frompast
pastoperation
operationof ofthe
theresort,
resort,ananestimate
estimateofofthethe
populationstandard
population standarddeviation
deviationisis ss==$400.
$400. What
Whatisisthe
theminimum
minimumrequired
required
samplesize?
sample size?
Solution
z
2 2
n 2
B 2
(196
. ) (400) 2 2
120 2
42.684 43