Confidence interval for the slope

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Statistics (AP-aligned) › Inference for regression

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Confidence interval for the slope

Inference for regression.

Warm-up

Three quick questions from earlier lessons.

  1. A random sample of 25 has standard deviation s = 16. With t* = 2.064 (24 df, 95%), find the margin of error for the mean.
  2. A one-sample t interval uses a sample of 10. How many degrees of freedom?
  3. Why is a t critical value used for a confidence interval for a mean from a sample of 40?
    1. Because σ is estimated by s, which adds variability
    2. Because n is less than 1,000
    3. Because the data are skewed

Discover

b = 0.5, SE_b = 0.1, t* = 2. Which interval estimates β₁?

  1. (0.3, 0.7)
  2. (0.4, 0.6)

Key idea

An interval for the population slope.

b±t∗⋅SEbb \pm t^* \cdot SE_b, with t∗t^* from the t distribution with n−2n - 2 df. If the interval does not contain 0, there is convincing evidence of a linear relationship; interpret as the change in mean yy per unit increase in xx.

Worked example

n=30n = 30, b=0.42b = 0.42, SEb=0.10SE_b = 0.10, t∗=2.048t^* = 2.048.

ME=0.2048ME = 0.2048
2.048 × 0.10.
(0.215,0.625)(0.215, 0.625)
0.42 ± 0.2048.
Evidence of a positive slope
0 excluded.

Your turn, guided

Your turn: ME = 0.15. The width of the interval.

0.30.3
2 × 0.15.

Practice ★

  1. With 30 pairs, b = 2/10 and SE_b = 7/100. Using t* = 2.048 (28 df, 95%), find the upper end of the interval for β₁.
  2. With 30 pairs, b = 4/10 and SE_b = 1/100. Using t* = 2.048 (28 df, 95%), find the upper end of the interval for β₁.
  1. SE_b = 1/100 and t* = 2.048. Find the width of the 95% confidence interval for β₁.

Watch out!

Practice ★★

  1. A 95% interval for the slope β₁ is (0.4, 0.8). What does it suggest?
    1. Convincing evidence of a positive linear relationship: 0 is not in the interval
    2. No evidence of a relationship
    3. x causes y to increase

Exit ticket

Three questions to check you have got it.

  1. With 30 pairs, b = 2/10 and SE_b = 7/100. Using t* = 2.048 (28 df, 95%), find the upper end of the interval for β₁.
  2. With 30 pairs, b = 4/10 and SE_b = 1/100. Using t* = 2.048 (28 df, 95%), find the upper end of the interval for β₁.
  3. With 30 pairs, b = 3/10 and SE_b = 6/100. Using t* = 2.048 (28 df, 95%), find the upper end of the interval for β₁.

Summary card

Interval for β₁

b±t∗SEbb \pm t^* SE_b (df n−2n - 2); 0 outside → evidence of a relationship.

Watch out: association, not causation.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. A 95% confidence interval for the slope is (0.2, 0.5). What is the point estimate b?
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits