This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
7m left·0%
Reading Time: 7 min
Last Updated: March 31, 2026
Main Ideas: 5
Reading Time: 7 min
Last Updated: March 31, 2026
Main Ideas: 5

Topic 9.5 Notes – Carrying Out a Test for the Slope of a Regression Model

Read aloud
You’ve already set up hypotheses in 9.4. Now you calculate the test statistic, find the p-value using a t-distribution, and use it to answer the research question about whether a linear relationship exists in the population.

1. The Slope Test in Linear Regression

In simple linear regression, we model the relationship between an explanatory variable xx and a response variable yy:

y=β0+β1x+ε y = \beta_0 + \beta_1 x + \varepsilon

  • β1 \beta_1 = true population slope
  • b b = sample slope from the least-squares regression line (estimate of β1 \beta_1 )

A test for the slope asks whether the true slope β1 \beta_1 differs from some value (almost always 0).

Most common hypotheses:

  • H₀: β1=0 \beta_1 = 0
    (No linear relationship in the population.)
  • Hₐ:
    • β1≠0 \beta_1 \ne 0 (two-sided)
    • β1>0 \beta_1 > 0
    • β1<0 \beta_1 < 0

If β1=0 \beta_1 = 0 , changes in xx do not predict changes in the mean of yy.

When conditions are met and H0H_0 is true, the slope statistic follows a t-distribution. That’s the key idea of this whole topic.

2. Conditions and the Null Distribution of the Slope

Before doing any calculations, regression inference requires the LINE conditions:

  • Linear: The relationship looks linear (check scatterplot and residual plot).
  • Independent: Observations are independent (random sample or random assignment; 10% condition if sampling).
  • Normal: For each value of xx, the response is normally distributed (or sample is large).
  • Equal variance: Residuals show constant spread (no funnel shape).

Here’s what violations look like in a residual plot. In the top two graphs the residuals stay centered on 0, but their spread grows (top) or shrinks (middle) as xx increases. That fan shape signals a problem with the equal variance condition. The bottom graph shows random scatter with roughly constant spread, which is what you want to see.

Study guide illustration

Residual plots: patterns vs. constant variance

If these conditions are satisfied and H0H_0 is true, then the standardized slope

t=bSEb t = \frac{b}{SE_b}

follows a t-distribution with df = n − 2.

Important pieces:

  • bb = sample slope (estimate of β1 \beta_1 )
  • Typical test: H0:β1=0H_0: \beta_1 = 0, so t=b/SEbt = b/SE_b (same as (b−0)/SEb(b - 0)/SE_b)
  • SEbSE_b = standard error of the slope
  • df = n − 2

Why n−2n - 2? Because we estimated two parameters from the data: the intercept and the slope.

3. Calculating the Test Statistic and p-Value

Step 1: State hypotheses in context

Example wording:

Let β1 \beta_1 be the true slope relating hours of sleep to reaction time for high school students.

Then state H0H_0 and HaH_a.

You must define β1 \beta_1 in words. Skipping that costs points.

Step 2: Compute the test statistic

t=bSEb t = \frac{b}{SE_b}

This tells you how many standard errors your sample slope is from the hypothesized slope.

If b=1.8b = 1.8, SEb=0.6SE_b = 0.6, and testing H0:β1=0 H_0: \beta_1 = 0:

t=1.8−00.6=3 t = \frac{1.8 - 0}{0.6} = 3

That means the observed slope is 3 standard errors above 0.

Step 3: Find the p-value

Use:

  • t-distribution
  • df = n−2n - 2
  • One- or two-sided based on HaH_a

The p-value is:

The probability of getting a slope statistic at least as extreme as the one observed, assuming H0H_0 (for example H0:β1=0H_0: \beta_1 = 0) is true.

Calculator note: Most regression output already gives you the t-value and p-value. Just be sure the df matches n−2n-2.

4. Making and Justifying the Conclusion

Compare the p-value to α \alpha :

  • If p-value≤α \text{p-value} \le \alpha , reject H0H_0.
  • If p-value>α \text{p-value} > \alpha , fail to reject H0H_0.

Your conclusion must:

  1. State the decision.
  2. Answer the research question.
  3. Refer to a linear relationship.
  4. Stay in context.

Example (rejecting):

Since the p-value is less than 0.05, we reject H0H_0. There is convincing evidence of a linear relationship between hours of sleep and mean reaction time for high school students.

Notice it says linear and names both variables.

The test result is your statistical reasoning supporting the research claim.

5. Interpretation and Common Mistakes

Correct p-value interpretation

Always include the assumption:

Assuming β1=0 \beta_1 = 0 , the probability of obtaining a sample slope this extreme (or more extreme) is ___.

Students often forget the “assuming H0H_0 is true” part. That assumption is the entire logic of significance testing.

Common AP mistakes

  • Using df = n − 1 instead of n−2n − 2.
  • Saying “there is a relationship” instead of “there is a linear relationship.”
  • Claiming causation with observational data.
  • Forgetting to define β1 \beta_1 .
  • Saying the p-value is the probability that H0H_0 is true.

That last one shows up constantly on multiple choice.

Key Takeaways

The test statistic for the slope is t=bSEb t = \frac{b}{SE_b} when H0:β1=0H_0: \beta_1 = 0, with df =n−2= n - 2.
The null distribution of the slope statistic is a t-distribution when regression conditions are satisfied and H0H_0 is true.
A small p-value means the observed slope would be unlikely if the true slope were the hypothesized value.
Conclusions must refer to a linear relationship in the population and be written in context.
Never interpret a p-value as the probability that the null hypothesis is true.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining