Exercises 5 4
Exercises 5 4
𝑁𝜎 2 𝑑
𝑛 = (𝑁−1)𝐷2 +𝜎2 , 𝐷= 𝑧
, in case (WOR).
Coefficient of variation
1 𝑠2
𝑛=
𝐶𝑉 2 𝑦̅ 2
[Note: We always round up; the sample size formulas always generate the minimum number of
subjects needed to ensure the specified precision.]
c) If the relative error should not exceed (0.1), except for α=0.05.
2 2
𝑍1− 𝛼 𝑆
2 (1.96 ∗ 4)2
𝑛= = = 170.73 ≈ 171
(𝑎 𝑦̅ )2 (0.1 ∗ 6)2
1.96 ∗ 6 2
𝑛1 = ( ) = 34.56 ≈ 35
2
1.96 ∗ 10 2
𝑛2 = ( ) = 96.04 ≈ 97
2
1.96 ∗ 15 2
𝑛3 = ( ) = 216.09 ≈ 217
2
We note the sample size are differences, because the standard errors are different from each
group.
Exercises 4. (Sample size estimation for proportion in survey). (H.W)
One university has 1000 students in each of the four classes. The percentages of the
Freshman–Sophomore, Junior, and Senior classes expressing interest in professional
training after graduation were guessed to be 20, 50, and 80%, respectively.
(a) For each of these three groups, find the sample sizes required to estimate the
percentage if the estimate should not differ from the actual value by not more than
20% of the actual value except for α=0.05, and present the reason for the differences
in the sample sizes.
(b) Find the sample sizes needed for each of the three groups for estimating the above
percentage if the error of estimation should not exceed 10% except for α=0.05 and
present the reason for the differences in the sample sizes.
NOTE:
» The higher power will require a larger sample size.
» Sample Size for One Sample, Continuous Outcome 𝐻0 : 𝜇 = 𝜇1 𝑣𝑠 𝐻1 : 𝜇 ≠ 𝜇1
2
(𝑍1−𝛼 + 𝑍1−𝛽 ) 𝑆 2
2
𝑛= , 𝑑 = 𝜇1 − 𝜇0
(𝑑)2
Example 3: It is believed that the proportion of patients who develop complications after
undergoing one type of surgery is 5% while the proportion of patients who develop
complications after a second type of surgery is 15%. How large should the sample be in
each of the 2 groups of patients if an investigator wishes to detect, with a power of 90%,
and 5% level of significance? (Two-sided test)
2
(𝑍1−𝛼 + 𝑍1−𝛽 ) 2𝑝ҧ 𝑞̅ 𝑝1 + 𝑝2
2
𝑛= ; 𝑝ҧ =
(𝑝1 − 𝑝2 )2 2
𝑝1 + 𝑝2 0.05 + 0.15
𝑝ҧ = = = 0.10 , 𝑞̅ = 1 − 0.1 = 0.90
2 2
𝑍1−𝛼 = 𝑍0.975 = 1.96 ; 𝑍1−𝛽 = 𝑍0.90 = 1.282
2
(1.96 + 1.282)2 52
𝑛= = 65.69 ≈ 66
22
Example 6: (Sample Sizes for Two Independent Samples, Continuous Outcome)
An investigator is planning a clinical trial to evaluate the efficacy of a new drug designed
to reduce blood pressure. The plan is to enroll participants and to randomly assign them to
receive either the new drug or a placebo. If the new drug shows a 5 unit reduction in mean
blood pressure, this would represent a clinically meaningful reduction.
How many patients should be enrolled in the trial to ensure that the power of the test is
80% to detect this difference? A two-sided test will be used with a 5% level of significance.
In addition to, the standard deviation of blood pressure from previous Heart Study was 19
unit.
2
𝟐 (𝑍1−𝛼 + 𝑍1−𝛽 ) 𝑆 2
2
𝑛=
(𝑑)2
𝑍1−𝛼 = 𝑍0.975 = 1.96 ; 𝑍1−𝛽 = 𝑍0.80 = 0.84
2
#Sampling weighting
Determine weighting for the following sampling designs:
𝑁 20000
1) If N=20000 , n= 400 . >>> 𝑤 = = = 50
𝑛 400
𝑁 1559
2) If N=1559 , n= 60 . >>> 𝑤 = = = 25.983
𝑛 60
𝑁 335
3) If N=335 , n= 230 . >>> 𝑤 = = 230 = 1.456
𝑛