Jonathan B. answered 10/18/22
Masters in Applied Statistics and Meteorology
Good afternoon and thank you for the question!
The answers are:
a) n = 335 houses
b) n = 234 houses
Below is an explanation of how I arrived at answers to parts a) and b):
a) We have no prior research to aid our estimate, so we want to sample the largest number of houses possible to get a margin of error of 0.035. For proportions, the equation for the margin of error, MOE, is:
MOE = z*√phat*(1-phat)/n.
In the above equation, phat is our point estimate for the proportion of households in Chicago that have two or more vehicles, z comes from the standard normal distribution and it's value is based on how confident we are in our point estimate: in this case, 80%, and n is the desired sample size.
Rearranging the above equation to solve for n, we get:
n = phat*(1-phat)*z2/MOE2.
Again, we have no prior research, so we want to assume a value of phat=0.5 to give the largest sample size given a confidence level of 80% and a MOE of 0.035.
Note: If you play around with different values of phat, you will see phat=0.5 gives the largest value for phat*(1-phat).
For an 80% confidence level, z = 1.28. Now, we can plug all known values into the equation for n to get:
n = 0.5*(0.5)*1.282/0.0352 ≈ 334.37. With sample sizes, we always round up to the nearest integer, so we would need n = 335 houses.
b) Now, we have some prior research to refine our estimate for n. In this case, we know that phat = 0.225. We still want a MOE of 0.035 and we want to be 80% confident in our point estimate, phat. Therefore, we use the same formula for n as part a) to get:
0.225(1-0.225)*1.282/0.0352 ≈ 233.22, so we need a sample size of n = 234 houses.