Confidence Intervals
Slope of Regression Models
Learn to construct and interpret confidence intervals for the true slope \(\beta_1\) of a population regression line using sample data.
What Is a Regression Slope?
In simple linear regression, we model the relationship between an explanatory variable \(x\) and a response variable \(y\) with the equation:
The slope \(b_1\) tells us the predicted change in \(y\) for each one-unit increase in \(x\). But \(b_1\) is only an estimate of the true population slope \(\beta_1\).
Sample vs. Population Parameters
Visualizing Sampling Variability
Each sample produces a slightly different \(b_1\). The dashed lines represent regression lines from different random samples, all estimating the same population slope.
The Confidence Interval Formula
Standard Error of \(b_1\)
Where \(s\) is the residual standard deviation (the standard deviation of the residuals), and the denominator captures the spread of the \(x\)-values.
Conditions: L-I-N-E-R
Before constructing a confidence interval for \(\beta_1\), you must verify these conditions:
CI vs. Hypothesis Test for \(\beta_1\)
| Confidence Interval | Hypothesis Test | |
|---|---|---|
| Goal | Estimate a range for \(\beta_1\) | Test if \(\beta_1 = 0\) |
| Formula | \(b_1 \pm t^* \cdot SE_{b_1}\) | \(t = \frac{b_1 - 0}{SE_{b_1}}\) |
| Key Output | Interval \((L, U)\) | \(p\)-value |
| Connection | If 0 is not in the CI → reject \(H_0\!: \beta_1 = 0\) | |
Reading Computer Output
On the AP exam, you will see a table like this. Here is how to find the values you need:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | 12.40 | 2.15 | 5.77 | 0.000 |
| Hours Studied | 2.34 | 0.45 | 5.20 | 0.000 |
How to Construct the Interval
Example 1: Study Hours and Exam Scores
A sample of \(n = 20\) students gives \(b_1 = 2.34\) and \(SE_{b_1} = 0.45\). Construct a 95% confidence interval for \(\beta_1\).
Visualizing the Interval
Example 2: Temperature and Ice Cream Sales
A researcher collects data on daily temperature (\(^{\circ}\text{F}\)) and ice cream sales (\$) for \(n = 30\) days. Computer output shows:
| Predictor | Coef | SE Coef |
|---|---|---|
| Constant | -15.20 | 8.73 |
| Temperature | 3.85 | 0.62 |
Example 3: Does 0 Fall in the Interval?
A study with \(n = 15\) participants finds \(b_1 = 0.82\) and \(SE_{b_1} = 0.55\). Build a 95% CI and determine if the linear relationship is significant.
Interpreting with Precision
A correct AP interpretation must include three elements:
Common Mistakes
What Affects Interval Width?
| Factor | Effect on Width | Why |
|---|---|---|
| Increase \(n\) | Narrower | Smaller \(SE_{b_1}\) and smaller \(t^*\) |
| Increase confidence level | Wider | Larger \(t^*\) critical value |
| More spread in \(x\) | Narrower | Larger \(\sum(x_i - \bar{x})^2\) → smaller \(SE_{b_1}\) |
| More scatter around line | Wider | Larger \(s\) → larger \(SE_{b_1}\) |
Question 1 of 5
A regression analysis with \(n = 25\) observations produces \(b_1 = 4.2\) and \(SE_{b_1} = 1.1\). What are the degrees of freedom for the \(t\)-distribution?
Question 2 of 5
A 95% confidence interval for \(\beta_1\) is \((1.8,\ 5.4)\). Which interpretation is correct?
Question 3 of 5
Computer output for a regression with \(n = 22\) shows \(b_1 = 3.50\) and \(SE_{b_1} = 0.80\). Using \(t^* = 2.086\) for 95% confidence, what is the confidence interval?
Question 4 of 5
A 90% confidence interval for \(\beta_1\) is \((-0.42,\ 1.86)\). What can we conclude about the significance of the linear relationship at \(\alpha = 0.10\)?
Question 5 of 5
Which of the following would decrease the width of a confidence interval for \(\beta_1\)?