Testing the slope and reading output

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

Testing the slope and reading output

Inference for regression.

Warm-up

Three quick questions from earlier lessons.

  1. Computer output gives slope b = 8/10 with standard error SE_b = 3/100. Find the t statistic for H₀: β₁ = 0.
  2. A regression uses 20 data pairs. How many degrees of freedom does the t test for the slope have?
  3. In regression output, the row for x reads: Coef 0.97, SE Coef 0.08, and a t value. Which number is the slope's standard error?
    1. The SE Coef in the x row
    2. The Coef in the x row
    3. The value s (the SD of the residuals)

Discover

If x is no help in predicting y, what is the population slope?

  1. 0
  2. 1

Key idea

Test whether the slope is zero.

H0:β1=0H_0: \beta_1 = 0 (no linear relationship), Ha:β1≠0H_a: \beta_1 \ne 0 (or one-sided). Use t=b/SEbt = b/SE_b, df =n−2= n - 2. A small P-value is convincing evidence of a linear relationship in the population. Read bb, SEbSE_b, tt and P from the output.

Worked example

Output: b = 0.30, t = 6.0, P < 0.001.

SEb=0.30/6=0.05SE_b = 0.30/6 = 0.05
t = b/SE_b.
Reject H₀
Very small P.
Convincing evidence of a linear relationship
In context.

Your turn, guided

Your turn: b = 0.8 and t = 4. Find SEbSE_b.

0.20.2
0.8/4.

Practice ★

  1. To test whether x is useful for predicting y (from 51 pairs), what is the null hypothesis?
    1. H₀: β₁ = 0, no linear relationship in the population
    2. H₀: b = 0
    3. H₀: r = 1
  1. Output shows slope b = 6/10 and t = 9 for H₀: β₁ = 0. Find SE_b.
  2. Output shows slope b = 3/10 and t = 9 for H₀: β₁ = 0. Find SE_b.

Watch out!

Practice ★★

  1. An observational study tests H₀: β₁ = 0 for hours of sleep (x) and test score (y). The P-value is 0.006. What can you conclude?
    1. Convincing evidence of a linear association between sleep and scores in the population sampled
    2. More sleep causes higher scores
    3. The correlation must be close to 1

Exit ticket

Three questions to check you have got it.

  1. Output shows slope b = 6/10 and t = 9 for H₀: β₁ = 0. Find SE_b.
  2. Output shows slope b = 3/10 and t = 9 for H₀: β₁ = 0. Find SE_b.
  3. Output shows slope b = 3/10 and t = 6 for H₀: β₁ = 0. Find SE_b.

Summary card

Testing the slope

H₀: β₁ = 0; t=b/SEbt = b/SE_b, df =n−2= n - 2.

Watch out: a significant slope is not proof of causation.

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

Challenge ★★★

  1. The t statistic for H₀: β₁ = 0 leaves an area of 0.008 in one tail. Find the two-sided P-value.
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