AP Statistics Inference for the Slope of a Regression Line Lesson: Notes and Examples (Free PDF)

Inference for slope lesson – Maths PDFCover of the book AP Statistics Math Lessons (PDF)Download as a PDFThe AP Statistics math lessons bookPrintable PDFSee the book ›


This inference for 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.

Key takeaway: This lesson helps AP Statistics students build confidence intervals and carry out t tests for the slope of a least-squares regression line.

  • Topic: Inference for the Slope of a Regression Line (AP Statistics)
  • Content: One-page lesson with a definition, a worked example and key facts
  • 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
  • Answers: Explanations included
  • Format: Free printable PDF, US Letter, black and white

Key takeaway: A clear AP Statistics lesson on Inference for the Slope of a Regression Line, with definitions, rules and worked examples: what does inference about a slope tell us, what conditions are needed and how do you build a t interval for the slope. Read it before the practice worksheet; free to print or download as a PDF.

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.

This lesson helps AP Statistics students build confidence intervals and carry out t tests for the slope of a least-squares regression line. You learn to check the LINER conditions and to read computer output.

First, the lesson explains that the true slope beta describes the population relationship. Next, it lists the conditions: linear, independent, Normal residuals, equal variance, and random. Then it shows the interval and the test statistic, using n minus 2 degrees of freedom. After that, it teaches how to read each line of regression output. Finally, it connects an interval that contains zero to a lack of evidence for a linear relationship. Plan about 45 minutes.

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 for slope lesson

Key facts
  • 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\).

03691215Practice hours per week05101520Free throws made
Least-squares line: y-hat = 1.00 + 1.133x.

What conditions are needed?

LLinearrelationshipIIndependentobservationsNNormalresidualsEEqualvarianceRRandomsample
The LINER conditions for inference about a slope.
  • 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.
03691215Practice hours per week-3-2-10123Residual
No pattern in the residuals and roughly constant spread: a linear model is appropriate.

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\]

PredictorCoefSE CoefTPConstant1.0030.8591.170.270Hours1.1330.10410.890.0000S = 1.244R-Sq = 92.2%
Regression output: the Hours row gives the slope, its standard error, t, and the two-sided P.

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).

0.000.250.500.751.001.251.501.752.00Slope (free throws per hour)0.901.360
95% interval for the true slope: (0.901, 1.365); 0 is not included.

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.

-12-10-8-6-4-202468101210.8899-10.8899t
Two-sided p-value for the slope: 0.0000.

Inference for 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.

Common mistakes with this inference for slope lesson

  • Students use n minus 1 degrees of freedom. However, two parameters, the slope and the intercept, are estimated, so use n minus 2.
  • Students read the slope and the standard error from the wrong row of the output. Instead, use the row named for the explanatory variable, not the constant row.
  • Students conclude that a small p-value proves cause. Because regression shows association, avoid causal language unless the data came from an experiment.

How to study this chapter

  • First, check the LINER conditions with a residual plot and a graph of the residuals. Then write one sentence for each condition.
  • Also, label each number in the output with its meaning before you use it. Then the interval and the test are easy to build.
  • Parents can ask the student to explain, in plain words, what a slope of zero would mean for two variables.

Download the inference for slope lesson as a PDF with the button below and keep it with your notes.

More questions about inference for slope lesson

What is the null hypothesis in a test for the slope?

The null hypothesis is that the true slope equals zero, which means there is no linear relationship between the variables in the population. The alternative is that the slope is not zero, or is positive or negative if the question has a direction.

How do you find the correlation from computer output?

Take the square root of R squared, and give it the same sign as the slope. For an R squared of 0.64 and a positive slope, r equals 0.8. Remember that the output shows R squared as a percent.

How is the standard error of the slope used?

It measures how much sample slopes vary from sample to sample. It is divided into the slope to get the t statistic, and it is multiplied by t star to get the margin of error of the interval.

All AP Statistics chapters: AP Statistics math.

Voter.. post

Free printable PDF

AP Statistics Inference for the Slope of a Regression Line Lesson: Notes and Examples

US Letter77 KBPrints in black and white

Download PDF

More AP Statistics math

Lessons

See all

Worksheets

See all

Tests

See all

Quizzes

See all