Jonathan B. answered 10/18/22
Masters in Applied Statistics and Meteorology
Good afternoon and thank you for the question:
The answers are:
1,068 people assuming no previous estimates
972 people assuming a previous estimate of phat=0.65
Below is an explanation of how I arrived at the above answers:
The equation for the margin of error, MOE, for proportions is:
MOE = z*√phat*(1-phat)/n.
In the above equation, phat is the point estimate for the proportion of people who approve of how President Trump is performing his job, z comes from the standard normal distribution and is equal to 1.96 when we desire 95% confidence in our estimate, phat, and n is the desired sample size.
Rearranging the above equation to solve for n, we get:
n = phat*(1-phat)*z2/MOE2
Because we have no prior point estimate, we want the largest possible sample size, so we assume phat=0.5.
Note: If you play around with different values of phat, you will find that phat=0.5 gives the largest value to phat*(1-phat).
We plug in our knowns to get:
n = 0.5*(0.5)*1.962/0.032 ≈ 1,067.11. When dealing with sample sizes, we always round up to the nearest integer, so we need 1,068 people in our sample size. This is the smallest sample size that will achieve a margin of error equal to or less than 3%.
Likewise, if we now have a prior estimate of phat=0.65 and we still want 95% confidence and a margin of error less than 3%, we have:
n = 0.65*(1-0.65)*1.962/0.032 ≈ 971.07, so we need a sample size of n = 972 people.