Educerie

Educerie · AP · Statistics

AP Statistics 3.10

Constructing a Confidence Interval for the Difference Between Two Population Proportions

How can we determine whether the difference between two groups is statistically significant?

What you will learn

  • Know that a two-sample z-interval for a difference between population proportions is the procedure
  • Understand that the parameter is p1 minus p2, defined with both populations and an order
  • Know that an interval uses the observed counts and does not pool
  • Understand how the point estimate, the standard error and the margin of error build the interval

You must be able to

  1. Name the procedure and define the parameter as a difference
  2. Verify the conditions for two samples and for an experiment
  3. Calculate the standard error, the margin of error and the interval
  4. Interpret the interval naming both populations
  5. Read the sign of the interval for the direction of the difference
  6. Explain why an interval does not pool

In the exam. Section I multiple choice: name the procedure for two groups, check the conditions (two independent samples or an experiment), find the standard error or the margin of error, or choose the right interval from computer-style numbers. Section II: Question 3 or Question 4 can ask for a full two-proportion interval, with the procedure, parameters, conditions, interval and interpretation each scored. Skills: identify the method (2.C), calculate (3.E), verify conditions (4.E).

1The procedure and the parameter

You have two groups and one response variable that is categorical with two outcomes. You want to estimate how far apart the two population proportions are. The procedure is a two-sample zz-interval for a difference between population proportions. Write all of it.

The parameter of interest is the difference p1−p2p_1 - p_2. Define it with three pieces: the difference in proportions, the response variable and the populations.

Example 1 (invented). Two towns run recycling schemes. A random sample of 200 households is taken in Town P, and a random sample of 180 in Town Q. Each sample is independent of the other and small compared with its town. In Town P, 96 households recycle weekly. In Town Q, 78 do.

Parameter: p1−p2p_1 - p_2 = the difference between the proportion of all households in Town P that recycle weekly and the proportion of all households in Town Q that recycle weekly.

State which group is which. The labels p1p_1 and p2p_2 must be defined, so that a positive difference has a clear meaning.

2Verify the conditions

Three conditions apply.

  1. Randomization. Two independent random samples, or a randomized experiment.
  2. 10% condition. When sampling without replacement, each sample is at most 10% of its population: n1≤0.10N1n_1 \le 0.10N_1 and n2≤0.10N2n_2 \le 0.10N_2. This is unnecessary for a randomized experiment.
  3. Normality. The observed number of successes and failures in both samples are all at least 10: n1p^1n_1\hat{p}_1, n1(1−p^1)n_1(1-\hat{p}_1), n2p^2n_2\hat{p}_2 and n2(1−p^2)n_2(1-\hat{p}_2).

For an interval, you use the observed counts, since the population proportions are unknown.

Check Example 1.

  • Randomization: two independent random samples, one from each town.
  • 10%: each town has far more than 2,000 households, so 200 and 180 are each less than 10% of them (the question gives or implies the sizes).
  • Normality: Town P has 96 recyclers and 200−96=104200 - 96 = 104 non-recyclers. Town Q has 78 recyclers and 180−78=102180 - 78 = 102 non-recyclers. All four are at least 10.

3The standard error and the interval

Compute each sample proportion and take the difference:

