Historical Context & Motivation
When we fit a least-squares regression line to sample data, the resulting slope b₁ is a point estimate—a single number drawn from one particular sample. A different sample from the same population would almost certainly produce a different slope. The fundamental question that motivated generations of statisticians is: how precisely does our sample slope estimate the true population parameter β₁? Confidence intervals answer that question by wrapping b₁ in a range of plausible values, accompanied by a stated level of confidence.
These developments converge in a single question that pervades modern regression analysis: given a sample regression slope, what range of values for the true population slope β₁ is consistent with the observed data at a specified confidence level? This lesson develops the full machinery for answering that question on the AP Statistics exam.
Core Principles & Definitions
Constructing a confidence interval for the slope rests on a clearly defined population model, a set of conditions that validate the procedure, and an understanding of sampling variability. Before diving into formulas, it is essential to internalize the conceptual building blocks.
Population Regression Model
Sampling Distribution of b₁
Standard Error of the Slope
The t-Distribution
Confidence Level Interpretation
Visual Explanation
The diagram below illustrates the core idea: a sample regression line with its point-estimate slope sits inside a confidence band that fans outward from the center of the data. The band captures all lines whose slopes fall within the confidence interval for β₁.
Each point on the scatterplot represents a paired observation (xᵢ, yᵢ). The regression line summarizes the linear trend, and the confidence band captures the uncertainty associated with that summary. A narrower band signals a more precise estimate of β₁, which results from larger sample sizes, less scatter in the residuals, or greater spread in the x-values.
Mathematical Framework
The confidence interval for the slope of a regression model has the same general form as any t-interval: point estimate ± (critical value)(standard error). Below are the key equations, each with full variable definitions.
Conditions for Inference (LINE)
Before constructing a confidence interval for β₁, four conditions must be checked. The AP exam uses the acronym LINE to organize them. Each condition corresponds to an assumption about the error term ε in the population model. Violations of these conditions can invalidate the interval, so thorough checking is essential for full credit on free-response questions.
On free-response questions, you should explicitly state each condition and describe what evidence supports it. For Linearity and Equal Variance, reference the residual plot (e.g., "The residual plot shows no obvious pattern and roughly constant spread"). For Independence, reference the study design (random sampling or randomized experiment) and, if sampling without replacement, verify the 10% condition. For Normality, reference a histogram or normal probability plot of residuals, or note that the sample size is large enough for the Central Limit Theorem to compensate for mild non-normality.
Worked Example
A researcher randomly selects 22 college students and records the number of hours each student studies per week (x) and their GPA (y). A computer regression analysis produces the following output:
| Predictor | Coef | SE Coef | t | p |
|---|---|---|---|---|
| Constant | 1.5600 | 0.2180 | 7.16 | 0.000 |
| Hours | 0.0820 | 0.0150 | 5.47 | 0.000 |
Construct a 95% confidence interval for the true slope of the regression line relating study hours to GPA.
Strengths & Limitations
| Strengths | Limitations |
|---|---|
| Provides a range of plausible values rather than a single point estimate, acknowledging sampling variability. | Assumes a linear model is appropriate; if the true relationship is nonlinear, the interval estimates a meaningless parameter. |
| Based on well-understood t-distribution theory; coverage rates are reliable when conditions hold. | Sensitive to outliers and influential points, which can distort both b₁ and SE(b₁). |
| Directly connects to hypothesis testing: if 0 is not in the CI, we reject H₀: β₁ = 0. | Requires the LINE conditions; violations (especially non-constant variance) can produce misleadingly narrow intervals. |
| Width of the interval is easy to reduce by increasing sample size or choosing x-values with greater spread. | Association does not imply causation—even a CI that excludes 0 does not prove x causes y without a randomized experiment. |
Connection to Hypothesis Testing & Advanced Methods
Confidence intervals and hypothesis tests for β₁ are two sides of the same coin. The t-statistic for testing H₀: β₁ = 0 is t = b₁ / SE(b₁), and this is exactly the value printed in the computer output. A 95% confidence interval that does not contain 0 corresponds to rejecting H₀ at α = 0.05. This duality means you can always convert between the two procedures.
| Feature | CI for β₁ (AP Level) | Advanced Extensions |
|---|---|---|
| Model | Simple linear regression (one predictor) | Multiple regression with many predictors |
| Distribution | t-distribution with df = n − 2 | t-distribution with df = n − k − 1 |
| Conditions | LINE checked via residual plots | Additional checks: multicollinearity, leverage diagnostics |
| Robust alternatives | Not covered on AP exam | Bootstrap CIs, heteroscedasticity-consistent SEs |
In a college statistics or econometrics course, you will encounter multiple regression, where a confidence interval for a single slope coefficient βⱼ is still computed as bⱼ ± t* × SE(bⱼ), but the degrees of freedom change to n − k − 1 (where k is the number of predictors) and the standard error accounts for correlations among predictors. The bootstrap offers a nonparametric alternative that does not require the Normality or Equal Variance conditions, making inference more robust when those assumptions are suspect.