Tom K. answered 11/08/20
Knowledgeable and Friendly Math and Statistics Tutor
For any distribution, the formula for n is σ2zα/22/ME2,
For a proportion, σ2= p(1-p)
The maximum value that p(1-p) can have occurs at p = 1/2, and p(1-p) = 1/2(1-1/2) = 1/4
Thus, the formula may be rewritten for proportions as zα/22/(4ME2)
In this particular problem, ME = 3% = .03
α = 1 - confidence level = 1 - .975 = .025
Then, zα/2 = norm.s.inv(1 - α/2) = norm.s.inv(1 - .025/2) = norm.s.inv(.9875) = 2.241403
n= 2.2414032/(4 *.032) = 1395.524
As n must be an integer, we take the ceiling of 1395.524 = 1396.