Topic 9.4 Notes – Setting Up a Test for the Slope of a Regression Model
What a t-test for the slope is actually testing
In simple linear regression, we model the population relationship as
- = true population slope
- It represents the expected change in the mean of y for each 1-unit increase in x.
A t-test for the slope answers:
Is there convincing evidence that the true slope differs from a hypothesized value ?
Most of the time:
(No linear relationship between x and y.)- If we reject this, we have evidence of a statistically significant linear association.
Because we don’t know the population standard deviation of y, the test statistic follows a t-distribution with .
If you see:
- Two quantitative variables
- A regression output
- A question asking whether there is a linear relationship
→ This is a t-test for the slope.
Writing hypotheses correctly
The hypotheses are always about the population slope , not the sample slope .
General form
- , , or
Where:
- = true population slope
- = hypothesized value (often 0)
Choosing the alternative
- Two-sided
Used when checking for any linear relationship. - Right-tailed
When context suggests a positive association. - Left-tailed
When context suggests a negative association.
On a free-response question, define in context. For example:
is the true slope relating number of practice problems completed to exam score for all students at this school.
That definition earns points.
Conditions for inference
Before doing the test, you must verify four conditions. These are about the residuals.
A residual plot like the one below is what you use to check linearity and equal variability.
Residuals versus fitted values plot
1. Linearity
The true relationship between x and y is linear.
Check the residual plot. It should show no clear pattern.
2. Equal variability
The standard deviation of y is the same for all values of x.
On the residual plot, look for no fanning out or funneling in.
3. Independence
- Data come from a random sample or randomized experiment.
- If sampling without replacement, check the 10% condition
4. Normality
For each value of x, the distribution of y-values is approximately normal.
We usually check a histogram or normal probability plot of residuals.
- If , slight skewness is okay.
- If , no strong skewness or outliers.
Students lose points by forgetting to mention how they checked these. Be specific.
Mechanics of the test
Once conditions are met:
- State hypotheses (with defined in context).
- Calculate the test statistic
- = sample slope
- = standard error of the slope
- Find the p-value using the t-distribution.
- Conclusion in context
Example structure:
Because the p-value is 0.012, which is less than , we reject . There is convincing evidence of a linear relationship between practice time and exam score for students at this school.
Notice the conclusion:
- Mentions linear relationship
- Names the variables and population
Calculator note: use LinRegTTest. It gives you , the p-value, , and .
What the result means
If you reject :
- There is statistically significant evidence that .
- If , there is evidence of a linear association.
If you fail to reject :
- Not enough evidence of a linear relationship.
- This does not prove the slope is 0.
And unless the data came from a randomized experiment, you cannot claim causation.
Key Takeaways
T-Test for a Slope
A significance test using a t-distribution to evaluate a population regression slope.
Conditions and Graphical Checks for Regression Slope Inference
Check linearity, equal variance, independence, and normality using residual plots and residual graphs.
Hypotheses for a Regression Slope Test
State H0: β = β0 and choose Ha to test whether the population slope differs.
Notes
T-Test for a Slope
A significance test using a t-distribution to evaluate a population regression slope.
Conditions and Graphical Checks for Regression Slope Inference
Check linearity, equal variance, independence, and normality using residual plots and residual graphs.
Hypotheses for a Regression Slope Test
State H0: β = β0 and choose Ha to test whether the population slope differs.