Transformations for Linearity - Complete Interactive Lesson
Part 1: Scatterplots and Correlation
📈 Scatterplots and Correlation
Part 1 of 7 — Exploring Bivariate Relationships
Describing Scatterplots
When examining a scatterplot, describe:
| Feature | Options |
|---|---|
| Direction | Positive, negative, or none |
| Form | Linear, curved, or no pattern |
| Strength | Strong, moderate, or weak |
| Outliers | Any points that don't fit the pattern |
Correlation Coefficient
The correlation measures the strength and direction of a linear relationship:
| Value of | Interpretation |
|---|---|
| Perfect positive linear | |
| Perfect negative linear | |
| No linear relationship | |
| $0.8 \leq | r |
| $0.5 \leq | r |
Important Properties of
- always
- has no units
- is not affected by changes in units (e.g., inches to cm)
- measures only linear association — a strong curved relationship can have
- is sensitive to outliers
🔑 Correlation does NOT imply causation. A strong correlation between two variables does not mean one causes the other.
Correlation Check 🎯
Correlation Practice 🧮
1) If , what is ? (Round to 2 decimal places)
2) What percentage of variation in is explained by the linear relationship with ? (Use from #1, express as a whole number)
3) If every data point falls exactly on the line , then ?
Part 2: Least-Squares Regression Line
📊 Least-Squares Regression Line
Part 2 of 7 — The LSRL
Topics in This Part
| Section |
|---|
| 📐 What the LSRL Minimizes |
| 🧮 The Equation & Slope/Intercept |
| 📝 Interpreting Slope and Intercept |
| 📊 Predictions & Extrapolation |
🔑 Key Concept: The least-squares regression line (LSRL) is the line that minimizes the sum of the squared residuals — the best-fit line through a scatterplot.
The LSRL Equation
where:
- (slope)
- (intercept)
- The line always passes through the point
What LSRL Minimizes
This is the sum of squared residuals — hence "least squares."
Interpreting Slope
Template: "For each additional [1 unit of ], the predicted [y variable] changes by [ units], on average."
Example: where = hours studied, = exam score.
✅ "For each additional hour studied, the predicted exam score increases by 3.5 points, on average."
⚠️ AP Tip: Include "predicted" and "on average" for full credit.
Interpreting Intercept
Template: "When , the predicted [y variable] is []."
Example: in .
✅ "When a student studies 0 hours, the predicted exam score is 12 points."
⚠️ Caution: The intercept often has no practical meaning (e.g., studying 0 hours). State the interpretation but note if is outside the data range.
Predictions & Extrapolation
| Term | Definition |
|---|---|
| Interpolation | Predicting within the range of observed values ✓ |
| Extrapolation | Predicting outside the range of observed values ⚠️ |
⚠️ Extrapolation is unreliable. The linear relationship may not hold outside the data range.
LSRL Concepts 🎯
LSRL Calculations 🧮
Given: , , , , .
1) What is the slope ?
2) What is the intercept ?
3) What is when ?
Interpretation Practice 🔍
where = temperature (°F), = hot chocolate sales.
Exit Quiz — LSRL ✅
Part 3: Residuals and Residual Plots
📊 Residuals and Residual Plots
Part 3 of 7 — Assessing the Fit of a Linear Model
Topics in This Part
| Section |
|---|
| 📐 What Is a Residual? |
| 📊 Residual Plots |
| ✅ Good vs. Bad Patterns |
| 📝 Worked Example |
🔑 Key Concept: A residual is the vertical distance from a data point to the regression line. Residual plots help us assess whether a linear model is appropriate.
Residual Formula
| Sign | Meaning |
|---|---|
| Point is above the line — model underestimates | |
| Point is below the line — model overestimates | |
| Point is exactly on the line |
Properties of Residuals
- (residuals always sum to zero)
- The mean of residuals = 0
- is minimized by the LSRL
Residual Plots
A residual plot plots residuals () on the -axis vs. the explanatory variable () or fitted values () on the -axis.
Reading Residual Plots
| Pattern | Interpretation |
|---|---|
| Random scatter around | ✅ Linear model is appropriate |
| Curved pattern (U or ∩) | ❌ Relationship is nonlinear — use a transformation |
| Fan shape (spread changes) | ❌ Non-constant variance — predictions are less reliable at some values |
| Outliers | ⚠️ Individual points far from — investigate |
🔑 AP Tip: The residual plot is your most important diagnostic tool. ALWAYS examine it before trusting a regression.
Worked Example
. Data point: .
The residual is : the observed value is 3 units above the predicted value.
Residual Concepts 🎯
Residual Calculations 🧮
LSRL:
1) Point . Residual
2) Point . Residual
3) Point . The model ___ (enter "overestimates" or "underestimates").
Residual Plot Patterns 🔍
Exit Quiz — Residuals ✅
Part 4: Coefficient of Determination
📊 Coefficient of Determination
Part 4 of 7 — Understanding
Topics in This Part
| Section |
|---|
| 📐 What Measures |
| 🧮 Calculating from |
| 📝 Interpreting on the AP Exam |
| 🔗 vs. |
🔑 Key Concept: tells you the fraction of variability in that is explained by the linear relationship with .
The Definition
where:
- SST = total sum of squares = (total variability in )
- SSE = sum of squared errors = (unexplained variability)
- SSR = regression sum of squares = SST SSE (explained variability)
Or simply: (square the correlation coefficient).
Interpretation Template
Example: , = hours studied, = exam score.
✅ "72% of the variability in exam scores is explained by the linear relationship with hours studied."
⚠️ AP Tip: Always say "variability in [y]" and "linear relationship with [x]." Do not say "caused by" or "due to."
vs.
| Statistic | Measures | Range |
|---|---|---|
| Direction and strength of linear relationship | ||
| Proportion of variability explained |
| Strength | ||
|---|---|---|
| Strong | ||
| Moderate | ||
| Weak | ||
| Very weak |
🔑 Key Insight: Even a "moderate" only explains 49% of the variability. Much variation remains unexplained.
Concepts 🎯
Calculations 🧮
1) . What is ?
2) . What percentage of variability is explained?
3) SST = 500, SSE = 125. What is ?
Interpretation Practice 🔍
Exit Quiz — ✅
Part 5: Influential Points and Outliers
📊 Influential Points and Outliers
Part 5 of 7 — Leverage, Influence, and Unusual Observations
Topics in This Part
| Section |
|---|
| ⚠️ Outliers in Regression |
| 📐 High-Leverage Points |
| 🔄 Influential Points |
| 🧪 Diagnosing Unusual Points |
🔑 Key Concept: Not all unusual points are equally problematic. Some change the regression line dramatically (influential), while others are just far from the pattern (outliers).
Three Types of Unusual Points
1. Outlier (in -direction)
- A point whose -value is far from the predicted (large residual)
- Has an unusually large
- Does NOT necessarily change the regression line much
2. High-Leverage Point (in -direction)
- A point whose -value is far from
- Has the potential to influence the regression line
- May or may not actually change the line — depends on where it falls
3. Influential Point
- A point that, when removed, substantially changes the slope, intercept, or
- High-leverage points that are also outliers are the most influential
- Test: Fit the LSRL with and without the point. If slope/intercept/ changes a lot, the point is influential.
Visualizing the Distinction
| Scenario | Large Residual? | Far from ? | Influential? |
|---|---|---|---|
| Regular point near center | No | No | No |
| Outlier near center of | Yes | No | Usually no |
| Point at extreme , on the line | No | Yes | Usually no |
| Point at extreme , off the line | Yes | Yes | Yes |
Worked Example
A researcher collects data on advertising spending (, in thousands) and sales (, in thousands) for 10 stores:
Most stores spend $2K–$8K. One store spent $25K (high leverage).
- Scenario A: That store had $50K in sales, fitting the overall pattern → high leverage but NOT influential.
- Scenario B: That store had $5K in sales, far below the trend → high leverage AND influential. Removing it would substantially change the slope.
⚠️ AP Tip: On the AP exam, "influential" specifically means removing the point changes the regression equation meaningfully. Always describe the effect on slope, intercept, or .
What to Do with Unusual Points
- Investigate — is there a data-entry error or special circumstance?
- Report both analyses — with and without the point
- Never silently delete data — explain your reasoning
- Check the residual plot — unusual points often show up clearly
Identifying Unusual Points 🎯
Diagnosing Points 🧮
1) The LSRL is . A point has . What is the residual?
2) . A point has . Is this point high-leverage? (yes/no)
3) With all points: slope . Without point A: slope . Without point B: slope . Which point is more influential? (A/B)
Leverage and Influence Concepts 🔍
Exit Quiz — Influential Points & Outliers ✅
Part 6: Problem-Solving Workshop
📊 Problem-Solving Workshop
Part 6 of 7 — Full Regression Analysis Problems
Workshop Goals
| Skill |
|---|
| 📐 Compute and interpret the LSRL |
| 📝 Interpret slope, intercept, , and in context |
| 📉 Analyze residuals and residual plots |
| ⚠️ Identify unusual/influential points |
| 🎯 Recognize the limits of the model |
🔑 AP Tip: Free-response regression questions typically ask you to interpret slope/ in context, describe the residual plot, and discuss whether the model is appropriate.
Worked Example 1 — Temperature and Ice Cream Sales
A manager records daily high temperature (, °F) and ice cream sales (, $100s) for 15 summer days.
Computer output:
| Predictor | Coef | SE Coef | T | P |
|---|---|---|---|---|
| Constant | ||||
| Temperature |
Step 1 — Write the LSRL:
Step 2 — Interpret the slope: "For each additional degree Fahrenheit increase in daily high temperature, the predicted ice cream sales increase by $15 (0.15 hundreds)."
Step 3 — Interpret : "91.1% of the variability in ice cream sales is explained by the linear relationship with daily high temperature."
Step 4 — Predict: At F:
Step 5 — Check appropriateness:
- Residual plot shows no obvious pattern → linear model is appropriate
- → strong linear fit
- No influential points observed in the residual plot
Worked Example 2 — Study Hours and GPA
A sample of 30 college students. = weekly study hours, = GPA.
LSRL: , ,
One student studies 42 hours/week (most study 5–25 hours) and has a GPA of 3.9.
Analysis:
-
Slope interpretation: "For each additional hour of weekly studying, GPA is predicted to increase by 0.052 points."
-
interpretation: "46.2% of the variability in GPA is explained by the linear relationship with weekly study hours."
-
The 42-hour student:
- — predicted GPA is 4.034
- Residual — small residual
- is far from → high leverage
- But residual is small → likely not influential (on the trend line)
-
Prediction for 50 hours:
- This is extrapolation (beyond data range) and the prediction exceeds 4.0 (max GPA) — unreliable!
Common Mistakes on the AP Exam
| Mistake | Correction |
|---|---|
| "Temperature causes sales to increase" | Use "is associated with" or "predicts" |
| "91.1% of the data falls on the line" | " measures variability explained, not % of points on the line" |
| Interpreting the intercept literally when is outside the data | "The intercept has no practical interpretation because is outside the range of data" |
| Forgetting units in slope interpretation | "For each additional [unit of x], [y] is predicted to [increase/decrease] by [slope] [units of y]" |
Regression Analysis Practice 🎯
Computations 🧮
LSRL: ,
1) Predict when .
2) What is ? (two decimal places)
3) Observed when . What is the residual?
Interpretation Decisions 🔍
Exit Quiz — Regression Workshop ✅
Part 7: Review & Applications
📊 Review & Applications
Part 7 of 7 — Comprehensive Linear Regression Review
Complete Formula Reference
| Concept | Formula |
|---|---|
| LSRL | |
| Slope | |
| Intercept | |
| Correlation | |
| Residual |
Interpretation Templates (AP Exam Ready)
Slope: "For each additional [1 unit of x], the predicted [y in context] [increases/decreases] by [|b|] [units of y]."
Intercept: "When [x in context] is 0, the predicted [y in context] is [a] [units of y]." (Only if is in the data range.)
: "There is a [strong/moderate/weak], [positive/negative], linear association between [x] and [y]."
: "[]% of the variability in [y in context] is explained by the linear relationship with [x in context]."
Residual: "The actual [y in context] was [e] [units] [above/below] the value predicted by the model."
Key Concepts Summary
| Topic | Key Takeaway |
|---|---|
| Scatterplot | Always plot data first; describe direction, form, strength, unusual features |
| LSRL | Minimizes ; passes through ; |
| Slope & Intercept | Slope = rate of change; intercept = starting value (if meaningful) |
| Residuals | ; residual plot checks model appropriateness |
| Direction + strength; ; only for linear relationships | |
| Proportion of variability explained; | |
| Outliers | Large residual; may or may not be influential |
| High Leverage | Extreme -value; potential to influence |
| Influential | Removing changes slope/ substantially |
| Extrapolation | Predicting outside data range — unreliable |
Decision Guide
🔑 AP Exam Strategy: Regression appears on the exam every year. Master the interpretation templates — they earn you full credit on free-response questions.
Comprehensive Review 🎯
Mixed Calculations 🧮
Given: , , , , .
1) Calculate the slope .
2) Calculate the intercept .
3) What is ? (two decimal places)
Concept Connections 🔍
Final Exam — Linear Regression ✅