Historical Context & Motivation
When we fit a least-squares regression line to a sample of bivariate data, the resulting slope b₁ is a point estimate of the true population slope β₁. But how confident can we be that the observed relationship did not arise purely from random sampling variability? This question—whether the apparent linear trend is statistically meaningful—motivated some of the most important developments in 20th-century statistics. The machinery of hypothesis testing for regression slopes grew from work on correlation, least-squares estimation, and the theory of sampling distributions.
The central question this lesson addresses is deceptively simple: given sample data with a nonzero slope b₁, can we conclude that the true population slope β₁ is different from zero (or some other hypothesized value)? Answering this requires specifying the correct hypotheses, defining the population model, checking the conditions that legitimize inference, and identifying the appropriate test statistic—all of which we will develop step by step.
Core Principles & Definitions
Before performing any significance test, you must understand the theoretical model that underpins inference about the slope. The simple linear regression model posits that for each value of the explanatory variable x, the response variable y is drawn from a distribution whose mean falls on the true regression line. Formally, we write y = β₀ + β₁x + ε, where ε represents the random deviation of each observation from that line. Setting up a test for β₁ requires familiarity with several foundational ideas that work together to make inference valid.
The Population Regression Model
Null & Alternative Hypotheses
Conditions for Inference
The t-Test Statistic
Standard Error of the Slope
Visual Explanation: The Regression Model
The diagram below illustrates the conceptual framework behind inference for the slope. At each value of x, the response y is assumed to come from a normal distribution centered on the true regression line. The spread of each distribution is σ (assumed equal at every x), and the slope β₁ determines how the center shifts as x increases. When we test H₀: β₁ = 0, we are asking whether the centers are truly shifting—or whether the apparent tilt in our sample regression line could be attributed to chance.
Notice that all three normal distributions have the same spread (σ). This reflects the equal variance (homoscedasticity) condition. If the true slope β₁ were zero, these distributions would all be centered at the same height—meaning the response would be unrelated to x. The hypothesis test formalizes exactly this comparison.
Mathematical Framework
Setting up the test requires specifying the hypotheses, the test statistic, and its sampling distribution. We begin with the population regression model and derive the t-statistic used to assess whether the sample slope provides sufficient evidence against the null.
In practice, the AP Statistics exam provides computer output that lists b₁, SE(b₁), the t-statistic, and the p-value. Your primary responsibility is to state the hypotheses correctly, verify the conditions, identify the correct test (a t-test for the slope of a regression model), and interpret the output in context. Understanding the formula for SE(b₁) deepens your intuition: more data, less scatter around the line, and more spread in x all give you a sharper test.
The LINE Conditions in Detail
Before a t-test for the slope is valid, four conditions—often remembered by the acronym LINE—must be verified. Failing to check these conditions on a free-response question is one of the most common point-losing mistakes on the AP exam. The following diagram and table detail each condition, including how to assess it from residual plots and contextual information.
| Condition | What It Means | How to Check |
|---|---|---|
| L — Linearity | The true relationship between x and y is linear. | Look at the scatterplot of x vs. y and the residual plot vs. x. There should be no obvious curved pattern. |
| I — Independence | Individual observations are independent of each other. | Consider the data collection: random sampling or random assignment supports independence. For samples without replacement, verify n < 10% of the population. |
| N — Normal | For any given x, the responses y (equivalently, the residuals) are approximately normally distributed. | Examine a histogram, dotplot, or normal probability plot of the residuals. With large n, mild departures are acceptable due to the CLT. |
| E — Equal Variance | The standard deviation of y is the same for all values of x. | Check the residual plot for a 'fan' or 'trumpet' shape. The vertical spread of residuals should remain roughly constant across x. |
Worked Example: Setting Up the Slope Test
A researcher investigates whether the number of hours students spend studying per week is a significant linear predictor of their exam score (out of 100). A random sample of 25 students is collected. The least-squares regression yields the following computer output:
| Predictor | Coef | SE Coef | t | p-value |
|---|---|---|---|---|
| Constant | 52.387 | 4.215 | 12.43 | < 0.001 |
| Hours | 2.814 | 0.683 | 4.12 | 0.0004 |
Additionally, the residual plot shows random scatter with no obvious pattern, and a histogram of the residuals is roughly symmetric and bell-shaped.
Common Errors & Pitfalls
Students frequently lose points on AP free-response questions not because they cannot do the calculation (the computer output provides the numbers), but because they misstate hypotheses, inadequately check conditions, or misinterpret results. The table below contrasts common errors with best practices.
| Common Error | Correct Practice |
|---|---|
| Writing hypotheses in terms of b₁ (sample slope) instead of β₁ (population slope). | Always write H₀: β₁ = 0 and Hₐ: β₁ ≠ 0 (or one-sided). The hypothesis is about the population parameter, not the sample statistic. |
| Using r (correlation) or r² in the hypotheses instead of β₁. | The t-test for the slope tests β₁. Although testing ρ = 0 yields the same t-statistic, the AP exam expects β₁ for the regression slope test. |
| Saying 'the data are normal' or 'x is normal' when checking conditions. | State that the residuals are approximately normally distributed. Check via a histogram or normal probability plot of residuals. |
| Skipping the independence check because 'it's a random sample.' | Mention both that the data were collected via random sampling (or assignment) AND, if sampling without replacement, verify that n < 10% of the population. |
| Concluding that x 'causes' y based solely on the test result. | A significant slope from an observational study indicates a linear association, not causation. Only randomized experiments support causal claims. |
Connections to Confidence Intervals & Multiple Regression
The t-test for the slope is closely related to the confidence interval for β₁, which provides a range of plausible values for the true slope. A 95% confidence interval that does not contain zero leads to the same conclusion as a two-sided test at α = 0.05 that rejects H₀. This duality—hypothesis test and confidence interval yielding consistent conclusions—is a central theme in inference. In more advanced coursework, these ideas extend naturally to multiple linear regression, where each predictor's slope is tested while controlling for other variables.
| Feature | Slope t-Test (AP Statistics) | Multiple Regression (Beyond AP) |
|---|---|---|
| Number of predictors | 1 (simple linear regression) | 2 or more |
| Hypotheses | H₀: β₁ = 0 | H₀: βⱼ = 0 for each predictor j, controlling for others |
| Degrees of freedom | n − 2 | n − k − 1, where k is the number of predictors |
| Complementary interval | b₁ ± t* × SE(b₁) | bⱼ ± t* × SE(bⱼ) for each coefficient |
| Global test | t-test and F-test are equivalent (F = t²) | F-test evaluates whether at least one predictor is significant |
For the AP Statistics exam, you need only work with simple linear regression (one predictor). However, recognizing that the t-test for the slope is a building block of more general linear modeling deepens your understanding and provides a bridge to college-level courses in regression analysis and econometrics.
Practice Problems
Summary
Setting up a test for the slope of a regression model begins with the population regression model y = β₀ + β₁x + ε. We state hypotheses about β₁—typically H₀: β₁ = 0 versus a two-sided or one-sided alternative—then verify the LINE conditions (Linearity, Independence, Normal residuals, Equal variance) using residual plots and contextual information. The test statistic is t = b₁ / SE(b₁) with df = n − 2, and the conclusion must be stated in the context of the problem, distinguishing association from causation.
Remember: on the AP exam, hypotheses use the population parameter β₁ (never b₁), conditions must be explicitly checked with evidence, and for one-sided tests you may need to halve the two-sided p-value from computer output. Mastering these procedural details, paired with a deep understanding of the underlying model, equips you to earn full credit on inference-for-slope questions.