ScienceHub
← AP® Statistics · All units
Notes & flashcards are free to explore. Create an account for practice and saved progress.Sign up free
On this page0% through guide
UNIT 5About 11 min + practice

Regression Analysis

Describe relationships and predictions without mistaking association for cause.

What you’ll learn

  • Interpret scatterplots, correlation, and least-squares lines.
  • Use residuals and r² to evaluate a linear model.
  • Recognize extrapolation, influential observations, and causal limits.
01

Before you begin

A scatterplot displays paired quantitative measurements. The explanatory variable is plotted horizontally and the response vertically. A fitted line predicts responses; it does not establish causation.

Explain these starting ideas in your own words. Revisit them whenever a later step feels unclear.

02

Begin with a scatterplot

A scatterplot places a quantitative explanatory variable on the horizontal axis and a quantitative response on the vertical axis. Describe direction, form, strength, and unusual points. A strong curved relationship can have a weak linear correlation, so inspect shape before summarizing with one number.

Correlation r measures direction and strength of linear association. It is unitless and lies between −1 and 1. Switching explanatory and response variables leaves r unchanged, but changing the sign of one variable reverses it. Correlation is sensitive to unusual points and does not establish causation.

03

A least-squares line predicts the response

The line ŷ = a + bx predicts y from x by minimizing the sum of squared vertical residuals. The slope is predicted change in y per one-unit increase in x, with units of y per x. The intercept predicts y at x = 0, which may have no practical meaning if zero lies far outside the observed domain.

The least-squares line passes through (x̄,ȳ). Its slope has the same sign as r and can be calculated as r(sy/sx). Reversing the roles of x and y does not generally give the algebraic inverse of the original least-squares line because the residuals being minimized change.

ŷ = a + bx
b = r(sy/sx)
a = ȳ − bx̄
04

Residuals reveal what the line misses

A residual is observed y minus predicted y. A positive residual means the observation lies above the fitted line. Plot residuals against x or predicted values to look for patterns. Random-looking scatter around zero supports the linear-form description; a curve suggests the line misses systematic structure.

Changing spread across x can indicate nonconstant variability. A residual standard deviation summarizes typical prediction error around the line in response-variable units. It is not the standard deviation of x, and it should be interpreted within the observed context and range.

A curved pattern in residualsOriginal illustrative residuals. The pattern suggests a straight line misses systematic structure.
A curved pattern in residuals-4-202401.753.55.257 Explanatory variable xResidual (response units)Residuals
Read figure values as text

Residuals: 1: 4; 2: 1; 3: -2; 4: -3; 5: -2; 6: 1; 7: 4

PAUSE & TRY IT

What does a negative residual mean?

Reveal answer

The observed response is below the predicted response.

PAUSE & TRY IT

Why is a U-shaped residual plot concerning?

Reveal answer

It indicates systematic curvature that the linear model does not capture.

05

r² explains variation in a specified model

For simple least-squares regression with an intercept, r2 is the proportion of observed variation in y accounted for by the linear model using x. It does not mean that r2 of individuals are predicted perfectly or that x causes that fraction of y.

A high r2 does not guarantee that the linear form is appropriate, predictions are safe outside the data range, or a causal interpretation is valid. Inspect residuals, unusual points, and the collection process. Report the variables and model when interpreting the percentage.

06

Unusual points can affect a fit differently

A point with unusual x has high leverage. It may strongly change a fitted line, but leverage alone does not guarantee large influence. A large vertical residual is an unusual y given x. Investigate whether a point is an error, a different process, or a valid extreme observation before deciding how to handle it.

Extrapolation predicts outside the observed x range and assumes the relationship continues there. Physical or behavioral constraints can make that assumption unreasonable. A model fitted to a narrow range of ages, doses, or temperatures should not be treated as a universal law.

A curved residual pattern reveals missed structureIllustrative model, not collected experimental data. Systematic curvature around zero suggests a straight line misses a relationship. Random scatter would look different; these are deliberately constructed residuals.
A curved residual pattern reveals missed structure-2024-3-1.501.53 Explanatory variable xResidualResidual pattern
Read figure values as text

Residual pattern: -3: 3; -2: 0; -1: -2; 0: -2; 1: -2; 2: 0; 3: 3

