AP-STATS-9.1-9.3

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 bb you calculate is just one estimate of the true population slope β\beta. 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 tt-based confidence interval for β\beta, 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 tt-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 y=α+βx+εy = \alpha + \beta x + \varepsilon, where α\alpha is the true intercept, β\beta is the true slope, and ε\varepsilon is a random error term with mean 0 and constant standard deviation σ\sigma.

Your data produce the estimated line y^=a+bx\hat{y} = a + bx, where bb is the sample slope estimating β\beta and aa estimates α\alpha. Because bb changes from sample to sample, it has a sampling distribution. When conditions hold, that distribution is centered at β\beta with a standard deviation estimated by the standard error of the slope, SEbSE_b.

The key exam idea: a confidence interval for β\beta tells you a plausible range for the true rate of change of yy per unit of xx, not for any single prediction. Students often confuse the true slope β\beta (a fixed parameter) with bb (a statistic). The interval captures β\beta; the sample gives you bb. Interpreting the interval as being about bb 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:b±tSEbb \pm t^{*} \cdot SE_bThe point estimate is the sample slope bb. The critical value tt^{*} comes from a tt-distribution with df=n2df = n - 2 (you lose two degrees of freedom estimating both slope and intercept). The standard error SEbSE_b measures how much the slope varies from sample to sample.
PieceWhere it comes from
bb"Coef" column, predictor row
SEbSE_b"SE Coef" column, predictor row
dfdfn2n - 2
tt^{*}tt-table at chosen confidence level and dfdf
So for 95% confidence with n=20n = 20, use df=18df = 18 and look up t2.101t^{*} \approx 2.101. Multiply by SEbSE_b, then add and subtract from bb. A frequent mistake is using zz^{*} instead of tt^{*}, or using df=n1df = n - 1. Always subtract 2 for a single-predictor regression.

Reading Regression Output

The AP exam almost always hands you a computer printout rather than raw data. A typical table looks like this:
PredictorCoefSE CoefTP
Constant12.403.104.000.001
Hours2.850.624.600.000
The slope b=2.85b = 2.85 is the Coef for the predictor row (here, Hours). The standard error SEb=0.62SE_b = 0.62 is directly below in the SE Coef column. Do not grab the constant row values by mistake.

Below the table you usually see ss and R2R^2 (or R-Sq). Here ss estimates σ\sigma, the spread of points around the line, and R2R^2 is the proportion of variation in yy explained by xx. You do not need ss or R2R^2 to build the slope interval, but knowing what they mean helps you check conditions and interpret context. The sample size nn is needed for dfdf; if it is not printed directly, count the data points or use degrees of freedom given in an ANOVA section (residual df=n2df = n - 2).

LINER Conditions and Interpretation

Before trusting the interval, verify the LINER conditions:
LetterConditionHow to check
LLinearScatterplot shows linear form; residual plot has no curve
IIndependentData from random sample or independent observations; 10%10\% rule if sampling without replacement
NNormalResiduals roughly normal; histogram/dotplot not strongly skewed
EEqual varianceResidual plot shows constant scatter (no fan shape)
RRandomData come from a random sample or randomized experiment
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 β\beta, the mean change in yy for each one-unit increase in xx."

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 β\beta.

Common Exam Traps

Several predictable errors cost points on slope-CI questions. First, using the wrong degrees of freedom: it is n2n - 2, not n1n - 1. Second, interpreting the interval as being about individual predictions or about the sample slope rather than the population slope β\beta.

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: "yy-units per one xx-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 β\beta.
The true rate of change of the mean of yy per one-unit increase in xx in the model y=α+βx+εy = \alpha + \beta x + \varepsilon; the parameter the interval estimates.
Sample slope bb.
The slope of the least-squares line computed from data; the point estimate of β\beta.
Standard error of the slope SEbSE_b.
An estimate of the standard deviation of the sampling distribution of bb; read from the SE Coef column of regression output.
Degrees of freedom.
For single-predictor regression inference, df=n2df = n - 2, reflecting estimation of both slope and intercept.
LINER conditions.
Linear, Independent, Normal residuals, Equal variance, Random — the assumptions required for valid slope inference.
ss (residual standard deviation).
An estimate of σ\sigma, the typical size of residuals around the regression line, reported in the output.
tt^{*} critical value.
The multiplier from the tt-distribution with n2n-2 degrees of freedom corresponding to the chosen confidence level.

Worked example

A researcher records the number of study hours (xx) and exam scores (yy) 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 b=2.85b = 2.85 and the standard error is SEb=0.62SE_b = 0.62.

Step 2: Find degrees of freedom. With n=22n = 22, df=n2=20df = n - 2 = 20.

Step 3: Find the critical value. For 95% confidence at df=20df = 20, t2.086t^{*} \approx 2.086.

Step 4: Compute the margin of error. ME=tSEb=2.086×0.621.293ME = t^{*} \cdot SE_b = 2.086 \times 0.62 \approx 1.293.

Step 5: Build the interval. b±ME=2.85±1.293b \pm ME = 2.85 \pm 1.293, giving approximately (1.557, 4.143)(1.557,\ 4.143).

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 β\beta, 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 n=15n = 15 observations. Which degrees of freedom and interval structure are correct for a confidence interval for the slope?
  1. df=14df = 14, interval b±zSEbb \pm z^{*} \cdot SE_b
  2. df=13df = 13, interval b±tSEbb \pm t^{*} \cdot SE_b
  3. df=15df = 15, interval b±tSEbb \pm t^{*} \cdot SE_b
  4. df=13df = 13, interval b±zSEbb \pm z^{*} \cdot SE_b

Answer: df=13df = 13, interval b±tSEbb \pm t^{*} \cdot SE_b

For a single-predictor regression, df=n2=152=13df = n - 2 = 15 - 2 = 13, and slope inference uses the tt-distribution, not the normal zz-distribution, because σ\sigma is estimated. The structure is b±tSEbb \pm t^{*} \cdot SE_b.
Regression output for predicting plant height (yy, cm) from water amount (xx, 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 (0.0127, 0.0773)(0.0127,\ 0.0773); we are 90% confident this interval captures the true mean increase in height per additional mL of water.

With n=12n = 12, df=10df = 10 and t1.812t^{*} \approx 1.812 for 90% confidence. Margin of error =1.812×0.0180.0326= 1.812 \times 0.018 \approx 0.0326. Interval: 0.045±0.0326=(0.0124,0.0776)0.045 \pm 0.0326 = (0.0124, 0.0776) (small rounding differences are fine). Interpretation: we are 90% confident the interval captures the true slope β\beta, 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 β\beta, not the sample slope, and the sample slope is already known.

The sample slope b=2.1b = 2.1 is a computed statistic; it is not uncertain and does not need an interval. A confidence interval estimates the unknown population parameter β\beta. The correct statement: we are 95% confident the interval from 1.4 to 2.8 captures the true population slope, the mean change in yy per one-unit change in xx.

FAQ

Why do I use n2n - 2 degrees of freedom instead of n1n - 1?
In regression you estimate two parameters from the data — the slope and the intercept — so you lose two degrees of freedom. That leaves df=n2df = n - 2. This is different from a one-sample mean interval, which estimates only one parameter and uses df=n1df = n - 1.
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 SEbSE_b. The Coef column in the same row gives the sample slope bb.
What does it mean if 0 is inside my confidence interval for the slope?
If 0 is a plausible value for β\beta, you cannot conclude there is a linear relationship between xx and yy — 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.