When considering two-sample data that involves a difference of proportions, both a confidence interval and a hypothesis test can be done.
The standard deviation used for a difference of proportions in creating a confidence interval is
However, the standard deviation used for confidence intervals is , where , , and
What I don't understand is why these are different. They're both the standard deviation of the same proportion, so why should they differ?