The Ultimate AP® Statistics Unit 5 Cheat Sheet: Regression Analysis
www.albert.io
5.1 Scatterplots
Set Up
Scatterplot: 2 quantitative variables on the same individuals; 1 dot per individual at (x, y). Label both axes w/ units.
Explanatory (x, horizontal) may predict or explain change in the response (y, vertical). Also: predictor vs. outcome.
Which is x? One you know first or use to predict: hours studied (x) → test score (y). No order? Either works.
Describe: DOFS + Context
FeatureLook forWords to use
DirectionTrend up/downPositive / neg.
FormShape of patternLinear / curved
StrengthSpread from formStrong/mod/weak
UnusualOdd pointsOutlier, cluster
Positive: ↑x → ↑y on avg. Negative: ↑x → ↓y on avg. None: no consistent trend either way as x grows.
Form: linear (straight band), curved (bends), or no clear form. Judge form by eye BEFORE computing r or a line.
Strength: how tightly points hug the form. Tight band = strong; loose cloud = weak; in between = moderate.
Unusual features: outliers (far from the pattern), clusters (separate groups of points), gaps in the x values.
Scale trick: stretching an axis can make the same data look stronger or weaker. Judge strength w/ r, not by eye alone.
Model Answer
Sample: "There is a strong, positive, linear association between hours studied and test score for these 25 students, w/ 1 possible outlier at (2, 95), far above trend."
5.2 Correlation (r)
What r Measures
Correlation r: direction + strength of a LINEAR association between 2 quantitative variables. −1 ≤ r ≤ 1.
Sign = direction (+ or −). |r| near 1 = strong linear; near 0 = weak or NO linear relationship, e.g., r = 0.1.
|r|Typical labelExample
0.8–1StrongHeight, arm span
0.5–0.8ModerateStudy hrs, score
< 0.5WeakShoe size, GPA
r = ±1: every point exactly on a line. r = −0.9 is STRONGER than r = 0.7: compare |r|, then read the sign.
Properties
No units: switching cm → in, or °F → °C, does NOT change r. Adding to or multiplying by a positive constant: r same.
Symmetric: swapping x and y gives the same r. Not resistant: one outlier can raise or lower r a lot.
r = 0 → no LINEAR relationship; a strong curve (e.g., a U shape) can still have r ≈ 0, so always graph first.
Formula (on sheet): r = (1/(n−1)) Σ zxzy. Calculator: LinReg w/ diagnostics ON shows r and r² together.
Sign logic: points in quadrants where zx, zy share signs push r up (+); opposite signs push r down (−).
Grouped data: r from averages (e.g., state means) looks stronger than r for individuals b/c averaging hides spread.
Interpret in Context
Template: "r = 0.82 means a strong, positive, linear association between hours studied and test score."
Don't say "82% related" or "82% of the points are on the line." r is not a %; that idea belongs to r² (card 5).
5.3 Linear Regression Models
The Model
LSRL: ŷ = a + bx. ŷ (y-hat) = predicted y, never the actual y. a = y-intercept, b = slope of the line (rise/run).
Write it w/ names: predicted score = 52.3 + 4.1(hours). Using x and ŷ? Define both in context or lose credit.
Hat matters: writing y = 52.3 + 4.1x (no hat) claims exact values. FRQ graders dock it; always use ŷ or "predicted."
Interpret Slope & Intercept
PartTemplate (context)
Slope bPredicted y ↑/↓ by b per +1 x
Intercept aPredicted y when x = 0
ŷ at given xPredicted y for that x value
Slope: "For each additional hour studied, the predicted test score increases by 4.1 points." Units on both.
Intercept: "A student who studies 0 hours has a predicted score of 52.3." Only meaningful if x = 0 is in range.
Nonsense intercept: x = 0 far outside the data (e.g., a 0-lb car) → say the intercept has no practical meaning.
Predict
Prediction: plug x in. ŷ = 52.3 + 4.1(5) = 72.8 points for a student who studied 5 hours. Round only at the end.
Extrapolation: predicting for x outside the observed range → unreliable b/c the trend may not continue, e.g., 30 hrs → ŷ = 175 points on a test scored out of 100.
Interpolation: x inside the range → reasonable if form is linear and the residual plot shows no pattern.
One-way street: the LSRL of y on x predicts y from x only. To predict x from y, refit w/ the axes swapped.
5.4 Residuals & Residual Plots
Residuals
Residual = actual − predicted = y − ŷ. Memory: A − P ("AP"). Same units as y; it's the vertical miss.
Positive residual: point above line → model UNDER-predicted. Negative: below → model OVER-predicted.
Example: 5 hrs, actual 80, ŷ = 72.8 → residual = 80 − 72.8 = 7.2, so scored 7.2 points above predicted.
Sum (and mean) of residuals from the LSRL = 0 always, so the ↑ and ↓ misses cancel out exactly.
Find y from a residual: y = ŷ + residual. e.g., ŷ = 70, residual = −4 → actual y = 66 (point below the line).
Residual Plot
Residual plot: x (or ŷ) on the horizontal axis, residual on the vertical axis, w/ a horizontal line at 0 (no pattern = good).
Residual plotMeans
Random scatterLinear model OK
Curved (U/∩)Linear not apt
Fan / funnelError grows w/ x
One far pointOutlier in y
Judge by the pattern, not size of residuals. A clear curve = nonlinear form even if r is high (e.g., 0.95).
Fan shape: predictions get less precise as x grows; the line may still describe the overall trend well.
Interpret a residual: "The actual score was 7.2 points higher than the score predicted by the LSRL for 5 hours."
Read the Plot
Point at residual −10: its actual y is 10 units below predicted. Biggest |residual| = worst-predicted individual.
5.5 Least-Squares Regression & r²
Least Squares
LSRL = the line that minimizes Σ(residual)². It's unique and always passes through the point (x̄, ȳ).
Slope b = r(sy/sx) and a = ȳ − bx̄ (both on the formula sheet). Sign of b always = sign of r (r = 0 → flat line).
By hand: given x̄ = 4, ȳ = 70, sx = 2, sy = 10, r = 0.6 → b = 0.6(10/2) = 3, a = 70 − 3(4) = 58 → ŷ = 58 + 3x.
Slope units: y-units per 1 x-unit, e.g., points per hour.
Regression to the mean: x is 1 SD above x̄ → ŷ only r SDs above ȳ, so predictions shrink toward the mean.
r² (Coefficient of Determination)
r² (coefficient of determination): % of the variation in y explained by the LSRL w/ x. 0 ≤ r² ≤ 1.
r² template: "About 67% of the variation in test score is explained by the linear model w/ hours studied."
r² from r: r = 0.8 or r = −0.8 → r² = 0.64. Squaring drops the sign, so read the direction from slope b.
Good model: random residual plot + high r². One alone isn't enough: r² = 0.9 w/ a curved residual plot fails.
Computer Output
PredictorCoefSE Coef
Constant52.3 → a4.0
Hours4.1 → b0.6
Read it: "Constant" row = intercept; variable's row = slope; R-Sq = r². Ignore SE Coef, T, P & S here.
Write the line: predicted score = 52.3 + 4.1(hours). Use the Coef column only, never the SE Coef column.
5.5 Computer Output: Start to Finish
The Output
PredictorCoef
Constant24.5
Age (yr)−1.8
R-Sq = 81%
Study: 10 used cars, x = age (yr), y = price ($1,000s). Read the Coef column → ŷ = 24.5 − 1.8x (a = 24.5).
Equation: predicted price = 24.5 − 1.8(age), w/ price in $1,000s. Define ŷ & x in context, w/ units.
Interpret Each Piece
Slope: for each additional year of age, the predicted price ↓ by 1.8 thousand dollars, or by $1,800 per year.
Intercept: a 0-yr-old car has a predicted price of $24,500; meaningful only if age 0 is near the data.
r: R-Sq = 0.81 → r = −√0.81 = −0.9 (− b/c the slope is −) → a strong, negative, linear association here.
r²: about 81% of the variation in used-car price is explained by the linear model w/ age (in years).
Predict & Check
Predict: age 6 → ŷ = 24.5 − 1.8(6) = 13.7 → a predicted price of $13,700 for a 6-year-old car of this type.
Residual: a 6-yr-old car sold for $15,000 → 15 − 13.7 = 1.3 → it sold for $1,300 more than predicted.
Extrapolate? Data cover ages 1–10 yr; age 15 → ŷ = −2.5, a negative price! → don't trust any value out there.
Residual plot: random scatter around 0 for these 10 cars → the linear model fits; no curve is left over.
Causation, Unusual Points & Extrapolation
Correlation ≠ Causation
A strong r from observational data shows an association, never that changes in x cause changes in y.
Lurking variable: a 3rd variable tied to both x & y. Ice cream sales & drownings both ↑ w/ summer heat.
Only a well-designed experiment w/ random assignment of treatments can support a cause-&-effect claim.
Ex: kids' shoe size & reading score are correlated b/c age drives both, not b/c big feet help reading.
Name the lurking variable & explain how it drives both x & y.
Wording: "is associated w/" or "predicts" ✓; "causes," "leads to," "makes" ✗ for observational data.
Unusual Features (5.1)
Points off the pattern: name them in your DOFS description; don't drop a point from the data w/o a real reason.
Clusters: separate groups (e.g., 2 car makes) can hide 2 different patterns; describe each group.
Effect on r: r isn't resistant: 1 point far off the linear pattern can weaken r a lot; 1 that extends it can strengthen it.
Extrapolation (5.3)
Extrapolation: predicting for x outside the data's range of x-values; the pattern may bend or stop.
Ex: child height vs. age (ages 2–10) predicts a height of ~10 ft at age 40 → the trend can't continue.
Ex: the used-car model gives a negative price at age 15, a sure sign that extrapolation has gone wrong.
Safe: interpolate inside the observed x-range when the residual plot shows no leftover pattern.
Regression FRQ Checklist
Describe & Interpret
Describe: direction, form, strength & unusual features, + both variable names & units, all in context here.
Slope: "For each 1-unit ↑ in [x], the predicted [y] ↑/↓ by [b] [units]." Always say predicted, not actual.
Intercept: "When [x] = 0, the predicted [y] is [a]." Then say whether x = 0 makes sense for these data.
r²: "About [r²]% of the variation in [y] is explained by the linear model w/ [x]." Use the %, in context.
Residual: "The actual [y] was [|e|] [units] above/below the value predicted by the LSRL for that [x]."
Prediction: "The predicted [y] for [x] = [value] is [ŷ] [units]." Never say the actual value "will be" ŷ.
Check the Model
Linear apt? Cite the residual plot: no leftover pattern → a linear model is appropriate for these data.
Curved residual plot → a linear model is not appropriate, even when r is close to +1 or −1 (e.g., 0.95).
Compare 2 models: the one w/ a random residual plot wins; then compare the r² values, in context, too.
Habits That Cost Points
Units: attach units to every number you report, every time.
Every regression FRQ: context + units, "predicted" or ŷ, residual = y − ŷ, no extrapolation, no causation.
Show the plug-in: ŷ = 52.3 + 4.1(5) = 72.8, then a sentence in context; a bare number alone loses the credit.
Round only at the end: carry the full a & b values from the output into each prediction you make.