p^1=96200=0.480p^2=78180=0.433\hat{p}_1 = \frac{96}{200} = 0.480 \qquad \hat{p}_2 = \frac{78}{180} = 0.433p^1−p^2=0.480−0.433=0.047the point estimate of p1 minus p2\hat{p}_1 - \hat{p}_2 = 0.480 - 0.433 = 0.047 \qquad \textcolor{#838c91}{\text{the point estimate of p1 minus p2}}

The standard error of the difference uses the two sample proportions:

SEp^1−p^2=p^1(1−p^1)n1+p^2(1−p^2)n2the sheet’s SE for two populations=0.480(0.520)200+0.433(0.567)180=0.001248+0.001364=0.0511\begin{aligned}SE_{\hat{p}_1 - \hat{p}_2} &= \sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \frac{\hat{p}_2(1-\hat{p}_2)}{n_2}} && \textcolor{#838c91}{\text{the sheet's SE for two populations}} \\[6pt] &= \sqrt{\frac{0.480(0.520)}{200} + \frac{0.433(0.567)}{180}} \\[6pt] &= \sqrt{0.001248 + 0.001364} \\[6pt] &= 0.0511\end{aligned}

The margin of error is the critical value times the standard error. For 95% confidence, z∗=1.96z^{*} = 1.96:

MOE=1.96(0.0511)=0.100\text{MOE} = 1.96(0.0511) = 0.100

The interval is the point estimate plus and minus the margin of error:

(p^1−p^2)±z∗p^1(1−p^1)n1+p^2(1−p^2)n2(\hat{p}_1 - \hat{p}_2) \pm z^{*}\sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \frac{\hat{p}_2(1-\hat{p}_2)}{n_2}}0.047±0.100=(−0.053, 0.147)lower limit 0.047 - 0.100; upper limit 0.047 + 0.1000.047 \pm 0.100 = (-0.053,\ 0.147) \qquad \textcolor{#838c91}{\text{lower limit 0.047 - 0.100; upper limit 0.047 + 0.100}}

(The exact differences before rounding give −0.054-0.054 to 0.1470.147. Keep three or more decimals during the working.)

Part of the interval is negative and part positive. That is not an error. It means the plausible differences include "Town P is lower", "no difference" and "Town P is higher". Topic 3.11 reads this.

On a calculator, "2-PropZInt" gives the same result. Writing that alone does not show the work. Write the expression with your numbers, and name x1x_1, n1n_1, x2x_2, n2n_2 and the level if you quote it.

4A randomized experiment

The same procedure works for an experiment. The conditions change.

Example 2 (invented). A health app tests reminders. 165 volunteers are randomly assigned to two groups: 80 to receive daily reminders and 85 to receive none. After eight weeks, 64 of the 80 in the reminder group completed the program, and 48 of the 85 in the no-reminder group did.

Procedure: two-sample zz-interval for a difference between population proportions.

Parameter: p1−p2p_1 - p_2 = the difference between the proportion of volunteers like these who would complete the program with daily reminders and the proportion who would complete it with no reminders.

Conditions:

  • Randomization: the 165 volunteers were randomly assigned to the two treatments.
  • 10%: not needed, because the data come from a randomized experiment.
  • Normality: 6464, 80−64=1680 - 64 = 16, 4848 and 85−48=3785 - 48 = 37 are all at least 10.

Calculation at 90% confidence (z∗=1.645z^{*} = 1.645):

p^1−p^2=6480−4885=0.800−0.565=0.235\hat{p}_1 - \hat{p}_2 = \frac{64}{80} - \frac{48}{85} = 0.800 - 0.565 = 0.235SE=0.800(0.200)80+0.565(0.435)85=0.0699SE = \sqrt{\frac{0.800(0.200)}{80} + \frac{0.565(0.435)}{85}} = 0.0699MOE=1.645(0.0699)=0.115\text{MOE} = 1.645(0.0699) = 0.1150.235±0.115=(0.120, 0.350)0.235 \pm 0.115 = (0.120,\ 0.350)

Interpretation: we are 90% confident that the interval from 0.120 to 0.350 captures the difference between the proportion of volunteers like these who would complete the program with reminders and the proportion who would complete it without, with reminders minus no reminders.

This interval is entirely above 0. Topic 3.11 says what that supports. In an experiment with random assignment, a significant difference can be attributed to the treatment. The scope of the conclusion is volunteers like these. They were not randomly sampled from a larger population.

5How to organize the answer

A full interval question is scored on these parts, in order.

  1. The procedure, named completely.
  2. The parameter, defined as a difference with both populations.
  3. The conditions, each checked with numbers.
  4. The calculation, shown with the formula and the values.
  5. The interpretation, in context.

6Keeping the groups straight

Most errors in this topic are bookkeeping errors. Three habits prevent them.

  • Name the groups once, then keep the order. If group 1 is Town P, then p1p_1, n1n_1, p^1\hat{p}_1 are all Town P's. The interval is for p1−p2p_1 - p_2, "P minus Q".
  • Read the sign. A positive interval means group 1 is higher. A negative one means group 2 is higher.
  • Use no pooling here. An interval uses each sample's own p^\hat{p} in the standard error. Pooling is for a test, where H0H_0 says the proportions are equal (3.13).

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.