Educerie

Educerie · AP · Statistics

AP Statistics 3.3

Constructing a Confidence Interval for a Population Proportion

How can a sample of a few hundred people tell us something reliable about thousands, and how sure can we be?

What you will learn

  • Know that a one-sample z-interval for a population proportion is the procedure, with the parameter defined in context
  • Understand that the interval conditions use the observed counts n p-hat and n(1-p-hat), each at least 10
  • Know that the interval is p-hat plus or minus z star times the standard error, and that the margin of error is half its width
  • Understand how to find the smallest sample size for a stated margin of error, using 0.5 when there is no estimate

You must be able to

  1. Name the procedure and define the parameter in context
  2. Verify the three conditions with numbers
  3. Calculate the standard error, the margin of error and the confidence interval
  4. Find the critical value z star for a given confidence level
  5. Calculate the sample size needed for a stated margin of error, rounding up
  6. Write the interpretation of an interval in context

In the exam. Section I multiple choice: name the correct procedure, pick the condition that must be checked, find a margin of error, or choose the sample size that gives a stated margin of error. Section II: Question 3 can ask for a full interval from start to finish, with the procedure named, conditions checked, the interval calculated and then interpreted. Skills: identify the method (2.C), calculate (3.E), justify by verifying conditions (4.E).

1Name the procedure and define the parameter

You are estimating one proportion from one sample. So the procedure is a one-sample zz-interval for a population proportion. Write that name in full. "z-interval" or "confidence interval" alone is incomplete.

Then define the parameter. A complete definition has three pieces: the proportion, the response variable and the population.

Example (invented). A city transport office takes a random sample of 250 adults living in a city of 90,000 and asks each whether they ride public transit at least once a week. In the sample, 85 say yes.

Parameter: pp = the proportion of all adults in the city who ride public transit at least once a week.

This definition has all three pieces. "p is the proportion" does not.

2Verify the conditions

You need three conditions. Check each one against the facts of the question, with numbers.

  1. Randomization. The data come from a random sample. Say what the question says: "a random sample of 250 adults was taken."
  2. 10% condition. When sampling without replacement, the population is at least 10 times the sample size. Here 10×250=2,50010 \times 250 = 2{,}500, and the city has 90,000 adults, so the condition is met.
  3. Normality. The number of successes and the number of failures in the sample are both at least 10.
