U9.1 Confidence Interval for Slope
Learn to build and interpret a t-confidence interval for the slope of a population regression line, read standard error from output, and check LINER conditions.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on U9.1 Confidence Interval for Slope, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
When you fit a least-squares line to sample data, the slope you calculate is just one estimate of the true population slope . Collect a different sample and you would get a slightly different slope. Unit 9 is about quantifying that uncertainty. In this lesson you will construct a -based confidence interval for , pull the standard error of the slope straight from computer regression output, and verify the LINER conditions that make the whole procedure valid.
Mastering the slope CI now pays off directly in the next lessons, where the same output and conditions power the -test for slope. Get comfortable reading a regression table and you will breeze through both.
Mastering the slope CI now pays off directly in the next lessons, where the same output and conditions power the -test for slope. Get comfortable reading a regression table and you will breeze through both.
The Population Regression Model
AP Statistics distinguishes between the sample line you compute and the true relationship in the population. The population model is , where is the true intercept, is the true slope, and is a random error term with mean 0 and constant standard deviation .
Your data produce the estimated line , where is the sample slope estimating and estimates . Because changes from sample to sample, it has a sampling distribution. When conditions hold, that distribution is centered at with a standard deviation estimated by the standard error of the slope, .
The key exam idea: a confidence interval for tells you a plausible range for the true rate of change of per unit of , not for any single prediction. Students often confuse the true slope (a fixed parameter) with (a statistic). The interval captures ; the sample gives you . Interpreting the interval as being about is a common scoring error, so always phrase conclusions in terms of the population slope.
Your data produce the estimated line , where is the sample slope estimating and estimates . Because changes from sample to sample, it has a sampling distribution. When conditions hold, that distribution is centered at with a standard deviation estimated by the standard error of the slope, .
The key exam idea: a confidence interval for tells you a plausible range for the true rate of change of per unit of , not for any single prediction. Students often confuse the true slope (a fixed parameter) with (a statistic). The interval captures ; the sample gives you . Interpreting the interval as being about is a common scoring error, so always phrase conclusions in terms of the population slope.
Building the Interval
Every confidence interval in AP Stats follows the same skeleton: point estimate plus or minus a margin of error, where the margin is a critical value times a standard error. For the slope:The point estimate is the sample slope . The critical value comes from a -distribution with (you lose two degrees of freedom estimating both slope and intercept). The standard error measures how much the slope varies from sample to sample.
So for 95% confidence with , use and look up . Multiply by , then add and subtract from . A frequent mistake is using instead of , or using . Always subtract 2 for a single-predictor regression.
| Piece | Where it comes from |
|---|---|
| "Coef" column, predictor row | |
| "SE Coef" column, predictor row | |
| -table at chosen confidence level and |
Reading Regression Output
The AP exam almost always hands you a computer printout rather than raw data. A typical table looks like this:
The slope is the Coef for the predictor row (here, Hours). The standard error is directly below in the SE Coef column. Do not grab the constant row values by mistake.
Below the table you usually see and (or R-Sq). Here estimates , the spread of points around the line, and is the proportion of variation in explained by . You do not need or to build the slope interval, but knowing what they mean helps you check conditions and interpret context. The sample size is needed for ; if it is not printed directly, count the data points or use degrees of freedom given in an ANOVA section (residual ).
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 12.40 | 3.10 | 4.00 | 0.001 |
| Hours | 2.85 | 0.62 | 4.60 | 0.000 |
Below the table you usually see and (or R-Sq). Here estimates , the spread of points around the line, and is the proportion of variation in explained by . You do not need or to build the slope interval, but knowing what they mean helps you check conditions and interpret context. The sample size is needed for ; if it is not printed directly, count the data points or use degrees of freedom given in an ANOVA section (residual ).
LINER Conditions and Interpretation
Before trusting the interval, verify the LINER conditions:
Once conditions pass, state the interval and interpret it. Correct interpretation template: "We are 95% confident that the interval from ___ to ___ captures the true slope , the mean change in for each one-unit increase in ."
Also know the confidence-level interpretation: "If we repeated this sampling many times, about 95% of the intervals constructed this way would capture the true slope." A powerful move on the exam: if the entire interval is above 0 (or entirely below 0), you can conclude there is convincing evidence of a real linear relationship, since 0 is not a plausible value for .
| Letter | Condition | How to check |
|---|---|---|
| L | Linear | Scatterplot shows linear form; residual plot has no curve |
| I | Independent | Data from random sample or independent observations; rule if sampling without replacement |
| N | Normal | Residuals roughly normal; histogram/dotplot not strongly skewed |
| E | Equal variance | Residual plot shows constant scatter (no fan shape) |
| R | Random | Data come from a random sample or randomized experiment |
Also know the confidence-level interpretation: "If we repeated this sampling many times, about 95% of the intervals constructed this way would capture the true slope." A powerful move on the exam: if the entire interval is above 0 (or entirely below 0), you can conclude there is convincing evidence of a real linear relationship, since 0 is not a plausible value for .
Common Exam Traps
Several predictable errors cost points on slope-CI questions. First, using the wrong degrees of freedom: it is , not . Second, interpreting the interval as being about individual predictions or about the sample slope rather than the population slope .
Third, forgetting to check conditions or listing them without evidence. Saying "the data are normal" earns nothing; you must reference a graph or a stated random sample. Fourth, misreading output by taking the constant row's SE Coef instead of the predictor row's.
Finally, watch the units and direction. The slope is a rate: "-units per one -unit." When the interval lies entirely on one side of zero, say so and connect it to whether a linear relationship plausibly exists. When zero is inside the interval, you cannot rule out no linear relationship. Being crisp about all five of these points is usually the difference between full and partial credit.
Third, forgetting to check conditions or listing them without evidence. Saying "the data are normal" earns nothing; you must reference a graph or a stated random sample. Fourth, misreading output by taking the constant row's SE Coef instead of the predictor row's.
Finally, watch the units and direction. The slope is a rate: "-units per one -unit." When the interval lies entirely on one side of zero, say so and connect it to whether a linear relationship plausibly exists. When zero is inside the interval, you cannot rule out no linear relationship. Being crisp about all five of these points is usually the difference between full and partial credit.
Key terms
- Population slope .
- The true rate of change of the mean of per one-unit increase in in the model ; the parameter the interval estimates.
- Sample slope .
- The slope of the least-squares line computed from data; the point estimate of .
- Standard error of the slope .
- An estimate of the standard deviation of the sampling distribution of ; read from the SE Coef column of regression output.
- Degrees of freedom.
- For single-predictor regression inference, , reflecting estimation of both slope and intercept.
- LINER conditions.
- Linear, Independent, Normal residuals, Equal variance, Random — the assumptions required for valid slope inference.
- (residual standard deviation).
- An estimate of , the typical size of residuals around the regression line, reported in the output.
- critical value.
- The multiplier from the -distribution with degrees of freedom corresponding to the chosen confidence level.
Worked example
A researcher records the number of study hours () and exam scores () for a random sample of 22 students. Software gives the slope coefficient 2.85 with SE Coef 0.62, and a residual plot with no pattern and constant scatter. Construct and interpret a 95% confidence interval for the slope of the population regression line.
Step 1: Identify the pieces from the output. The sample slope is and the standard error is .
Step 2: Find degrees of freedom. With , .
Step 3: Find the critical value. For 95% confidence at , .
Step 4: Compute the margin of error. .
Step 5: Build the interval. , giving approximately .
Step 6: Check conditions. Random sample is stated (R and I). The residual plot shows no curve (L) and constant scatter (E), and no strong skew is noted (N). Conditions are met.
Step 7: Interpret. We are 95% confident that the interval from about 1.56 to 4.14 captures the true slope , the mean increase in exam score for each additional hour studied. Because the entire interval lies above 0, there is convincing evidence of a positive linear relationship between study hours and exam score.
Step 2: Find degrees of freedom. With , .
Step 3: Find the critical value. For 95% confidence at , .
Step 4: Compute the margin of error. .
Step 5: Build the interval. , giving approximately .
Step 6: Check conditions. Random sample is stated (R and I). The residual plot shows no curve (L) and constant scatter (E), and no strong skew is noted (N). Conditions are met.
Step 7: Interpret. We are 95% confident that the interval from about 1.56 to 4.14 captures the true slope , the mean increase in exam score for each additional hour studied. Because the entire interval lies above 0, there is convincing evidence of a positive linear relationship between study hours and exam score.
Practice questions
A regression of monthly sales on advertising spending uses observations. Which degrees of freedom and interval structure are correct for a confidence interval for the slope?
- , interval
- , interval
- , interval
- , interval
Answer: , interval
For a single-predictor regression, , and slope inference uses the -distribution, not the normal -distribution, because is estimated. The structure is .
Regression output for predicting plant height (, cm) from water amount (, mL) based on 12 plants reports a slope of 0.045 with SE Coef 0.018. Conditions are satisfied. Construct a 90% confidence interval for the slope and interpret it in context.
Answer: Approximately ; we are 90% confident this interval captures the true mean increase in height per additional mL of water.
With , and for 90% confidence. Margin of error . Interval: (small rounding differences are fine). Interpretation: we are 90% confident the interval captures the true slope , the mean change in plant height in cm per additional mL of water. Since the interval is entirely positive, there is evidence of a positive linear relationship.
A student concludes: "We are 95% confident that the sample slope 2.1 falls between 1.4 and 2.8." Explain what is wrong with this interpretation.
Answer: The interval estimates the population slope , not the sample slope, and the sample slope is already known.
The sample slope is a computed statistic; it is not uncertain and does not need an interval. A confidence interval estimates the unknown population parameter . The correct statement: we are 95% confident the interval from 1.4 to 2.8 captures the true population slope, the mean change in per one-unit change in .
FAQ
- Why do I use degrees of freedom instead of ?
- In regression you estimate two parameters from the data — the slope and the intercept — so you lose two degrees of freedom. That leaves . This is different from a one-sample mean interval, which estimates only one parameter and uses .
- Where exactly is the standard error of the slope in the output?
- Look at the predictor's row (not the Constant row) and read the SE Coef column. That value is . The Coef column in the same row gives the sample slope .
- What does it mean if 0 is inside my confidence interval for the slope?
- If 0 is a plausible value for , you cannot conclude there is a linear relationship between and — a slope of 0 means no linear association. If the entire interval is above or below 0, you have convincing evidence of a real (positive or negative) linear relationship.
- How do I check the Normal condition without raw data?
- On the exam you typically reference a provided residual plot, histogram, or dotplot of residuals and state it shows no strong skew or outliers. If only a stated random sample and clean residual plot are given, cite those. Never claim normality without pointing to evidence.
Learn this with a teacher, not a page
The Crimsora tutor teaches U9.1 Confidence Interval for Slope live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.