Achievable logoAchievable logo
AP Statistics
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. One variable data
2. Two variable data
3. Data collection
4. Probability and random variables
5. Sampling distributions
6. Categorical data
6.1 Introduction to confidence intervals
6.2 Introduction to significance testing
6.3 Confidence intervals for difference of two proportions
6.4 Significance tests for difference of two proportions
7. Quantitative data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
6.3 Confidence intervals for difference of two proportions
Achievable AP Statistics
6. Categorical data
Our AP Statistics course is currently in development and is a work-in-progress.

Confidence intervals for difference of two proportions

5 min read
Font
Discuss
Share
Feedback

Confidence intervals for the difference of two proportions

A confidence interval here gives a range of reasonable values for the true difference in population proportions, p1​−p2​, using information from two samples. In many real comparisons — such as School A versus School B, a treatment group versus a control group, or men versus women — you usually want more than “Are the sample proportions different?” You want to estimate how different the underlying population proportions might be.

Notation

Definitions
p^​1​,p^​2​
The sample proportions from samples 1 and 2.
p1​,p2​
The true population proportions for groups 1 and 2.
n1​,n2​
The sample sizes of samples 1 and 2.
σd​
The standard deviation of the distribution of differences between two sample proportions.

Conditions and sampling distribution

Important pre-requisite information:

  1. The set of all differences of sample proportions is approximately normally distributed due to the central limit theorem. The central limit theorem requirements state that n1​p^​1​, n1​(1−p^​1​), n2​p^​2​, and n2​(1−p^​2​) should all be at least 10. Both samples should ideally be simple random and must be taken independently of one another.

  2. The mean of the sampling distribution of p^​1​−p^​2​ is p1​−p2​.

  3. The standard deviation of the set of differences of sample proportions is:

σd​​=σp^​1​−p^​2​​≈n1​p1​(1−p1​)​+n2​p2​(1−p2​)​​​

Confidence interval form

A confidence interval for the difference of two proportions is the estimate ± the margin of error:

(p^​1​−p^​2​)±z∗⋅SE​

If the confidence interval does not include 0, that’s evidence of a statistically significant difference between the two groups. A difference of 0 means “no difference,” and if 0 is not in the interval, it isn’t a plausible value for the true difference based on the data.

Practice problem

Example:

One of the Texas school districts wants to find out if there is a difference in the proportion of students who support a new dress code policy which is aimed at making the summer heat more manageable for students. A simple random sample of 120 students from School A found that 78 support the policy. A separate simple random sample of 150 students from School B found that 81 support the policy. Assume that each sample size is less than 10% of its school’s student population.

Part a.

What are the sample proportions of students who support the policy at each school?

From the problem:

  • School A: 78 out of 120 students support the policy.
  • School B: 81 out of 150 students support the policy.

Set up the sample proportions:

p^​A​p^​B​​=12078​=15081​​

Solution:

(spoiler)

p^​A​​=12078​=0.65​

p^​B​​=15081​=0.54​

From these samples, 65% of students in School A support the policy and 54% of students in School B support the policy.

Part b.

What is the standard deviation for the difference in sample proportions?

The standard deviation of the difference in sample proportions is estimated by the standard error:

SE​=nA​p^​A​(1−p^​A​)​+nB​p^​B​(1−p^​B​)​​​

From Part a. and the problem:

p^​A​p^​B​nA​nB​​=0.65=0.54=120=150​

Substitute into the formula:

SE​=1200.65(0.35)​+1500.54(0.46)​​=1200.2275​+1500.2484​​=0.001896+0.001656​=0.003552​​

Solution:

(spoiler)

SE​≈0.0596​

Part c.

Construct a 95% confidence interval for the true difference in proportions pA​−pB​.

For a 95% confidence interval, the critical value is:

z∗​=1.96​

The confidence interval has the form:

(p^​A​−p^​B​)±z∗⋅SE​=(0.65−0.54)±1.96⋅0.0596=0.11±0.1168​

Solution:

(spoiler)

Confidence interval: (−0.0068, 0.2268)​

Part d.

Interpret the confidence interval in context.

Solution:

(spoiler)

We are 95% confident that the true difference in the proportion of students who support the new policy (School A minus School B) is between −0.0068 and 0.2268.

This does not mean there is a 95% probability that the true difference is in this interval. The true difference is fixed; the interval is the result of a method that captures the true difference about 95% of the time in repeated sampling.

Part e.

Is there convincing evidence of a difference in support of the policy between School A and School B? Why or why not?

Solution:

(spoiler)

Because 0 is inside the confidence interval, a true difference of 0 is a plausible value for pA​−pB​. So, we do not have convincing evidence (at the 95% confidence level) that the population proportions of support differ between the two schools.

Sampling distribution of differences in proportions

  • Approximately normal by central limit theorem if:
    • n1​(1−p^​1​), n2​(1−p^​2​), n1​p^​1​, n2​p^​2​≥10
    • Samples are simple random and independent
  • Mean: p1​−p2​
  • Standard deviation: σd​≈n1​p1​(1−p1​)​+n2​p2​(1−p2​)​​

Confidence interval for p1​−p2​

  • Formula: (p^​1​−p^​2​)±z∗⋅SE
    • SE=n1​p^​1​(1−p^​1​)​+n2​p^​2​(1−p^​2​)​​
  • z∗ critical values:
    • 1.645 for 90% confidence
    • 1.96 for 95% confidence
    • 2.576 for 99% confidence
  • Interval gives plausible values for p1​−p2​

Interpreting the confidence interval

  • If 0 not in interval: evidence of statistically significant difference
  • If 0 in interval: no convincing evidence of a difference
  • Interval reflects method capturing true difference in repeated sampling, not probability for a specific interval

Conditions for valid inference

  • Both samples random and independent
  • Large counts condition met (np^​, n(1−p^​)≥10 for both groups)
  • Sample sizes less than 10% of populations (if sampling without replacement)

Example calculations

  • Sample proportions: p^​A​=0.65, p^​B​=0.54
  • Standard error: SE≈0.0596
  • 95% confidence interval: (−0.0068, 0.2268)
  • Interpretation: plausible difference ranges from slightly negative to positive; 0 included, so no significant difference detected

Sign up for free to take 8 quiz questions on this topic

Previous
Next  | 6.4 Significance tests for difference of two proportions
All rights reserved ©2016 - 2026 Achievable, Inc.

Confidence intervals for difference of two proportions

Confidence intervals for the difference of two proportions

A confidence interval here gives a range of reasonable values for the true difference in population proportions, p1​−p2​, using information from two samples. In many real comparisons — such as School A versus School B, a treatment group versus a control group, or men versus women — you usually want more than “Are the sample proportions different?” You want to estimate how different the underlying population proportions might be.

Notation

Definitions
p^​1​,p^​2​
The sample proportions from samples 1 and 2.
p1​,p2​
The true population proportions for groups 1 and 2.
n1​,n2​
The sample sizes of samples 1 and 2.
σd​
The standard deviation of the distribution of differences between two sample proportions.

Conditions and sampling distribution

Important pre-requisite information:

  1. The set of all differences of sample proportions is approximately normally distributed due to the central limit theorem. The central limit theorem requirements state that n1​p^​1​, n1​(1−p^​1​), n2​p^​2​, and n2​(1−p^​2​) should all be at least 10. Both samples should ideally be simple random and must be taken independently of one another.

  2. The mean of the sampling distribution of p^​1​−p^​2​ is p1​−p2​.

  3. The standard deviation of the set of differences of sample proportions is:

σd​​=σp^​1​−p^​2​​≈n1​p1​(1−p1​)​+n2​p2​(1−p2​)​​​

Confidence interval form

A confidence interval for the difference of two proportions is the estimate ± the margin of error:

(p^​1​−p^​2​)±z∗⋅SE​

If the confidence interval does not include 0, that’s evidence of a statistically significant difference between the two groups. A difference of 0 means “no difference,” and if 0 is not in the interval, it isn’t a plausible value for the true difference based on the data.

Practice problem

Example:

One of the Texas school districts wants to find out if there is a difference in the proportion of students who support a new dress code policy which is aimed at making the summer heat more manageable for students. A simple random sample of 120 students from School A found that 78 support the policy. A separate simple random sample of 150 students from School B found that 81 support the policy. Assume that each sample size is less than 10% of its school’s student population.

Part a.

What are the sample proportions of students who support the policy at each school?

From the problem:

  • School A: 78 out of 120 students support the policy.
  • School B: 81 out of 150 students support the policy.

Set up the sample proportions:

p^​A​p^​B​​=12078​=15081​​

Solution:

(spoiler)

p^​A​​=12078​=0.65​

p^​B​​=15081​=0.54​

From these samples, 65% of students in School A support the policy and 54% of students in School B support the policy.

Part b.

What is the standard deviation for the difference in sample proportions?

The standard deviation of the difference in sample proportions is estimated by the standard error:

SE​=nA​p^​A​(1−p^​A​)​+nB​p^​B​(1−p^​B​)​​​

From Part a. and the problem:

p^​A​p^​B​nA​nB​​=0.65=0.54=120=150​

Substitute into the formula:

SE​=1200.65(0.35)​+1500.54(0.46)​​=1200.2275​+1500.2484​​=0.001896+0.001656​=0.003552​​

Solution:

(spoiler)

SE​≈0.0596​

Part c.

Construct a 95% confidence interval for the true difference in proportions pA​−pB​.

For a 95% confidence interval, the critical value is:

z∗​=1.96​

The confidence interval has the form:

(p^​A​−p^​B​)±z∗⋅SE​=(0.65−0.54)±1.96⋅0.0596=0.11±0.1168​

Solution:

(spoiler)

Confidence interval: (−0.0068, 0.2268)​

Part d.

Interpret the confidence interval in context.

Solution:

(spoiler)

We are 95% confident that the true difference in the proportion of students who support the new policy (School A minus School B) is between −0.0068 and 0.2268.

This does not mean there is a 95% probability that the true difference is in this interval. The true difference is fixed; the interval is the result of a method that captures the true difference about 95% of the time in repeated sampling.

Part e.

Is there convincing evidence of a difference in support of the policy between School A and School B? Why or why not?

Solution:

(spoiler)

Because 0 is inside the confidence interval, a true difference of 0 is a plausible value for pA​−pB​. So, we do not have convincing evidence (at the 95% confidence level) that the population proportions of support differ between the two schools.

Key points

Sampling distribution of differences in proportions

  • Approximately normal by central limit theorem if:
    • n1​(1−p^​1​), n2​(1−p^​2​), n1​p^​1​, n2​p^​2​≥10
    • Samples are simple random and independent
  • Mean: p1​−p2​
  • Standard deviation: σd​≈n1​p1​(1−p1​)​+n2​p2​(1−p2​)​​

Confidence interval for p1​−p2​

  • Formula: (p^​1​−p^​2​)±z∗⋅SE
    • SE=n1​p^​1​(1−p^​1​)​+n2​p^​2​(1−p^​2​)​​
  • z∗ critical values:
    • 1.645 for 90% confidence
    • 1.96 for 95% confidence
    • 2.576 for 99% confidence
  • Interval gives plausible values for p1​−p2​

Interpreting the confidence interval

  • If 0 not in interval: evidence of statistically significant difference
  • If 0 in interval: no convincing evidence of a difference
  • Interval reflects method capturing true difference in repeated sampling, not probability for a specific interval

Conditions for valid inference

  • Both samples random and independent
  • Large counts condition met (np^​, n(1−p^​)≥10 for both groups)
  • Sample sizes less than 10% of populations (if sampling without replacement)

Example calculations

  • Sample proportions: p^​A​=0.65, p^​B​=0.54
  • Standard error: SE≈0.0596
  • 95% confidence interval: (−0.0068, 0.2268)
  • Interpretation: plausible difference ranges from slightly negative to positive; 0 included, so no significant difference detected

More from Categorical data

  • Introduction to confidence intervals
  • Introduction to significance testing
  • Significance tests for difference of two proportions