How do you construct a confidence interval for the slope of a regression model?
Topic 9.2 Confidence Intervals for the Slope of a Regression Model: check the regression conditions and construct a t-interval for the population slope using the sample slope, its standard error, and n minus 2 degrees of freedom.
A focused answer to AP Statistics Topic 9.2, on building a t-interval for the population slope - checking the regression conditions, reading the slope and its standard error from computer output, and using n minus 2 degrees of freedom - with a full worked interval.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
The College Board (Topic 9.2) wants you to construct a confidence interval for the population slope : check the regression conditions, read the sample slope and its standard error (usually from computer output), and use the -distribution with degrees of freedom.
The interval and the standard error
The structure is the familiar "estimate critical value standard error." The estimate is the sample slope ; the standard error measures how much varies from sample to sample (it shrinks with more data, a wider spread of -values, and a tighter fit). On the exam, and are typically given in computer output, where the slope row lists the coefficient, its standard error, a t-statistic, and a P-value. You read and from that row. The degrees of freedom are , because estimating both the intercept and the slope uses up two.
The regression conditions (LINER)
You check these mainly from residual plots and a description of the data: a residual plot with no pattern supports linearity, roughly constant vertical spread supports equal variance, and a histogram or normal plot of residuals supports normality. State each condition and the evidence for it; "the residual plot shows no pattern and constant spread" addresses two conditions at once. These conditions earn the -model for the slope, just as the normal/large-sample conditions earned it for a mean.
Interpreting the interval
Interpret a slope interval in the units of the relationship: "We are confident that the true slope, the mean change in for each one-unit increase in , is between [low] and [high]." The decisive feature is whether the interval contains . A slope of means no linear relationship (changing does not change the predicted ). So if the interval excludes , there is evidence of a real linear association; if it contains , no relationship is plausible. This zero-check is the slope analogue of the difference-interval zero-check and previews the test of . As with all intervals, higher confidence widens it and a larger sample (or a wider spread of ) narrows it.
Try this
Q1. A regression with gives , . Find the degrees of freedom and a rough margin of error (use ). [2 points]
- Cue. ; margin of error , interval about .
Q2. What does it mean if a slope interval contains ? [1 point]
- Cue. A slope of (no linear relationship) is plausible, so there is not convincing evidence of a linear association between and .
Exam-style practice questions
Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AP 2018 (style)1 marksSection I (multiple choice). A regression of on uses data points. A t-interval for the slope uses degrees of freedom (A) (B) (C) (D) Show worked answer →
The correct answer is (C).
Inference for a regression slope uses (two degrees of freedom are spent estimating the intercept and slope).
(A) uses . (B) uses (the one-mean rule). (D) is incorrect. The slope uses .
AP 2022 (style)4 marksSection II (free response). Computer output for a regression of fuel use () on speed () from cars gives slope estimate with standard error . Residual plots show no pattern, roughly constant spread, and the residuals are approximately normal. (a) State the conditions and confirm they are met. (b) Construct a confidence interval for the population slope (use for ). (c) Interpret the interval in context.Show worked answer →
A 4-point slope interval.
(a) (1 point) Conditions (LINER): Linear (residual plot shows no curved pattern), Independent observations, Normal residuals (stated approximately normal), Equal variance (constant spread of residuals), Random sample. All stated as met.
(b) (2 points) , . Interval .
(c) (1 point) We are confident that the true slope, the mean change in fuel use per unit increase in speed, is between and .
Markers reward stating and checking the regression conditions, the interval with , and a slope interpretation in context.
Related dot points
- Topic 9.3 Justifying a Claim About the Slope of a Regression Model Based on a Confidence Interval: use a slope interval to judge whether a linear relationship exists and to evaluate claims about the size and direction of the slope.
A focused answer to AP Statistics Topic 9.3, on using a regression-slope confidence interval to judge whether a linear relationship exists and to assess claims about the size and direction of the slope, with worked justifications.
- Topic 9.4 Setting Up a Test for the Slope of a Regression Model: state the null and alternative hypotheses about the population slope, identify the significance level, and verify the regression conditions for a t-test.
A focused answer to AP Statistics Topic 9.4, on writing the null and alternative hypotheses for a regression slope (testing beta equals 0), choosing the significance level, and checking the regression conditions for a t-test.
- Topic 9.1 Introducing Statistics: Do Those Points Align?: explain why a sample regression slope varies from sample to sample, motivating inference about the true population slope of a linear model.
A focused answer to AP Statistics Topic 9.1, on why a sample regression slope is a statistic that varies across samples, motivating confidence intervals and tests about the true population slope of a linear model.
- Topic 2.8 Least Squares Regression: determine the least-squares regression line from summary statistics, and interpret the coefficient of determination r-squared and the standard deviation of the residuals.
A focused answer to AP Statistics Topic 2.8, on why the least-squares line minimizes squared residuals, computing it from means, standard deviations, and r, and interpreting r-squared and s, with full worked calculations.
- Topic 7.2 Constructing a Confidence Interval for a Population Mean: check the conditions and construct a one-sample t-interval for a population mean, using the t critical value, the standard error, and the correct degrees of freedom.
A focused answer to AP Statistics Topic 7.2, on building a one-sample t-interval for a population mean - checking conditions, finding the t critical value with n minus 1 degrees of freedom, the standard error, and the margin of error - with a full worked interval.
Sources & how we know this
- AP Statistics Course and Exam Description — College Board (2020)