Loading
Use confidence intervals to determine whether a linear relationship exists between two quantitative variables.
The question of whether two quantitative variables are genuinely related—or whether an apparent linear trend is merely an artifact of sampling variability—has been central to statistical thinking since the late nineteenth century. Early pioneers of regression analysis recognized that a sample slope alone is insufficient evidence; one must also quantify the uncertainty surrounding that estimate before making claims about the population. The development of confidence intervals for regression slopes wove together contributions from several statistical traditions, culminating in the inferential framework that AP Statistics students use today.
These historical threads converge in a single practical question: given a sample least-squares regression line with slope b, how can we construct an interval of plausible values for the true population slope β, and how do we use that interval to justify or refute a claim about the nature of the linear relationship? This section of the course brings together your knowledge of confidence intervals and regression into a single, powerful inferential tool.
Before constructing or interpreting a confidence interval for the slope, you must internalize several foundational ideas. The population regression model assumes that for every value of the explanatory variable x, the response variable y follows a normal distribution whose mean lies on the true regression line μy = α + βx. The sample slope b is our best point estimate of β, but a confidence interval communicates the range of β values that are consistent with the observed data at a chosen confidence level.
The diagram above encapsulates the core reasoning used on the AP Statistics exam. When you are asked to justify a claim about the slope using a confidence interval, the argument follows a clear logical chain: (1) state the confidence interval, (2) note whether the claimed value of β—most commonly zero—falls inside or outside the interval, and (3) draw a conclusion. If zero is not contained in the interval, the data provide convincing evidence at that confidence level that a linear relationship exists. If zero is contained in the interval, you cannot rule out the possibility that β = 0, and thus you lack convincing evidence of a linear association.
The confidence interval for the population slope β is constructed using the sample slope, its standard error, and a critical value from the t-distribution. Understanding each component and the conditions required for the interval to be valid is essential.
The validity of the confidence interval rests on four conditions, often remembered by the acronym LINE. First, the relationship between x and y must be Linear, which we verify by examining a scatterplot or residual plot for a random pattern with no curvature. Second, the observations must be Independent; this is satisfied by random sampling or random assignment, or by confirming that the sample is less than 10% of the population. Third, the residuals must be Normal—for each value of x, the distribution of y values (or equivalently, the residuals) should be approximately normal, checked via a histogram or normal probability plot of the residuals, though this condition becomes less critical as n grows large. Fourth, the variability of the residuals must be Equal across all x-values (homoscedasticity), verified by checking that the residual plot shows a roughly constant vertical spread.
The critical reasoning step on the AP exam is linking the confidence interval to a claim about the slope. Virtually every free-response prompt in this unit reduces to one question: does the interval contain the value zero? The diagram below contrasts three scenarios, each leading to a different justified conclusion.
Notice the deep connection between confidence intervals and two-sided hypothesis tests. A 95% confidence interval that does not contain zero corresponds exactly to rejecting H0: β = 0 at the α = 0.05 significance level. This duality means you can use either a confidence interval or a hypothesis test to make the same conclusion, but on the AP exam, the prompt will specify which approach you should use. When asked to use a confidence interval, do not compute a p-value—use the interval directly.
A researcher collects data on 22 randomly selected homes to investigate whether the size of a home (in hundreds of square feet) is linearly associated with its selling price (in thousands of dollars). A least-squares regression yields ŷ = 45.3 + 12.8x, with SEb = 3.65. Construct a 95% confidence interval for the slope and use it to determine whether there is convincing evidence of a linear association between home size and selling price.
On the AP exam, you may be asked to use either a confidence interval or a hypothesis test to justify a claim about the slope. While the two approaches are mathematically equivalent for two-sided tests, they communicate different kinds of information, and the exam will specify which tool to use. Understanding the strengths and limitations of each approach ensures that you select the right strategy and justify your answer properly.
| Feature | Confidence Interval | Hypothesis Test |
|---|---|---|
| Output | Range of plausible values for β | A p-value and decision (reject or fail to reject) |
| Answers the question | What values of β are consistent with the data? | Is there sufficient evidence that β ≠ 0? |
| Estimates effect size | Yes—bounds tell how steep the slope might be | No—only whether the effect is statistically distinguishable from 0 |
| One-sided claims | Can address direction by inspecting sign of interval bounds | Can use a one-sided alternative hypothesis directly |
| Exam tip | Use when prompt says "construct/use a CI" or "estimate the slope" | Use when prompt says "test whether" or "significance test" |
The single-slope confidence interval you study in AP Statistics is a gateway to a much broader set of inferential tools used in college-level regression courses. The table below previews how the concepts you have mastered here extend into multiple regression, where models include several explanatory variables simultaneously, and into non-parametric approaches that relax the LINE conditions.
| Feature | AP Statistics (Simple Linear Regression) | Advanced (Multiple Regression & Beyond) |
|---|---|---|
| Number of predictors | One explanatory variable x | Multiple predictors x₁, x₂, …, xₖ |
| Degrees of freedom | df = n − 2 | df = n − k − 1 |
| Interval interpretation | Marginal relationship between x and y | Partial effect of xⱼ holding other predictors constant |
| Conditions | LINE (parametric assumptions) | Extended diagnostics; bootstrap CIs if conditions fail |
| Software output | Read b and SE_b from a regression table | Software provides full coefficient tables with CIs built in |
In multiple regression, you will encounter confidence intervals for each slope coefficient βj that work in the same conceptual way: compute the interval using bj ± t* × SEbⱼ, and check whether zero is included. The conceptual logic—does the interval contain the hypothesized value?—remains identical regardless of the number of predictors, the estimation method, or the statistical software used. Mastering this reasoning now equips you for virtually every parametric inference problem you will encounter in future statistics courses.
A confidence interval for the slope of a regression model takes the form b ± t* × SE_b, where b is the sample slope, t* is the critical value from the t-distribution with df = n − 2, and SE_b is the standard error of the slope. Before constructing the interval, verify the LINE conditions: Linearity, Independence, Normality of residuals, and Equal variance.
To justify a claim about the slope, state the interval and check whether the claimed value of β (typically 0) lies inside or outside it. If zero is not contained in the interval, you have convincing evidence at the given confidence level that a linear association exists in the population. If zero is contained in the interval, you lack convincing evidence of such an association. Always interpret the interval in context—referencing the variables, units, and the population parameter β—to earn full credit on the AP exam.
Keep learning with more lessons from the same subject.