Sample Size Determination: Maj. Tun Tun Win
Sample Size Determination: Maj. Tun Tun Win
Sample Size Determination: Maj. Tun Tun Win
determination
• Scientific reasons
• Ethical reasons
• Economic reasons
3/7/22 dr.ttunwin@gmail.com 2
From a scientific perspective:
3/7/22 dr.ttunwin@gmail.com 5
Economic Reasons
3/7/22 dr.ttunwin@gmail.com 6
First: Factors to Consider for Sample Size
• objectives
• study design
3/7/22 dr.ttunwin@gmail.com 7
Important questions in sample size
estimation
What is the key outcome of interest which is to be evaluated
statistically?
Cured/Not Cured, laboratory parameters, Success rate, etc.
3/7/22 dr.ttunwin@gmail.com 8
Important questions in sample size estimation (2)
• A priori information about parameters of
interest
– Literature Review
From previous report, it was shown that cure rate of Drug
A = 70%
– Pilot Study
A pilot survey from 30 bottles of drinking water in the market
shows that there are E. coli in 5 bottles.
– 3Expert Opinion
out of 5 experts say that about 10% of workers in the XXX
factory have health problem related to toxic chemicals.
3/7/22 dr.ttunwin@gmail.com 9
Second: Questions to Ask
3/7/22 dr.ttunwin@gmail.com 10
Hypothesis Testing
Null Hypothesis
• There is no difference between the groups
• Example. Survival rate in patients receiving treatment A is the
same as the survival rate in the group receiving treatment B.
Alternative Hypothesis
• There is a difference between the groups
• Example. Survival rate in patients receiving treatment A is better
3/7/22 dr.ttunwin@gmail.com 11
Factors in sample size estimation
• Type I & Type II errors
Ho: 1 = 2 Reality/Truth
Ho is True Ho is False
CORRECT Type II ERROR
Do not
reject Ho Confidence: 1 -
Decision
3/7/22 dr.ttunwin@gmail.com 13
Confidence Level (1 -a)
3/7/22 dr.ttunwin@gmail.com 14
Power (1- b)
• The chances of correctly rejecting a Null hypothesis
when it is indeed false is called the statistical
power (1- ß ) of the test of the hypothesis
3/7/22 dr.ttunwin@gmail.com 15
Sample Size and Power
3/7/22 dr.ttunwin@gmail.com 17
Sample size
1) Sample size to estimate P with d or ε
2) Sample size to estimate μ with d or ε
3) SS to estimate the risk difference
between two proportions within d
4) SS for two sample test of proportions
(Hypothesis testing)
5) SS estimating the difference between two
means
3/7/22 dr.ttunwin@gmail.com 18
Sample size cont:
6) SS hypothesis testing for two population
means
7) SS for a hypothesis test of the Odds Ratio
8) SS to estimate the odds ratio
9) SS for a hypothesis test of the RR
10) SS to estimate the RR
11) SS for equivalence study
3/7/22 dr.ttunwin@gmail.com 19
(1) Sample size to estimate P with d or ε
3/7/22 dr.ttunwin@gmail.com 21
Sample size = n = z 2 ( p x q) /d2
p = 20% = 0.20
q (1-p) = 0.8
z = 1.96 ( at 95 % Confidence level )
d = 5 % = 0.05 (5 % precision)
n = z 2 ( p x q) /d2
n = 1.962(0.2 x 0.8) / 0.052
n = 3.841 x 0.16 / 0.0025
n = 245.86 = 246dr.ttunwin@gmail.com
3/7/22 22
(2) Sample size to estimate μ with d or ε
To study the average blood loss among elective LSCS
patients in No.(1) DSOGCH
n = Z 2 σ2
d2
n = Minimum required sample size
For 95% confidence level, z = 1.96
σ = standard deviation
d = Absolute precision
3/7/22 dr.ttunwin@gmail.com 23
(3) Two Proportion (Estimation)
• Estimating the difference between two
population proportion with specified absolute
precision
n = z2 [ p1 (1-p1)+p2 (1- p2)]
d2
and corps
3/7/22 dr.ttunwin@gmail.com 24
(4) Two proportions (Hypothesis testing)
(
p1 – p2)2
p- = p 1 + p 2
3/7/22 dr.ttunwin@gmail.com 25
2
Two Proportions
• p1 = 20%
• p2 = 40%
• = 0.05…….95% confidence interval
• = 0.20…….(1- ) = 80%
• r =1 ( ratio of two group)
• Sample size = n = ???
• n = 91
3/7/22 dr.ttunwin@gmail.com 26
(5) Two means (Estimation)
n = Z21-α/2 (2σ2)
d2
e.g. Nutritionist wish to estimate the difference in caloric intake at lunch
between children in a school offering a hot school lunch program and
children in a school which does not. From other nutrition studies, they
estimate that the standard deviation in caloric intake among elementary
school children is 75 calories and they wish to make their estimate to
within 20 calories or the future differences with 95% CI.
n = 1.962 (2* 752)
202
= 108.05
3/7/22 dr.ttunwin@gmail.com 27
(6) Two Means (Hypothesis)
3/7/22 dr.ttunwin@gmail.com 28
n = (α+β)2 (σ12+ σ22)
(μ1- μ2)2
For 95% confidence level,
α = 0.05, z = 1.96
Power 80%,
β = 0.2, power = 1- β = 0.84
σ1= standard deviation of population 1
σ2= standard deviation of population 2
3/7/22 dr.ttunwin@gmail.com 29
- μ1= Mean value of population 1
- μ2= Mean value of population 2
3/7/22 dr.ttunwin@gmail.com 30
(7) Case control study
• Hypothesis tests for an odds ratio
• n = [z1-α/2 √2 p2(1-p2) + z1-β √p1(1-p1)+p2(1-p2)]2
(
p1 – p2)2
p1 = a/ a+b
P2 = c/c+d
In this case, probability of exposure given no
disease (p2) is approximated by the overall
exposure rate.
3/7/22 dr.ttunwin@gmail.com 31
(8) Case control study
• Estimating an odds ratio with specified
relative precision
• Confidence level ?????
• Relative precision?????
p1 = a/ a+b
p2 = c/ c+d
OR ≥ 1, p2 and OR use for table.
OR < 1, p1 and 1/OR use for table.
3/7/22 dr.ttunwin@gmail.com 32
(9) Cohort study
• Hypothesis tests for a relative risk
(
p1 – p2)2
p- = p1 + p2
2
p1 = a/ a+b
p3/7/22
2 = c/ c+d
dr.ttunwin@gmail.com 33
(10) Cohort study
• Estimating a relative risk with specified
relative precision
• Confidence level ?????
• Relative precision?????
p1 = a/ a+b
p2 = c/ c+d
RR ≥ 1, p2 and RR use for table.
RR < 1, p1 and 1/RR use for table.
3/7/22 dr.ttunwin@gmail.com 34
(11) Sample size for equivalence study
3/7/22 dr.ttunwin@gmail.com 35
Sample size is not
a magic number
3/7/22 dr.ttunwin@gmail.com 36
3/7/22 dr.ttunwin@gmail.com 37
dr.ttunwin@gmail.com
3/7/22 38