PAUSE & TRY IT

Does a high-leverage point always have a large residual?

Reveal answer

No. It can lie near the fitted line while having an unusual explanatory value.

07

Association can arise without direct causation

A lurking variable can influence both measured variables, reverse causation can be possible, and chance can contribute to observed patterns. Randomized experiments can strengthen causal interpretation, while observational regression alone cannot remove every confounding explanation.

State a prediction as a model-based estimate for the studied context. A residual describes one observation’s deviation, whereas unexplained variation describes the broader scatter. Keep statistical language specific rather than saying a model is simply “accurate” because its correlation is large.

08

Describe a relationship before fitting a line

Look for direction, form, strength, and unusual points in the scatterplot. Correlation summarizes the direction and strength of a linear relationship; a strong curved pattern can have a small correlation. A correlation has no units, and switching which variable is called explanatory does not change it. The regression line, however, does depend on which variable is predicted.

Interpret slope as the predicted response change for a one-unit increase in the explanatory variable, with both units stated. The intercept predicts the response at x=0, which may be outside the meaningful range. Avoid attaching a substantive interpretation to an impossible or distant zero value.

PAUSE & TRY IT

Does r2=0.64 mean 64% of students fit the line?

Reveal answer

No. It means 64% of observed variation in the response is explained by the fitted linear relationship with the predictor.

09

Use residuals to assess the model

A residual equals observed response minus predicted response. A positive residual means the observation is above the fitted line; a negative one is below. A residual plot with a curved pattern suggests the line is missing systematic structure. A roughly patternless cloud around zero is consistent with a linear model, though it does not prove every modeling assumption.

The coefficient of determination, r2, gives the fraction of observed response variation explained by the linear model using the explanatory variable. It does not mean that this fraction of observations lies exactly on the line, nor that x causes that percentage of y. Retain context: specify what response variation and what predictor the statement concerns.

PAUSE & TRY IT

What does a curved residual pattern suggest?

Reveal answer

A straight-line model misses systematic structure in the relationship.

10

Distinguish influence, extrapolation, and confounding

A point far from the mean x value has high leverage and can strongly affect a fitted line, but influence depends on its position relative to the overall pattern. A point can have a large residual without large leverage. Compare fits with and without a suspicious point only with an honest explanation; never remove inconvenient observations solely to improve fit.

Extrapolation uses the model beyond the observed predictor range, where the relationship may change. Confounding offers a different explanation for an association: a third variable may relate to both x and y. Even a high r2 cannot transform an observational association into evidence of causation.

11

Read a scatterplot before summarizing it

Identify the explanatory and response variables and their units. Describe direction, form, strength, and unusual observations. Correlation measures linear association, so a strong curved relationship can have a small correlation. A scatterplot is necessary to see what a single coefficient hides.

The least-squares line minimizes the sum of squared vertical residuals. A residual is observed response minus predicted response; a positive residual lies above the line. The line predicts y from x, and reversing the roles generally produces a different regression, not simply the algebraic inverse.

Correlation has no units and lies from −1 to 1. Changing measurement units by positive scale factors does not change correlation, but it changes slope units. Neither correlation nor a fitted line establishes that changing x causes y to change.

12

Interpret coefficients and model fit precisely

A slope gives the predicted change in response for a one-unit increase in the explanatory variable. Include units and use predictive language. The intercept is the prediction at x=0; it may have no useful practical interpretation when zero lies outside the observed range or is impossible in context.

The coefficient of determination r2 is the fraction of observed variation in the response accounted for by its linear relationship with the explanatory variable in this fit. It is not the fraction of predictions that are correct, nor the fraction of response caused by x.

A residual plot should not show a systematic pattern if a straight-line description is adequate. Curvature suggests missed structure; changing vertical spread suggests different prediction variability across x. A small average residual is not proof of a good model because least-squares residuals with an intercept balance around zero.

PAUSE & TRY IT

Does r2=0.81 mean 81% of predictions are correct?

Reveal answer

No. It describes the fraction of response variation accounted for by the fitted linear relationship, not a prediction success rate.

13

Recognize leverage, influence, and extrapolation

A point far from the others in x has high leverage. It is influential if removing it materially changes the fitted relationship. A large residual is a different property. A point can have high leverage and a small residual while still strongly shaping the line.

