SECTION 1
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.
1805 • Legendre's Method of Least Squares
1908 • Student's t-Distribution
1922 • Fisher's Maximum Likelihood Framework
1934 • Neyman's Confidence Interval Theory
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.
SECTION 2
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
SECTION 3
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.
SECTION 4
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.
POPULATION REGRESSION MODEL
β₀ = population y-intercept; β₁ = population slope (the parameter we want to estimate); ε = random error term, assumed independently and normally distributed with mean 0 and constant standard deviation σ.
CONFIDENCE INTERVAL FOR β₁
b₁ = sample slope from least-squares regression; t* = critical value from the t-distribution with df = n − 2 for the desired confidence level; SE(b₁) = standard error of the slope.
STANDARD ERROR OF THE SLOPE
s = √(Σeᵢ² / (n − 2)) is the residual standard deviation (also called the standard error of the regression); Σ(xᵢ − x̄)² measures the total spread of the x-values around their mean. Greater spread in x reduces SE(b₁).
DEGREES OF FREEDOM
We lose 2 degrees of freedom because two parameters (β₀ and β₁) are estimated from the data. On the AP exam, computer output provides SE(b₁) directly, so the primary task is reading the output, identifying df, and looking up t*.
SECTION 5
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.
SECTION 6
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 |
s = 0.3210, R-Sq = 59.9%, n = 22
Construct a 95% confidence interval for the true slope of the regression line relating study hours to GPA.
Worked example
- 1
Step 1 — Identify the Parameter
We wish to estimate β₁, the true slope of the population regression line that relates weekly study hours (x) to GPA (y) for all college students in the population. - 2
Step 2 — Check Conditions (LINE)
L: Assume the residual plot shows no curved pattern, supporting linearity. I: Students were randomly selected, and 22 is plausibly less than 10% of all college students. N: Assume the histogram of residuals shows no strong skewness or outliers. E: Assume the residual plot shows roughly constant vertical spread across x-values. All conditions are met. - 3
Step 3 — Read Output Values
From the regression output: b₁ = 0.0820 and SE(b₁) = 0.0150.b₁ = 0.0820, SE(b₁) = 0.0150 - 4
Step 4 — Find t* and Degrees of Freedom
df = n − 2 = 22 − 2 = 20. For a 95% confidence interval, the critical value from the t-table with 20 degrees of freedom is t* = 2.086.t* = 2.086, df = 20 - 5
Step 5 — Construct the Interval
CI = b₁ ± t* × SE(b₁) = 0.0820 ± 2.086 × 0.0150 = 0.0820 ± 0.0313.(0.0507, 0.1133) - 6
Step 6 — Interpret in Context
We are 95% confident that the true slope of the population regression line relating weekly study hours to GPA is between 0.0507 and 0.1133. This means that for each additional hour of study per week, the average GPA is estimated to increase by between 0.0507 and 0.1133 points.
SECTION 7
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. |
Key takeaway
SECTION 8
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 |
AP-level slope inference compared with college-level extensions
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.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
- A. There is a 90% probability that the true slope is between 0.45 and 1.20.
- B. 90% of all sample slopes fall between 0.45 and 1.20.
- C. We are 90% confident that the true slope of the population regression line is between 0.45 and 1.20.
- D. If we take one more sample, there is a 90% chance its slope will be between 0.45 and 1.20.
- E. The sample slope is 0.825 with a margin of error of 90%.
Show answer (C)
Question 2: BASIC CALCULATION
- A. (1.75, 5.05)
- B. (1.83, 4.97)
- C. (1.75, 4.97)
- D. (1.83, 5.05)
- E. (2.60, 4.20)
Show answer (A)
Question 3: INTERMEDIATE
- A. The interval becomes narrower because both SE(b₁) and t* decrease.
- B. The interval becomes wider because the degrees of freedom increase.
- C. The interval stays the same width because s and the x-spread are unchanged.
- D. The interval becomes narrower because SE(b₁) decreases, but t* increases.
- E. The interval becomes narrower only because t* decreases; SE(b₁) is unchanged.
Show answer (A)
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING