Hypothesis Tests for the Slope of a Regression Model — AP Statistics
1. What is a Hypothesis Test for Regression Slope? ★★☆☆☆ ⏱ 2 min
This topic makes up roughly 5-7% of the overall AP Statistics exam, appearing on both multiple choice and free response sections, most commonly as a multi-part FRQ paired with confidence intervals for slope.
The core goal of this test is to answer whether we have statistical evidence that a true linear relationship exists between the explanatory and response variable in the full population, beyond what we see in our sample. It unifies your knowledge of significance testing and linear regression, two of the most heavily tested themes on the exam.
2. Stating Hypotheses and Checking Inference Conditions ★★★☆☆ ⏱ 4 min
The first step of any hypothesis test for slope is to correctly define the population parameter, state your hypotheses, and verify the conditions required for the sampling distribution of the slope to follow a t-distribution.
Hypotheses must always be stated in terms of the population parameter, not the sample statistic. For a test of any linear relationship, the standard hypotheses are:
- $H_0: \beta = 0$: No linear relationship between $x$ and $y$ in the population
- $H_a: \beta \neq 0$: There is a non-zero linear relationship between $x$ and $y$ in the population (two-tailed test)
If the question specifies a directional claim (e.g., "slope is positive"), use a one-tailed alternative: $H_a: \beta > 0$ or $H_a: \beta < 0$.
- **L**inear: The true relationship between $x$ and $y$ is linear (check residual plot for no curved pattern)
- **I**ndependent: Individual observations are independent (check 10% condition for sampling, random assignment for experiments)
- **N**ormal: Residuals are normally distributed around the regression line (check normal probability plot or histogram of residuals)
- **E**qual Variance: The spread of residuals is constant across all $x$ (check residual plot for no fanning in/out)
Exam tip: On AP FRQs, you must name each condition and explain how you check it in context; just writing "LINE" is not enough to earn full credit.
3. Calculating the Test Statistic and P-Value ★★★☆☆ ⏱ 4 min
If all conditions are met, the sampling distribution of the sample slope $b_1$ follows a t-distribution with degrees of freedom $df = n - 2$. We lose 2 degrees of freedom because we estimate two parameters for the regression line: the intercept and the slope.
The formula for the t-test statistic is:
t = \frac{b_1 - \beta_0}{SE_{b_1}}
Where $b_1$ is the sample slope from least-squares regression, $\beta_0$ is the hypothesized population slope from the null hypothesis (almost always 0), and $SE_{b_1}$ is the standard error of the slope. On the AP exam, $SE_{b_1}$ is almost always given in regression computer output; you will almost never need to calculate it by hand.
Once you calculate the t-statistic, find the p-value, which is the probability of observing a t-statistic as extreme or more extreme than your result, assuming $H_0$ is true. For a two-tailed test, double the one-tailed p-value; for a one-tailed test, use the one-tailed p-value matching the direction of $H_a$.
Exam tip: If you are given full regression output with pre-calculated t and p-values for the slope row, you do not need to recalculate them; just use the given values directly to save time on the exam.
4. Drawing Conclusions and Connecting to Confidence Intervals ★★★★☆ ⏱ 4 min
After finding the p-value, compare it to the pre-specified significance level $\alpha$ (almost always $\alpha = 0.05$ unless stated otherwise). The decision rule is standard for significance testing: if $p < \alpha$, reject the null hypothesis; if $p \geq \alpha$, fail to reject the null hypothesis.
The most heavily tested skill on the AP exam for this topic is writing a correct conclusion in context. Common mistakes include not tying the conclusion to the problem context, and incorrectly claiming the null hypothesis is true when failing to reject it. You can never prove the null is true; you only have enough or not enough evidence to reject it. Never use the phrase "accept $H_0$". Also remember that statistical significance does not equal practical significance.
Exam tip: Always include the phrase "convincing statistical evidence" and explicitly reference the significance level in your AP FRQ conclusion; omitting these can cost you a full point.
Common Pitfalls
Why: Students mix up sample statistics and population parameters, a common confusion from earlier inference topics
Why: Students reuse the degrees of freedom from one-sample t-tests for means, which is incorrect for regression
Why: Students confuse the conditions for inference on means with the conditions for regression inference
Why: Students assume failing to reject means the null is proven true, which is a core logical error in significance testing
Why: Students confuse different types of standard deviation/error in regression output
Why: Students confuse statistical significance with practical significance