Inference for
Regression Slope
Learn to perform hypothesis tests and build confidence intervals for the true population slope \(\beta_1\) using t-procedures.
What Is a Regression Slope?
When we fit a least-squares regression line \(\hat{y} = b_0 + b_1 x\), the slope \(b_1\) tells us the predicted change in \(y\) for each one-unit increase in \(x\). But \(b_1\) is computed from sample data: it is an estimate of the true population slope \(\beta_1\).
The Population Linear Model
We assume the population follows a linear model with normally distributed errors:
Conditions: L.I.N.E.
Before performing inference on \(\beta_1\), four conditions must be checked:
Sampling Distribution of \(b_1\)
When the LINE conditions hold, the sample slope \(b_1\) follows a t-distribution:
The t-Test for \(\beta_1\)
The most common test asks: Is there a significant linear relationship? We test whether the true slope differs from zero.
Confidence Interval for \(\beta_1\)
A confidence interval gives a range of plausible values for the true slope \(\beta_1\):
Visualizing the t-Test
t-Test vs Confidence Interval
| t-Test | Confidence Interval | |
|---|---|---|
| Purpose | Is there evidence \(\beta_1 \neq 0\)? | What values of \(\beta_1\) are plausible? |
| Output | p-value, reject/fail to reject | Interval \([L,\, U]\) |
| Formula | \(t = b_1 / SE_{b_1}\) | \(b_1 \pm t^* \cdot SE_{b_1}\) |
| Degrees of freedom | \(n - 2\) | \(n - 2\) |
| Agreement | If CI excludes 0, then the t-test rejects \(H_0\) at the matching \(\alpha\). | |
Reading Computer Output
On the AP exam and in practice, you will read regression output from software. Here is a typical table:
| Predictor | Coef | SE Coef | t | p |
|---|---|---|---|---|
| Constant | 12.40 | 3.15 | 3.94 | 0.001 |
| Hours | 2.80 | 0.65 | 4.31 | 0.0004 |
How to Perform Inference
Example 1: Study Hours and Exam Scores
A random sample of \(n = 20\) students yields \(b_1 = 2.80\), \(SE_{b_1} = 0.65\). Test whether study hours are a significant predictor of exam score at \(\alpha = 0.05\).
Example 2: 95% CI for \(\beta_1\)
Using the same data (\(b_1 = 2.80\), \(SE_{b_1} = 0.65\), \(df = 18\)), construct a 95% confidence interval for \(\beta_1\).
Example 3: One-Sided Test
A researcher with \(n = 30\) data points gets \(b_1 = -0.42\) and \(SE_{b_1} = 0.20\). She expects a negative relationship. Test at \(\alpha = 0.01\).
Common Mistakes
Summary of Key Formulas
| Quantity | Formula | Notes |
|---|---|---|
| Test statistic | \(t = \dfrac{b_1 - \beta_{1,0}}{SE_{b_1}}\) | Usually \(\beta_{1,0} = 0\) |
| CI for \(\beta_1\) | \(b_1 \pm t^* \cdot SE_{b_1}\) | \(t^*\) from \(t_{n-2}\) |
| Degrees of freedom | \(df = n - 2\) | Two parameters estimated |
| Standard error | \(SE_{b_1} = \dfrac{s}{\sqrt{\sum(x_i - \bar{x})^2}}\) | Given in output |
| Conditions | L.I.N.E. | Check residual plots |
Question 1 of 5
A regression analysis with \(n = 25\) observations yields \(b_1 = 3.5\) and \(SE_{b_1} = 1.0\). What is the t-statistic for testing \(H_0\!: \beta_1 = 0\)?
Question 2 of 5
In a regression t-test with \(n = 15\) observations, what are the degrees of freedom?
Question 3 of 5
A 95% confidence interval for \(\beta_1\) is \((0.8,\; 4.2)\). Which conclusion is most appropriate?
Question 4 of 5
Computer output gives a two-sided p-value of 0.036 for the slope. A researcher tests \(H_a\!: \beta_1 > 0\) and \(b_1 > 0\). What is the one-sided p-value?
Question 5 of 5
Which of the following is not one of the LINE conditions required for inference on the regression slope?