Unit 9: Inference for Quantitative Data: Slopes
Confidence Interval for Slope
Constructing a confidence interval for the true slope of a linear relationship.
How Confident Can We Be in a Sample's Slope?
Unit 2's regression of exam score on hours studied, from a sample of just 6 students, gave a slope of about 5.886 points per hour. Before reading on: if a different sample of 6 students had been collected instead, would you expect its regression line to have exactly the same slope — or some other, nearby value?
Definition — Confidence Interval for a Population Slope
Worked Example — Constructing a Confidence Interval for the Slope
Interpretation: 'We are 95% confident that the true slope of the relationship between hours studied and exam score, for the population this sample represents, is between about 4.75 and 7.02 points per hour.' Since this interval doesn't come close to including 0, it suggests a genuine, non-zero relationship exists in the population — not just an artifact of this particular sample of 6 students.
Tip
Common Mistakes
Using df = n−1 for a slope's confidence interval, as with a one-sample mean.
Regression estimates two quantities from the data — the slope and the intercept — so two degrees of freedom are used up, leaving df = n−2, not n−1.
Skipping the LINER conditions because the regression itself already produced a high r².
A strong r² describes how well the line fits this sample — it doesn't by itself confirm the residuals are Normally distributed or equally variable across x, both of which the inference procedure still requires checking (typically via a residual plot).
Key Takeaways
- A confidence interval for a slope uses b₁ ± t*·SE(b₁), with df = n−2.
- An interval that excludes 0 suggests a genuine population relationship, not just sample-specific noise.
- The LINER conditions (linearity, independence, Normal residuals, equal variability, random sample) must be checked before trusting the inference.
Summary
The final lesson tests this same slope directly against the specific claim of no relationship at all.
Sign in to track your progress and mark this lesson complete.
Track your progress