Extrapolation predicts beyond the observed x range and assumes a relationship continues where it has not been checked. Even an excellent fit within the sample can fail beyond that range. Contextual limits such as saturation or impossible negative predictions can reveal the problem.

A lurking variable may explain an association, and reverse causation may be possible. To support a causal claim, examine design and mechanisms rather than relying on a large r2. This unit focuses on regression description and prediction within the revised assessed scope, not inference for a population slope.

FROM IDEA TO APPLICATION

Worked examples

EXAMPLE 1

Prediction and residual

A model predicts weekly water use as ŷ = 120 + 15x liters, where x is household size. A four-person household uses 195 liters. Find its prediction and residual.

Reveal worked solution
  1. Predicted use = 120 + 15(4) = 180 L.
  2. Residual = observed − predicted = 195 − 180.
Result & interpretation

Prediction 180 L; residual +15 L, meaning this household used 15 L more than predicted.

EXAMPLE 2

Interpret r²

A linear model relating study time to score has r = 0.80. Interpret r2 without making a causal claim.

Reveal worked solution
  1. r2 = 0.64.
  2. Refer to variation in the response and the particular linear model.
Result & interpretation

64% of the observed variation in scores is accounted for by the linear model using study time in this dataset; this does not establish that study time caused the variation.

EXAMPLE 3

Prediction and residual

A fitted model predicts score=42+3.5(study hours). A student who studied 8 hours scored 65. Calculate the prediction and residual.

Reveal worked solution
  1. Substitute x=8: predicted score=42+3.5×8=70.
  2. Use observed minus predicted: 65−70=−5.
  3. Interpret the sign in the response units.
Result & interpretation

The model predicts 70 points; the residual is −5 points, so the actual score is 5 points below prediction.

EXAMPLE 4

Interpret a line and residual

A model predicts score = 40 + 5 × study hours. A student studying 6 hours scores 66.

Reveal worked solution
  1. Predicted score = 40 + 5(6) = 70.
  2. Residual = observed − predicted = 66 − 70 = −4.
  3. The student scored 4 points below the prediction.
Result & interpretation

The slope predicts 5 additional score points per extra study hour in this model; it does not prove a causal effect.

MAKE THE DISTINCTION

Common mistakes, clearer reasoning

The trapr² is the percentage of predictions that are correct.

The better explanationIt is the proportion of response variation accounted for by the fitted linear model.

The trapA high correlation proves a causal relationship.

The better explanationCausation depends on design and alternative explanations, not correlation alone.

RETRIEVE BEFORE YOU REVEAL

Practice checkpoints

Revisit the quick checks from this guide without looking back. Explain why, then reveal the answer.

1. What does a negative residual mean?

Reveal answer

The observed response is below the predicted response.

2. Why is a U-shaped residual plot concerning?

Reveal answer

It indicates systematic curvature that the linear model does not capture.

3. Does a high-leverage point always have a large residual?

Reveal answer

No. It can lie near the fitted line while having an unusual explanatory value.

4. Does r2=0.64 mean 64% of students fit the line?

Reveal answer

No. It means 64% of observed variation in the response is explained by the fitted linear relationship with the predictor.

5. What does a curved residual pattern suggest?

Reveal answer

A straight-line model misses systematic structure in the relationship.

6. Does r2=0.81 mean 81% of predictions are correct?

Reveal answer

No. It describes the fraction of response variation accounted for by the fitted linear relationship, not a prediction success rate.

Key language

Residual
Observed response minus predicted response.
Leverage
Unusualness of an observation’s explanatory-variable value.
Extrapolation
Prediction outside the observed explanatory range.
Least squares
A fitting criterion minimizing the sum of squared residuals.
Connect it to the course

Regression combines descriptive displays, variability, design, and cautious prediction. These notes follow the current five-unit course scope.

Reading marks could not be saved in this browser. They do not affect your practice score.

Written for ScienceHub · Original instructional material. Course framework reference ↗. These notes are independently authored and are not College Board materials. External photographs retain their credited licenses.

YOUR EXPERIENCE MATTERS

How’s your study space?

Sign in to share a review of ScienceHub.

Sign in