A point estimate such as is our best single guess, but it is almost never exactly right. A confidence interval gives a range of values instead, built so that the method captures the true proportion a known percent of the time. This topic is about building one correctly; the next topic is about what it lets you say.
The idea: go out a fixed distance on each side
From the last topic, when the conditions hold, is approximately normal with mean and standard deviation . In 95% of random samples, lands within 1.96 standard deviations of . Turn that sentence around: in 95% of samples, is within 1.96 standard deviations of . So if we go 1.96 standard deviations out on each side of whatever we get, 95% of the intervals we build that way will reach across .
Every confidence interval in this course has the same shape, which is on the reference sheet:
statistic ± (critical value)(standard error of the statistic)
For one proportion that is
The three pieces
- The point estimate is the center of the interval.
- The standard error,
. The true standard deviation needs , which we do not know, so we substitute . A standard deviation estimated from the data is called a standard error. - The critical value comes from the confidence level . It is the value with an area of between and under the standard normal curve, so each tail holds .
The product is the margin of error, : how far the interval reaches on each side of .
| Confidence level | Area in each tail | Area below | |
|---|---|---|---|
| 90% | 0.05 | 0.95 | 1.645 |
| 95% | 0.025 | 0.975 | 1.960 |
| 98% | 0.01 | 0.99 | 2.326 |
| 99% | 0.005 | 0.995 | 2.576 |
Find with an inverse normal command using the area below it, or from the bottom row of Table B. A common slip is to use 0.90 as the area for a 90% interval: that leaves all 10% in one tail.
Conditions for inference
Check three conditions, in words and with numbers, before you calculate.
- Random: the data come from a random sample (or a randomized experiment). Quote the problem: "a random sample of 400 students."
- 10%: when sampling without replacement, is at most 10% of the population: "400 is less than 10% of the 28,000 students."
- Large counts: at least 10 successes and 10 failures in the sample: and . For an interval we use the sample's counts, because is unknown.
The procedure's full name is the one-sample z interval for a proportion (some books say one-proportion z interval). Name it on the exam; "z interval" alone is incomplete.
Worked example. A random sample of 400 of a university's 28,000 students finds that 248 regularly skip breakfast. Construct a 95% confidence interval for the proportion of all students at the university who regularly skip breakfast.
Procedure. One-sample z interval for a proportion, where is the true proportion of all students at the university who regularly skip breakfast.
Conditions. Random: a random sample of 400 students. 10%: 400 is less than 10% of 28,000 (2,800). Large counts: 248 skip and 152 do not, both at least 10.
Calculate. .
Answer. The interval runs from 0.572 to 0.668. Technology (a one-proportion z interval) gives the same. Interpreted: we are 95% confident that the interval from 0.572 to 0.668 captures the true proportion of all students at the university who regularly skip breakfast.
Type an interval as "from 0.572 to 0.668" or "(0.572, 0.668)". Never "0.572-0.668", which reads as a subtraction.
What changes the margin of error
- Sample size: sits under a square root in the denominator. Four times the sample size halves the margin of error.
- Confidence level: more confidence needs a larger , so the interval gets longer. A 99% interval reaches farther than a 95% interval from the same data.
- Population size: it does not appear, as long as the 10% condition holds.
To plan a sample size, solve for : . With no earlier estimate, use , which gives the largest and so is safe. Always round a sample size up.