For large sample confidence intervals for the proportion in this situation you have:
pHat ± z * sqrt( (pHat * (1-pHat)) / n)
where pHat is the sample proportion
z is the zscore for having α% of the data in the tails, i.e., P( |Z| > z) = α
n is the sample size
For a 95% confidence interval you have a z-score of z = 1.96
phat = 408/865
n = 865
the confidence interval is:
408/865 ± 1.96 * sqrt( 408/865 * (1 - 408/865) / 865)
( 0.4384088 , 0.5049438 )
