All Subjects



AP Stats



Unit 9

9.4 Setting Up a Test for the Slope of a Regression Model

2 min readmay 16, 2021


Josh Argo

9.4: Setting Up a Test for the Slope of a Regression Model

Just as we had with other units regarding inference, there was always the prediction inference method and the test inference method. Since sections 9.3 and 9.4 dealt with the prediction method (confidence intervals), we will not tackle the testing methods by testing claims about our population.


The first thing we need to make sure is clear before we perform our test is to set up our null and alternate hypotheses. Since we are performing hypothesis tests on the slope of a regression model, our null and alternate hypothesis will look as according:
  • Ho:  β= β0
  • Ha:  β = ,<,or> β0
  • Where is the slope of the regression line and o is the null slope 
For example, an Easter candy researcher may claim that the correlation between the number of jelly beans consumed per day and the amount of Easter grass cluttering the house has a slope of 40 (As the jelly bean consumption increases by 1, the number of easter grass pieces is predicted to increase by 40). If this were the test, you would test it using these hypotheses:
  • Ho:  β=40
  • Ha: β ≠ 40
Often times with hypothesis test for slopes, we are not testing a null hypothesis, but merely testing that things are correlated. Therefore, our 0=0 in that case and we are testing against the fact that our null slope is 0.


Just like our other hypothesis tests, we have conditions for the inference that must be met. For hypothesis tests for slope, here are the 4 necessary conditions:
  1. Residual plot does not appear to show a pattern for the relationship between x and y
  2. Standard deviation for y does not vary with x. (Check for no “fanning” on residual plot)
  3. Independence
    1. Random sample or random experiment
    2. 10% condition
  4. For any particular value of x, the responses for y are normally distributed
    1. Sample size is at least 30
    2. Sample data is free of any skewness or outliers
All of these things must be stated explicitly before proceeding to calculate the actual test.

Image Taken From University of Florida

What Test Do I Run?

The test you will run in this instance is a Linear Regression T Test for Slopes. In most graphing calculators, this is known as LinRegTTest under the Stats>Tests menu.
Since we are dealing with quantitative data and it is unlikely we know the population standard deviation of y, we must use a t distribution for our critical value.

Now that we have our test set up…

Let’s go!  You have now verified the conditions to be met, wrote your hypotheses and identified the correct test, so we can calculate now!
🎥  Watch: AP Stats Unit 9 - Inference for Slopes

Was this guide helpful?

🔍 Are you ready for college apps?
Take this quiz and find out!
Start Quiz
FREE AP stats Survival Pack + Cram Chart PDF
Sign up now for instant access to 2 amazing downloads to help you get a 5
Browse Study Guides By Unit
Big Reviews: Finals & Exam Prep
Free Response Questions (FRQs)
Unit 1: Exploring One-Variable Data
Unit 2: Exploring Two-Variable Data
Unit 3: Collecting Data
Unit 4: Probability, Random Variables, and Probability Distributions
Unit 5: Sampling Distributions
Unit 6: Inference for Categorical Data: Proportions
Unit 7: Inference for Qualitative Data: Means
Unit 8: Inference for Categorical Data: Chi-Square
Join us on Discord
Thousands of students are studying with us for the AP Statistics exam.
join now
💪🏽 Are you ready for the Stats exam?
Take this quiz for a progress check on what you’ve learned this year and get a personalized study plan to grab that 5!
Hours Logo
Studying with Hours = the ultimate focus mode
Start a free study session
📱 Stressed or struggling and need to talk to someone?
Talk to a trained counselor for free. It's 100% anonymous.
Text FIVEABLE to 741741 to get started.
© 2021 Fiveable, Inc.