Confidence Interval for Two Proportions

Confidence Interval for Differences in Population Proportions
To make inferences about the difference in the population proportions p1−p2 (parameter), we use the difference in the sample proportions p^1−p^2.
We do not know the actual value of the difference in population proportions p1−p2 but we can provide a reasonable range to estimate it, by constructing confidence intervals given a certain confidence level C (e.g. 90%, 95%, 99%). Like all confidence interval, it is constructed using a point estimate plus or minus a margin of error.
When comparing two proportions, the point estimate (or statistic) is p^1−p^2.
Example
We wish to estimate the difference in the percentage of international students at U of A (Population 1) and U of B (Population 2).
- The parameter that we are trying to estimate is p1−p2.
- p1 is unkown
- p2 is unkown
- Therefore, the difference p1−p2 is unkown.
Suppose we draw samples from each population. Results:

- The proportion of international students in Sample 1 is p^1=0.12
- The proportion of international students in Sample 2 is p^2=0.09
- The point estimate or statistic is p^1−p^2=0.12−0.09=0.03
- We estimate that the true difference in proportions is 0.03 (or 3%).
The above is just a point estimate. Suppose we construct a 95% confidence interval. Results:
- 0.01 is the lower confidence level (LCL)
- 0.05 is the upper confidence level (UCL)
- We are 95% confident that the true difference in proportion of international students is between 0.01 and 0.05.
- We do not know the value of the true difference in proportions but we are very confident that it is somewhere within that confidence interval.

Confidence Interval for Two Proportions
where,
- q^i=1−p^i
- the standard error of the statistic p^1−p^2 is n1p^1q^1+n2p^2q^2
We make inferences with confidence intervals.

Example: Confidence Interval for Two Proportions
Based on a random sample of 50 male professors, 26 of them voted in favor of electing a new president. Based on a random sample of 40 female professors, 12 of them voted in favor.
(a) Solve for p^1and p^2:
x1=26n1=50
x2=12n2=40
(b) Construct a 95% confidence interval for the difference in the proportions of male and female professors who are in favor of electing a new president. Interpret it (in plain English).
We use:
We need to find z⋆:

z⋆=1.96
(0.52−0.30)±1.9650(0.52)(0.48)+40(0.3)(0.7)
0.22±0.1984
[0.0216,0.4184]
We are 95% confident that the difference in the proportions of male and female professors who are in favor of electing a new president is between 2% and 42%. Specifically, there is a greater proportion of male professors who are in favor.
(c) Does the interval contain "0"? Interpret that that means.
The interval does not contain "0". This means that one group (specifically the male professors) is consistently different (specifically greater) than the other group (specifically the female professors) for being in favor of electing a new president.