np^=85≥10observed successesn\hat{p} = 85 \ge 10 \qquad \textcolor{#838c91}{\text{observed successes}}n(1−p^)=250−85=165≥10observed failuresn(1-\hat{p}) = 250 - 85 = 165 \ge 10 \qquad \textcolor{#838c91}{\text{observed failures}}

For an interval you use the sample counts. The population proportion is unknown, so you cannot use it. This is different from a test, which uses the value in the null hypothesis (3.5).

Without the conditions, the zz-interval formula is not justified. A conditions check with no numbers earns little. The numbers prove you looked.

3The critical value

The critical value z∗z^{*} is the number of standard deviations you go out on each side of the estimate. It is chosen so that the middle C%C\% of a standard normal curve lies between −z∗-z^{*} and z∗z^{*}.

Figure 1. The standard normal curve. The critical value z* = 1.96 marks the middle 95% of the area; the tails of 2.5% each lie beyond -1.96 and 1.96 −3 −2 −1 0 1 2 3 z 1.96 −1.96 middle 95% 2.5% 2.5%
Figure 1 · The standard normal curve with the middle 95% shaded: z* = 1.96 leaves 2.5% in each tail

In Figure 1 the shaded middle holds 95% of the area. Each tail holds 2.5%. So z∗=1.96z^{*} = 1.96 is the value with an area of 0.975 to its left.

Confidence level90%95%99%
Critical value z∗z^{*}1.6451.9602.576

You can read them from the bottom row (∞\infty) of Table B, which lists z∗z^{*} for each confidence level, or from technology with an inverse normal. The higher the confidence, the larger z∗z^{*}, because the middle area is wider.

4The standard error and the margin of error

You do not know pp, so you cannot use p(1−p)/n\sqrt{p(1-p)/n}. You replace pp with p^\hat{p}. The result is the standard error:

SEp^=p^(1−p^)nan estimate of the standard deviation of the sampling distribution of p-hatSE_{\hat{p}} = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \qquad \textcolor{#838c91}{\text{an estimate of the standard deviation of the sampling distribution of p-hat}}

The standard error tells you the typical amount a sample proportion varies from the true population proportion.

The margin of error (MOE) is the critical value times the standard error.

MOE=z∗p^(1−p^)nhalf the width of the interval\text{MOE} = z^{*}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \qquad \textcolor{#838c91}{\text{half the width of the interval}}

The interval is the point estimate with the margin of error on each side:

p^±z∗p^(1−p^)npoint estimate plus or minus margin of error; the sheet writes statistic ± critical value (standard error)\hat{p} \pm z^{*}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \qquad \textcolor{#838c91}{\text{point estimate plus or minus margin of error; the sheet writes statistic ± critical value (standard error)}}

5A full worked interval

Build a 95% confidence interval for the transit proportion, using the data above.

p^=85250=0.34\hat{p} = \frac{85}{250} = 0.34SE=0.34(0.66)250=0.0300to four decimal placesSE = \sqrt{\frac{0.34(0.66)}{250}} = 0.0300 \qquad \textcolor{#838c91}{\text{to four decimal places}}MOE=1.96(0.0300)=0.0587\text{MOE} = 1.96(0.0300) = 0.05870.34±0.0587=(0.281, 0.399)lower limit 0.34 - 0.0587; upper limit 0.34 + 0.05870.34 \pm 0.0587 = (0.281,\ 0.399) \qquad \textcolor{#838c91}{\text{lower limit 0.34 - 0.0587; upper limit 0.34 + 0.0587}}

On a calculator, the "1-PropZInt" function gives the same interval. On the exam, you must still show the expression with your numbers. A bare "1-PropZInt" does not earn the calculation point unless its inputs (the count, nn and the level) are named.

Now finish with a sentence that interprets the interval (3.4 covers this in depth):

We are 95% confident that the interval from 0.281 to 0.399 captures the proportion of all adults in the city who ride public transit at least once a week.

Both the interval and the parameter are in the sentence, with the population and the variable.

6How the level changes the interval

Same data, different confidence levels. The standard error stays at 0.0300.

Levelz∗z^{*}Margin of errorInterval
90%1.6450.049(0.291, 0.389)
95%1.9600.059(0.281, 0.399)
99%2.5760.077(0.263, 0.417)

A higher level gives a larger z∗z^{*}, a larger margin of error and a wider interval. You pay for more confidence with less precision. Topic 3.4 develops this.

7Choosing the sample size

Planners often want a stated margin of error before they collect data. Solve the margin of error formula for nn:

n=(z∗MOE)2p^(1−p^)the formula is not on the sheet: rearrange the margin of error formulan = \left(\frac{z^{*}}{\text{MOE}}\right)^{2}\hat{p}(1-\hat{p}) \qquad \textcolor{#838c91}{\text{the formula is not on the sheet: rearrange the margin of error formula}}

Which p^\hat{p} do you use? Use a good guess if you have one, for example from an earlier study. If you have none, use p^=0.5\hat{p} = 0.5. That gives the largest possible p^(1−p^)\hat{p}(1-\hat{p}), 0.25, so the sample is big enough for any true proportion.

Example. The transport office wants a 95% interval with a margin of error of at most 0.03. It has no earlier estimate.

n=(1.960.03)2(0.5)(0.5)=1067.1n = \left(\frac{1.96}{0.03}\right)^{2}(0.5)(0.5) = 1067.1

Always round up. Rounding down gives a margin of error that is slightly too big. So the office needs n=1068n = 1068.

If the earlier sample estimate of 0.34 is trusted:

n=(1.960.03)2(0.34)(0.66)=957.8round up to 958n = \left(\frac{1.96}{0.03}\right)^{2}(0.34)(0.66) = 957.8 \qquad \textcolor{#838c91}{\text{round up to 958}}

Using the earlier estimate needs fewer people. That is the reward for having one.

8The whole answer in order

A full response to an interval question has five parts, in this order.

  1. Name the procedure: a one-sample zz-interval for a population proportion.
  2. Define the parameter in context.
  3. Verify the three conditions, with numbers.
  4. Calculate the interval, showing the expression.
  5. Interpret the interval in context.

If the question says "construct and interpret", all five appear. A missing part costs a mark of its own.

Practice questions

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