AP Statistics Inference for the Slope of a Regression Line Lesson (Free PDF)
This inference slope lesson for AP Statistics covers inference for the slope of a regression line (Common Core AP STAT 9.1, AP STAT 9.2, AP STAT 9.3, AP STAT 9.4, AP STAT 9.5, AP STAT 9.6, HSS-ID.B.6), with a free PDF to print.
Inference about the slope of a regression line estimates or tests the true slope beta. A t interval uses b plus or minus t* SE_b with df = n – 2, and the test of H0: beta = 0 uses t = b/SE_b. Check the LINER conditions. Computer output gives b, SE_b, t, and the two-sided p-value.
AP Statistics · Common Core State Standards: AP STAT 9.1, AP STAT 9.2, AP STAT 9.3, AP STAT 9.4, AP STAT 9.5, AP STAT 9.6, HSS-ID.B.6
Key facts in this inference slope lesson
- Parameter: true slope beta; statistic: sample slope b; df = n – 2.
- Interval: b +/- t* SE_b; test: t = (b – 0)/SE_b for H0: beta = 0.
- LINER: Linear, Independent, Normal residuals, Equal variance, Random.
- Computer output gives b, SE_b, t, and the two-sided P in the row for the explanatory variable.
- If the interval contains 0, there is no convincing evidence of a linear relationship.
What does inference about a slope tell us?
The least-squares line from a sample, \(\hat{y}=a+bx\), estimates the true population line \(\mu_y=\alpha+\beta x\). The sample slope \(b\) varies from sample to sample, so we use it to make inferences about the true slope \(\beta\): how much the mean response changes per one-unit increase in \(x\).
What conditions are needed?
- Linear: the scatterplot is roughly linear and the residual plot has no pattern.
- Independent: observations are independent (10% condition when sampling).
- Normal: residuals are approximately normal (check a histogram or dotplot of the residuals).
- Equal variance: the spread of the residuals is about the same for all \(x\).
- Random: data come from a random sample or randomized experiment.
How do you build a t interval for the slope?
The statistic \(b\) has standard error \(SE_b=\frac{s}{s_x\sqrt{n-1}}\), which computer output reports. The interval uses \(df=n-2\):
\[b\pm t^{*}\,SE_b\]
From the output, \(b=1.133\) and \(SE_b=0.104\). With \(df=12-2=10\), \(t^{*}=2.228\), so \(ME=2.228(0.104)=0.232\) and the 95% interval is (0.901, 1.365).
We are 95% confident that the true slope is between 0.901 and 1.365: each extra hour of weekly practice is associated with an increase of between 0.90 and 1.36 in the mean number of free throws made.
How do you test whether there is a linear relationship?
The usual test is \(H_0:\beta=0\) against \(H_a:\beta\neq 0\) (no linear relationship versus a linear relationship). The test statistic is:
\[t=\frac{b-0}{SE_b},\qquad df=n-2\]
Here \(t=\frac{1.133}{0.104}=10.89\), and the two-sided p-value in the output is \(0.0000\). Because this is far below 0.05, we reject \(H_0\): there is convincing evidence of a linear relationship between weekly practice hours and free throws made. The output’s P value is already two-sided; halve it for a one-sided alternative in the correct direction.
Inference slope lesson: questions and answers
What does the true slope beta represent?
It is the change in the mean response for each one-unit increase in the explanatory variable in the whole population. The sample slope b only estimates it.
Why are the degrees of freedom n – 2?
Two parameters, the slope and the intercept, are estimated from the data before estimating the variation about the line. That leaves n – 2 degrees of freedom.
How do I read the P value in computer output?
The P value in the explanatory variable’s row is two-sided for H0: beta = 0. For a one-sided alternative in the direction of the data, divide it by 2.
What if the residual plot shows a curved pattern?
Then the Linear condition fails and the inference is not valid. Try a transformation of the variables or a different model before doing a t procedure.
What does a confidence interval for beta that includes 0 mean?
It means a slope of 0 is plausible, so there is not convincing evidence of a linear relationship between the variables.
How to use this inference slope lesson
Read the definitions first, then follow the worked method line by line and redo the example on paper without looking. When every step makes sense, move on to the worksheet, then check yourself with the quiz.
Download the inference slope lesson as a PDF with the button below and keep it with your notes.
Download the inference slope lesson as a PDF with the button below and keep it with your notes.
All AP Statistics chapters: AP Statistics math.
More AP Statistics math
Lessons
See allWorksheets
See allConditional Probability and Independence Worksheet
Least-Squares Regression and Residuals Worksheet
Five-Number Summary, Boxplots and Comparing Distributions Worksheet
Binomial and Geometric Distributions Worksheet
Inference for the Difference of Two Proportions Worksheet
Inference for the Slope of a Regression Line Worksheet
Tests
See allExperimental Design and Random Assignment Test with Point Values
Random Variables, Expected Value and Combining Variables Test with Point Values
Sampling Methods and Bias in Surveys Test with Point Values
Significance Tests for a Proportion Test with Point Values
Inference for the Difference of Two Proportions Test with Point Values
Inference for the Difference of Two Means Test with Point Values

























