Educerie · AP · Statistics
AP Statistics 4.2
Constructing a Confidence Interval for a Population Mean or Population Mean Difference
How can a sample of numerical measurements tell us about the mean of a whole population, and how sure can we be?
What you will learn
- Know that t-distributions are symmetric and bell-shaped with heavier tails, set by degrees of freedom, and are used when sigma is unknown.
- Understand how to choose a one-sample t-interval for a mean or for a mean difference in matched pairs.
- Know the randomization, 10% and sample data conditions, and that for pairs the differences are checked.
- Understand how to calculate the standard error, margin of error and interval.
You must be able to
- Name the procedure and define the parameter in context, with the order of subtraction for a difference.
- Verify the three conditions using the numbers and graph described in the question.
- Calculate the standard error, the margin of error and the interval with t* from Table B or technology.
- Convert matched pairs to one sample of differences before calculating.
- Describe how a t-distribution differs from the standard normal curve.
- Explain why t* is used and not z* when sigma is unknown.
In the exam. Section I multiple choice: pick the right procedure for a described study, find a margin of error or an endpoint, or choose the condition that a boxplot or a sample size checks. In Section II inference questions (Q3, and part of Q4) you name the procedure, define the parameter, verify the conditions with numbers, and calculate the interval. Common slips are naming a "t-interval" with no parameter, using instead of , and treating a matched-pairs design as two separate samples.
1Why we need a t-distribution
The ideal standardized statistic for a mean is . It needs .
So we put in its place. The statistic becomes
Now two things vary from sample to sample: and . The extra variation makes wander further from 0 than would. Its distribution has more area in the tails than the normal curve. That is the t-distribution (also called Student's t).
2What a t-distribution looks like
All t-distributions share these features:
- Symmetric and bell-shaped, centered at 0, like the standard normal curve.
- Wider tails and a lower peak than the standard normal curve.
- A family, one curve for each number of degrees of freedom (df). For one sample, df is .
- Closer to normal as df grows. With small df the peak is lower and the tails are fat. With large df the curve is almost the standard normal curve (mean 0, standard deviation 1).
Read Figure 1 in this order:
- The dashed gray curve is the standard normal curve.
- The clay curve, df = 2, is the lowest at the center and the highest far out in the tails.
- The teal curve, df = 10, sits between the two. With df = 10 it is already close to the normal curve.
Fatter tails mean you must go further from 0 to capture the middle 95%. That is why is bigger than :
| df | 4 | 10 | 19 | 30 | standard normal |
|---|---|---|---|---|---|
| for 95% confidence | 2.776 | 2.228 | 2.093 | 2.042 | 1.960 |
A larger is the price of not knowing . It makes the interval wider, so it is honest about the extra uncertainty.
3Choosing the procedure and naming the parameter
For a numerical variable, there are two ways one sample can arise. Decide which before you calculate anything.
- One sample. One group, one measurement each. The procedure is a one-sample t-interval for a population mean.
- Matched pairs. Two measurements on each unit (before and after, left and right), or two units paired up. You subtract within each pair to get one sample of differences. The procedure is a one-sample t-interval for a population mean difference.
Both use the same formula. In the matched-pairs case, is the mean difference , is the standard deviation of the differences, and is the number of pairs.
The parameter must be named in context. Write the population mean or population mean difference, the response variable, and the population. For a difference, state the order of subtraction.
Example: " = the mean battery life, in hours, of all phones in this batch."
Example: " = the population mean difference, hill time with old tires minus hill time with new tires, for all club cyclists."
Use for the parameter. Never write here: it is a statistic.
4The conditions
A one-sample t-interval needs three conditions. Verify each with the numbers in the question.
- Randomization. The data came from a random sample, or a randomized experiment.
- The 10% condition. When you sample without replacement, . It is not needed when the data come from a randomized experiment.
- The sample data condition. One of these holds:
- the population is stated to be approximately normal; or
- ; or
- and the sample data show no strong skewness and no outliers.
For matched pairs, the third condition is about the differences: at least 30 of them, or a sample of differences with no strong skewness and no outliers. A graph of the original two columns does not check it.
How to check the third condition when : look at a dotplot, histogram or boxplot of the sample. Say what you see. "The dotplot of the 20 battery lives is roughly symmetric with no outliers, so the sample data condition is met" earns the mark. "The data are normal" does not. A graph from a small sample cannot prove a population is normal. It can only show there is no strong skew and no outliers.
5The calculation
The formula sheet gives the pattern "statistic (critical value)(standard error of the statistic)". For one mean:
The pieces:
- Point estimate: (or for differences).
- Standard error: .
- Critical value: is the value with the central of a t-distribution between and , with df . Find it in Table B (use the confidence level printed under the table), or with technology.
- Margin of error: .
In the exam, name the procedure and show , with its df, and , then the endpoints. Calculator output such as "TInterval" with only the endpoints earns little on its own.
6Worked example: one sample
A phone maker takes a random sample of 20 handsets from a very large batch and times each on a standard battery test. The mean is hours and the standard deviation is hours. A dotplot of the 20 times is roughly symmetric with no outliers.
Question. Construct and name a 95% confidence interval for the mean battery life of all phones in the batch.
Procedure. One-sample t-interval for a population mean.
Parameter. = the mean battery life, in hours, of all phones in this batch.
Conditions.
- Randomization: the phones are a random sample.
- 10%: the batch is far larger than 10 times 20, which is 200.
- Sample data: , and the dotplot is roughly symmetric with no outliers.
Calculation. Here df and .
The interval is 13.22 to 15.18 hours. Topic 4.3 covers the interpretation.
Check the effect of the t-distribution. If you wrongly used , the margin of error would be 0.920 and the interval (13.28, 15.12). It is narrower, so it claims more confidence than the data give.
7Worked example: matched pairs
A cycling club times 9 riders up the same hill on old tires and again on new tires, in a random order. Times are in seconds.
| Rider | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| Old tires | 212 | 198 | 225 | 205 | 219 | 231 | 208 | 214 | 222 |
| New tires | 205 | 196 | 218 | 203 | 210 | 224 | 209 | 206 | 213 |
| Difference (old minus new) | 7 | 2 | 7 | 2 | 9 | 7 | -1 | 8 | 9 |
The two times on one rider are not independent, since a fast rider is fast on both tires. So you cannot treat them as two samples. You work with the 9 differences.
Procedure. One-sample t-interval for a population mean difference.
Parameter. = the mean difference in hill time, old tires minus new tires, in seconds, for all riders in the club.
Conditions.
- Randomization: the 9 riders are a random sample of the club's riders, and the order of the two tire sets was randomized for each rider.
- 10%: the club has more than 10 times 9, which is 90, riders.
- Sample data: there are differences. The differences range from -1 to 9, with no outlier and no strong skew.
Calculation. The differences give and , with df and .
The interval is (2.78, 8.33) seconds. The numbers are positive because we subtracted new from old: a positive difference means new tires were faster. Reversing the order would give (-8.33, -2.78), so the order must be stated.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.