Back to Inference for Quantitative Data: Slopes

Lesson PreviewLesson 5 of 5 in this unit

9.5 Carrying Out a Test for the Slope of a Regression Model

Part of Inference for Quantitative Data: Slopes in AP® Statistics. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.

Complete Slope t-Test from Computer Output

Problem: A researcher studies the relationship between hours of sleep (x{x}) and reaction time (y{y}, in ms) for n=20{n = 20} subjects. Computer output shows:

b = -12.3, SE_b = 2.87, T = -4.29, P = 0.000, n = 20

Test whether there is a negative linear relationship at α=0.05{\alpha = 0.05}.

P: β{\beta} = true slope of the population regression line relating sleep hours to reaction time

H: H0:β=0{H_0: \beta = 0} vs. Ha:β<0{H_a: \beta < 0} (hypothesize less sleep = higher reaction time)

A (LINE):

  • L: Scatterplot appears linear ✓
  • I: Subjects are independent ✓
  • N: Normal probability plot of residuals is approximately linear ✓
  • E: Residual plot shows consistent spread ✓

N: t-test for the slope, df=20−2=18{df = 20 - 2 = 18}

T: t=−12.3/2.87≈−4.29{t = -12.3/2.87 \approx -4.29} (from output)

O: p=P(t18≤−4.29)≈0.000/2≈0.000{p = P(t_{18} \leq -4.29) \approx 0.000/2 \approx 0.000} (left-tailed)

M/S: Since p<0.05{p < 0.05}, reject H0{H_0}. We have convincing evidence of a negative linear relationship between sleep hours and reaction time.

Continue the full lesson in Stellar

Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Statistics.