Two-sample z-interval for difference in proportions

    Two-Sample z-Interval for Difference in Proportions

    When comparing two populations or groups based on a categorical variable, we often want to estimate the difference between their true population proportions. The two-sample z-interval for a difference in proportions is a statistical tool used to construct a confidence interval for this difference, denoted as p1 - p2.

    Conditions for Inference

    Before constructing this interval, several conditions must be met to ensure the validity of the results:

    • Random Condition: Data must come from two independent random samples or two groups in a randomized experiment. This ensures that the samples are representative of their respective populations and that the observations within and between groups are independent.
    • 10% Condition: When sampling without replacement, the sample size n1 must be no more than 10% of the population size N1, and n2 no more than 10% of N2. This ensures that the independence of observations is maintained.
    • Large Counts Condition (Success/Failure Condition): For both samples, the number of successes and failures must be at least 10. That is, n1p̂1 ≥ 10, n1(1 - p̂1) ≥ 10, n2p̂2 ≥ 10, and n2(1 - p̂2) ≥ 10. This condition ensures that the sampling distribution of the sample proportion is approximately normal.

    Formula for the Confidence Interval

    The general formula for a confidence interval is statistic ± critical value × standard error. For a two-sample z-interval for a difference in proportions, the formula is:

    $(p̂_1 - p̂_2) \pm z^* \sqrt{\frac{p̂_1(1-p̂_1)}{n_1} + \frac{p̂_2(1-p̂_2)}{n_2}}$

    • p̂1 and p̂2 are the sample proportions from the two independent samples.
    • n1 and n2 are the respective sample sizes.
    • z* is the critical value from the standard normal distribution corresponding to the desired confidence level. For example, for a 95% confidence level, z* is approximately 1.96.
    • The expression under the square root is the standard error of the difference in sample proportions. Note that unlike hypothesis testing for proportions, we do not pool the sample proportions (i.e., we don't use a combined p̂) because we are estimating the difference, not assuming it is zero.

    Interpretation of the Interval

    Once the interval is constructed, its interpretation is crucial. For example, a 95% confidence interval of (0.02, 0.08) for p1 - p2 means: "We are 95% confident that the true difference in proportions (p1 - p2) lies between 0.02 and 0.08." If the interval contains 0, it suggests that there might not be a statistically significant difference between the two population proportions at the chosen confidence level. If the entire interval is above 0, it suggests p1 is likely greater than p2. If entirely below 0, p1 is likely less than p2.

    Example Application

    Imagine a study comparing the proportion of voters who support a new policy in two different cities. Sample 1 from City A has 120 out of 200 people supporting the policy (p̂1 = 0.60), and Sample 2 from City B has 105 out of 200 people supporting it (p̂2 = 0.525). To construct a 90% confidence interval for pA - pB, we would first check conditions, then calculate the point estimate (0.60 - 0.525 = 0.075), find the z* for 90% (1.645), and apply the formula. This interval helps us quantify the likely range of the true difference in support levels between the two cities.

    Practice questions

    1

    What is the primary purpose of constructing a two-sample z-interval for a difference in proportions?

    2

    Why is the Large Counts Condition important for using a two-sample z-interval for proportions?

    3

    What does it signify if a 95% confidence interval for (p1 - p2) is calculated as (-0.03, 0.05)?

    4

    When constructing a two-sample z-interval for a difference in proportions, why are the sample proportions (p̂1 and p̂2) not pooled to calculate the standard error?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-6-inference-for-categorical-data-proportions/two-sample-z-interval-for-difference-in-proportions