Fiveable

📊AP Statistics Unit 9 Review

QR code for AP Statistics practice questions

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

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

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
📊AP Statistics
Unit & Topic Study Guides

Previous Exam Prep

AP Cram Sessions 2021

Pep mascot

To carry out a tt test for the slope of a regression model, calculate the test statistic t=bβ0SEbt = \frac{b - \beta_0}{SE_b}, find the p-value from a tt distribution, and compare it to your significance level α\alpha. If the p-value is at or below α\alpha, reject the null hypothesis and use the context to state what the evidence says about the true population slope.

Why This Matters for the AP Statistics Exam

This topic is the "do" and "conclude" part of a regression slope hypothesis test. After you set up the test in 9.4, this is where you turn the regression output into a test statistic, a p-value, and a conclusion in context. On the AP Statistics exam, you may need to compute or read a t-statistic from computer output, interpret a p-value correctly, and write a conclusion that ties back to the research question. Free-response questions in this unit often start with a familiar slope task and build toward extended reasoning, so being fluent with the test steps helps you earn early points and set up later parts.

Key Takeaways

  • The appropriate procedure is a t-test for a slope, and under the null hypothesis the slope follows a t-distribution.
  • The test statistic is t = (b - β₀)/SE_b, where b is the sample slope and β₀ is the value from the null hypothesis.
  • Degrees of freedom are usually n - 2 for simple linear regression because the regression model estimates both slope and intercept; the CED also notes a one-parameter slope-test case that uses df = n - 1.
  • The p-value is calculated assuming the null hypothesis is true (assuming the true population slope equals β₀).
  • The decision rule is simple: if p-value ≤ α, reject H₀; if p-value > α, fail to reject H₀.
  • Always write your conclusion in context, naming both variables and referencing the sample and population.

The t-Test Statistic

If the conditions for regression inference are met and the null hypothesis is true, the slope estimate follows a t-distribution. The test statistic measures how far your sample slope falls from the null slope, scaled by the standard error.

Take your observed slope, subtract the hypothesized slope, and divide by the standard error of the slope:

t = (b - β₀)/SE_b

Here b is your sample slope and β₀ is the value stated in the null hypothesis (often 0, meaning no linear relationship).

For degrees of freedom in simple linear regression, use df = n - 2, because two parameters (the slope and intercept) are estimated. The CED also notes a one-parameter slope-test case that uses df = n - 1, but most AP regression-output questions for simple linear regression use n - 2.

The p-Value

The p-value is the probability of getting a slope as extreme as, or more extreme than, your sample slope, assuming the null hypothesis is true. A small p-value means your observed slope would rarely happen by random chance if the true population slope really equaled β₀.

How you calculate the p-value depends on your alternative hypothesis:

  • For Hₐ: β ≠ β₀, use a two-tailed p-value (both directions).
  • For Hₐ: β > β₀ or Hₐ: β < β₀, use a one-tailed p-value (one direction).

Remember the interpretation: the p-value assumes the true population slope equals the value in the null hypothesis. It is not the probability that the null is true.

Making the Decision and Writing the Conclusion

Once you have your t-statistic and p-value, compare the p-value to your significance level α to make a formal decision.

  • If p-value ≤ α, reject H₀.
  • If p-value > α, fail to reject H₀.

Your conclusion should connect the decision back to the research question and name both variables in context. Use these as templates:

If the p-value is at or below α:

  • "Since our p-value is less than our significance level, we reject H₀. We have convincing evidence that the true slope of the regression line between ________ and ________ is (the value in the alternative hypothesis, usually not 0)."

If the p-value is above α:

  • "Since our p-value is greater than our significance level, we fail to reject H₀. We do not have convincing evidence that the true slope of the regression line between ________ and ________ is (the value in the alternative hypothesis, usually not 0)."

A test result that fails to reject H₀ does not prove there is no relationship. It only means you did not find enough evidence to support the alternative claim.

How to Use This on the AP Statistics Exam

Free Response

  • Read computer output carefully. The slope estimate b, standard error SE_b, t-statistic, and p-value are usually right there in the regression table. Pull the correct values instead of recomputing when output is given.
  • Show your test statistic formula with numbers plugged in, then state your p-value and df. Clear setup makes your work easy to follow.
  • Watch whether the alternative is one-sided or two-sided. Some output reports a two-sided p-value, so you may need to halve it for a one-sided test.
  • Always conclude in context and reference the population and sample. A correct decision with no context usually loses credit.

Problem Solving

  • Confirm the conditions were addressed (linearity, equal variance, independence, normality) before trusting the test.
  • Use the right degrees of freedom: n - 2 for simple linear regression.
  • Tie the result to the research question. The test about the sample slope is your statistical reasoning to support a claim about the population slope.

Common Trap

  • Do not interpret the p-value as the chance the null is true. It is computed assuming the null is true.
  • Do not use deterministic language like "a 1-unit increase causes" when describing slope. Frame it as a predicted change.

Worked Example

A researcher studies the relationship between income and happiness using a sample of 50 individuals and runs a t-test for the slope.

  • H₀: The slope of the regression line is 0 (no linear relationship between income and happiness).
  • Hₐ: The slope is not 0 (there is a linear relationship).

The test statistic is t = 2.5 with df = 48 (since n = 50 and two parameters are estimated in simple linear regression). The resulting p-value is 0.01, and the significance level is α = 0.05.

Conclusion: Since the p-value of 0.01 is less than α = 0.05, reject H₀. There is convincing evidence of a linear relationship between income and happiness in the population. The reasoning: a p-value this small means a t-statistic as extreme as 2.5 would rarely occur by chance if the true slope were 0, so the null is unlikely to be correct.

For more practice and to work through choosing the right procedure, move on to Section 9.6.

Common Misconceptions

  • The p-value is the probability the null hypothesis is true. It is not. The p-value is calculated by assuming the null is true, then measuring how unusual your sample slope is under that assumption.
  • Failing to reject H₀ proves no relationship exists. It only means your sample did not provide enough evidence for the alternative. There may still be a real relationship you did not detect.
  • The slope test always uses df = n - 1. For simple linear regression, the standard degrees of freedom are n - 2 because two parameters are estimated. The n - 1 form applies when the slope is the single parameter being tested.
  • You always halve or always double the p-value. Match the p-value calculation to the alternative hypothesis: two-tailed for ≠, one-tailed for > or <.
  • Slope describes a guaranteed change. Describe it as a predicted or expected change, not a deterministic one, and reference both variables.

Vocabulary

The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.

Term

Definition

degrees of freedom

A parameter of the t-distribution that affects its shape; as degrees of freedom increase, the t-distribution approaches the normal distribution.

null distribution

The probability distribution of the test statistic under the assumption that the null hypothesis is true.

null hypothesis

The initial claim or assumption being tested in a hypothesis test, typically stating that there is no effect or no difference.

p-value

The probability of observing a test statistic as extreme as or more extreme than the one calculated from the sample data, assuming the null hypothesis is true.

population regression line

The true linear relationship μy = α + βx between the response and explanatory variables in the entire population.

regression model

A statistical model that describes the relationship between a response variable (y) and one or more explanatory variables (x).

reject the null hypothesis

The decision made when the p-value is less than or equal to the significance level, indicating sufficient evidence against the null hypothesis.

sampling distribution

The probability distribution of a sample statistic (such as a sample proportion) obtained from repeated sampling of a population.

significance level

The threshold probability (α) used to determine whether to reject the null hypothesis in a significance test.

significance test

A statistical procedure used to determine whether there is sufficient evidence to reject the null hypothesis based on sample data.

simple linear regression

A regression model that describes the linear relationship between one explanatory variable and one response variable.

slope

The value b in the regression equation ŷ = a + bx, representing the rate of change in the predicted response for each unit increase in the explanatory variable.

slope of a regression model

The coefficient that represents the rate of change in the predicted response variable for each unit increase in the explanatory variable in a linear regression equation.

standard error

The standard deviation of a sampling distribution, which measures the variability of a sample statistic across repeated samples.

t-distribution

A probability distribution used when the population standard deviation is unknown and the sample standard deviation is used instead, characterized by heavier tails than the normal distribution.

test statistic

A calculated value used to determine whether to reject the null hypothesis in a hypothesis test, computed from sample data.

Frequently Asked Questions

What is the AP Stats slope test?

The AP Stats slope test is a t-test for the slope of a regression model. It tests whether the true population slope beta equals a claimed value, often 0, by using the sample slope b, the standard error of the slope, a t-statistic, and a p-value.

How do you calculate the t-statistic for a regression slope?

Use t = (b - beta0) / SEb, where b is the sample slope, beta0 is the slope value from the null hypothesis, and SEb is the standard error of the slope. Many AP Statistics questions give these values in computer output.

What degrees of freedom do you use for a slope t-test?

For simple linear regression, the usual AP Statistics degrees of freedom are n - 2 because the model estimates both slope and intercept. The CED also notes a one-parameter slope-test case with df = n - 1, so read the problem context and output carefully.

How do you interpret the p-value for a slope test?

Interpret the p-value by assuming the null hypothesis is true. It is the probability of getting a sample slope as extreme as, or more extreme than, the one observed if the true population slope equals the null value. It is not the probability that the null hypothesis is true.

How do you write the conclusion for a slope test?

Compare the p-value to alpha. If p-value <= alpha, reject H0 and say there is convincing evidence for the alternative claim about the population slope. If p-value > alpha, fail to reject H0 and say there is not convincing evidence. Always name both variables in context.

What is the biggest mistake on AP Stats slope-test questions?

A common mistake is treating the sample slope as proof about the population slope without using the p-value. Another is saying the slope causes a change. In regression inference, describe the slope as a predicted or associated change unless the study design supports a causal claim.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot