Skip to main content
Back

Hypothesis Testing and Confidence Intervals for Two Proportions

Study Guide - Smart Notes

Tailored notes based on your materials, expanded with key definitions, examples, and context.

9.1 Two Proportions

Introduction to Comparing Two Proportions

In statistical analysis, comparing two proportions from different populations is a common task, especially when evaluating the effectiveness of treatments or differences between groups. This section focuses on constructing confidence intervals and performing hypothesis tests for the difference between two population proportions.

  • Objective: To determine if there is a significant difference between two population proportions.

  • Applications: Used in medical studies, market research, and quality control.

Objectives

  • Hypothesis Test: Test a claim about two proportions.

  • Confidence Interval: Estimate the difference between two proportions.

Both objectives use similar statistical processes.

Requirements for Valid Comparison

  • Samples must be from simple random samples.

  • Samples must be independent.

  • Number of successes and failures in each sample should be greater than 5.

Definitions

  • Pooled Sample Proportion (π): Combines the two sample proportions into one proportion for hypothesis testing.

Notation

  • , : Population proportions for groups 1 and 2.

  • , : Sample sizes for groups 1 and 2.

  • , : Number of successes in each sample.

  • , : Sample proportions.

Test Statistic for Two Proportions

To test the difference between two proportions, we use the following test statistic:

P-value and Critical Value

  • P-value: Calculated using statistical software or calculators; represents the probability of observing the test statistic under the null hypothesis.

  • Critical Value: The threshold value for significance, determined by the chosen significance level (e.g., 0.05).

Confidence Interval for the Difference in Proportions

The confidence interval for the difference is given by:

Where is the margin of error:

Round interval limits to three significant digits.

Hypothesis Test Procedure

When testing a claim about two proportions, the null hypothesis is always:

The alternative hypothesis depends on the claim (e.g., , , or ).

  • Use calculators or software to compute the test statistic and p-value.

  • Compare the p-value to the significance level to decide whether to reject the null hypothesis.

Example: Comparing Proportions of License Plate Violations

Suppose we want to compare the proportion of commercial trucks and passenger cars in Connecticut that have only rear license plates.

Vehicle Type

Vehicles with Only Rear Plates

Total Vehicles

Passenger Cars

239

2049

Commercial Trucks

45

334

  • Hypothesis: Passenger car owners violate license plate laws at a higher rate than commercial truck owners.

  • Significance Level: 0.05

Let be the proportion for passenger cars, for commercial trucks.

  • Test the claim with a hypothesis test and a confidence interval.

  • Calculate sample proportions: ,

  • Set up hypotheses: ,

  • Compute test statistic and p-value using 2-PropZTest.

  • If p-value > 0.05, fail to reject the null hypothesis.

Confidence Interval Interpretation

  • If the confidence interval contains zero, there is no significant difference between the two proportions.

  • Use 2-PropZInt to compute the confidence interval for the difference.

Requirements Not Met

  • If samples are not random, results may not be valid.

  • If or , consider using exact methods such as Fisher's exact test or bootstrapping methods.

Summary Table: Key Steps in Two-Proportion Hypothesis Testing

Step

Description

1. State Hypotheses

Formulate null and alternative hypotheses.

2. Check Requirements

Random samples, independence, sufficient successes/failures.

3. Calculate Test Statistic

Use pooled proportion and formula for z.

4. Find P-value

Use calculator/software.

5. Make Decision

Compare p-value to significance level.

6. Construct Confidence Interval

Estimate difference between proportions.

Additional info:

  • Bootstrapping is a resampling method used when sample sizes are small or requirements for normal approximation are not met.

  • Fisher's exact test is recommended for small sample sizes or when expected counts are low.

Pearson Logo

Study Prep