Skip to content
🎯⭐ INTERACTIVE LESSON

Scatter Plots and Correlation

Learn step-by-step with interactive practice!

Scatter Plots and Correlation - 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:

FeatureOptions
DirectionPositive, negative, or none
FormLinear, curved, or no pattern
StrengthStrong, moderate, or weak
Unusual featuresClusters, or points that don't fit the general pattern

Correlation Coefficient rr

The correlation rr measures the strength and direction of a linear relationship. On the AP exam, rr is calculated using technology (calculator or computer output); you interpret it rather than compute it by hand.

Value of rrInterpretation
r=1r = 1Perfect positive linear
r=−1r = -1Perfect negative linear
r=0r = 0No linear relationship
0.8≤∣r∣≤10.8 \leq \vert r\vert \leq 1Strong linear
0.5≤∣r∣<0.80.5 \leq \vert r\vert < 0.8Moderate linear

Important Properties of rr

  • −1≤r≤1-1 \leq r \leq 1 always
  • rr has no units
  • rr is not affected by changes in units (e.g., inches to cm)
  • rr measures only linear association — a strong curved relationship can have r≈0r \approx 0
  • A single point that doesn't fit the pattern can change rr a lot
  • An rr close to −1-1 or 11 does not by itself mean a linear model is appropriate: always look at the scatterplot (and later, the residual plot)

🔑 Correlation does NOT imply causation. A strong correlation between two variables does not mean one causes the other.

Correlation Check 🎯

Correlation Practice 🧮

1) If r=0.72r = 0.72, what is r2r^2? (Round to 2 decimal places)

2) What percentage of variation in yy is explained by the linear relationship with xx? (Use r2r^2 from #1, express as a whole number)

3) If every data point falls exactly on the line y=3x+2y = 3x + 2, then r=r = ?

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

y^=a+bx\boxed{\hat{y} = a + bx}

where:

  • bb is the slope and aa is the yy-intercept; both are calculated using technology (calculator or computer output)
  • y^\hat{y} ("y-hat") is the predicted value of the response for a given xx
  • The line always passes through the point (xˉ,yˉ)(\bar{x}, \bar{y}), so if you know bb and the two means you can find a=yˉ−bxˉa = \bar{y} - b\bar{x}

What LSRL Minimizes

LSRL minimizes ∑(yi−y^i)2=∑(residual)2\text{LSRL minimizes } \sum (y_i - \hat{y}_i)^2 = \sum (\text{residual})^2

This is the sum of squared residuals — hence "least squares."


Interpreting Slope

Template: "For each additional [1 unit of xx], the predicted [y variable] changes by [bb units]."

Example: y^=12+3.5x\hat{y} = 12 + 3.5x where xx = hours studied, yy = exam score.

✅ "For each additional hour studied, the predicted exam score increases by 3.5 points."

⚠️ AP Tip: Say "predicted" (or "on average"): the slope describes the model's prediction, not a guaranteed change for every individual.


Interpreting Intercept

Template: "When x=0x = 0, the predicted [y variable] is [aa]."

Example: a=12a = 12 in y^=12+3.5x\hat{y} = 12 + 3.5x.

✅ "When a student studies 0 hours, the predicted exam score is 12 points."

⚠️ Caution: The intercept sometimes has no reasonable interpretation: x=0x = 0 may be far outside the data (extrapolation), or the predicted value may be impossible, such as a negative height.


Predictions & Extrapolation

TermDefinition
InterpolationPredicting within the interval of xx values used to fit the line ✓
ExtrapolationPredicting beyond that interval ⚠️

⚠️ Extrapolation is less reliable the farther you go. The linear relationship may not hold outside the data range.

LSRL Concepts 🎯

LSRL Calculations 🧮

Technology gives the slope of the LSRL as b=1.7b = 1.7. The means are xˉ=10\bar{x} = 10 and yˉ=25\bar{y} = 25.

1) What is the intercept aa?

2) What is y^\hat{y} when x=12x = 12?

3) An observed point is (12,30)(12, 30). What is its residual?

Interpretation Practice 🔍

y^=50−0.8x\hat{y} = 50 - 0.8x where xx = temperature (°F), yy = hot chocolate sales (cups). The data cover temperatures from 20°F to 70°F.

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

residual=y−y^=observed−predicted\boxed{\text{residual} = y - \hat{y} = \text{observed} - \text{predicted}}

SignMeaning
Residual >0> 0Point is above the line — the model underpredicts (underestimates)
Residual <0< 0Point is below the line — the model overpredicts (overestimates)
Residual =0= 0Point is exactly on the line

The LSRL is the line that makes the sum of the squared residuals as small as possible.


Residual Plots

A residual plot is a scatterplot of the residuals (vertical axis) versus the predicted values y^\hat{y} or the explanatory variable xx (horizontal axis).

Reading Residual Plots

PatternInterpretation
Apparent randomness around residual =0= 0✅ Confirms a linear form; the linear model is appropriate
Curvature (U or ∩ shape)❌ The relationship is not linear; a linear model is not the most appropriate model
A point far above or below 0⚠️ A point that doesn't fit the pattern: the model predicts it poorly; investigate it

🔑 AP Tip: A correlation close to ±1\pm 1 is not enough. Look at the residual plot before trusting a linear model.


Worked Example

y^=10+2x\hat{y} = 10 + 2x. Data point: (5,23)(5, 23).

y^=10+2(5)=20\hat{y} = 10 + 2(5) = 20 residual=23−20=3\text{residual} = 23 - 20 = 3

The residual is +3+3: the observed value is 3 units above the predicted value, so the model underpredicts this point by 3.

Residual Concepts 🎯

Residual Calculations 🧮

LSRL: y^=15+4x\hat{y} = 15 + 4x

1) Point (3,30)(3, 30). Residual ==

2) Point (5,33)(5, 33). Residual ==

3) Point (2,20)(2, 20). The model ___ yy for this point (enter "overestimates" or "underestimates").

Residual Plot Patterns 🔍

Exit Quiz — Residuals ✅

Part 4: Coefficient of Determination

📊 Coefficient of Determination

Part 4 of 7 — Understanding r2r^2


Topics in This Part

Section
📐 What r2r^2 Measures
🧮 Getting r2r^2 from rr
📝 Interpreting r2r^2 on the AP Exam
🔗 rr vs. r2r^2

🔑 Key Concept: r2r^2, the coefficient of determination, is the proportion of the variation in the response variable yy that is explained by the linear relationship with the explanatory variable xx.


The Definition

In simple linear regression, r2r^2 is the square of the correlation coefficient:

r2=r×r\boxed{r^2 = r \times r}

Technology reports it directly (often as "R-sq" or "R2R^2", sometimes as a percent). Because it is a square, 0≤r2≤10 \leq r^2 \leq 1, and it carries no sign.


Interpretation Template

"[r2×100]% of the variation in [y context] is explained by the linear relationship with [x context]."\text{"[}r^2 \times 100\text{]\% of the variation in [y context] is explained by the linear relationship with [x context]."}

Example: r2=0.72r^2 = 0.72, xx = hours studied, yy = exam score.

✅ "72% of the variation in exam scores is explained by the linear relationship with hours studied."

⚠️ AP Tip: Always say "variation in [y]" and "linear relationship with [x]." Do not say "caused by," and r2r^2 is NOT the percent of points on the line.

The rest, 1−r21 - r^2, is the proportion of variation in yy that the linear model leaves unexplained.


rr vs. r2r^2

StatisticMeasuresRange
rrDirection and strength of linear relationship−1≤r≤1-1 \leq r \leq 1
r2r^2Proportion of variation in yy explained0≤r2≤10 \leq r^2 \leq 1
rrr2r^2
±0.9\pm 0.90.810.81
±0.7\pm 0.70.490.49
±0.5\pm 0.50.250.25
±0.3\pm 0.30.090.09

🔑 Key Insight: Going from r2r^2 back to rr, take the square root and give it the sign of the slope: r2=0.49r^2 = 0.49 with a negative slope means r=−0.7r = -0.7. Even r=0.7r = 0.7 explains only 49% of the variation.

r2r^2 Concepts 🎯

r2r^2 Calculations 🧮

1) r=0.9r = 0.9. What is r2r^2?

2) r2=0.49r^2 = 0.49. What percentage of the variation in yy is explained?

3) r2=0.49r^2 = 0.49 and the slope is negative. What is rr?

Interpretation Practice 🔍

Exit Quiz — r2r^2 ✅

Part 5: Unusual Points, Extrapolation and Interpreting the Line

📊 Unusual Points, Extrapolation and Interpreting the Line

Part 5 of 7 — Reading a Regression Carefully


Topics in This Part

Section
⚠️ Unusual Features of a Scatterplot
🔍 When rr Misleads
📏 Interpolation vs. Extrapolation
📝 Interpreting Slope and Intercept in Context

🔑 Key Concept: A regression line is only as good as the pattern behind it. Before using a line, look for unusual features, check whether a linear model fits, and use it only for xx values like the ones in the data.


Unusual Features of a Scatterplot

A full description of a scatterplot gives form, direction, strength and unusual features. Unusual features are:

FeatureWhat it looks likeWhat to do
ClusterSeparate groups of pointsDescribe each group; the groups may differ in some other variable
Point that doesn't fit the patternA point far from the overall trend; it has a large residualIdentify it in context and check it for a recording error. A single such point can noticeably change rr and the line

Example: For 12 used cars, price falls steadily with age, except for one 6-year-old classic car priced far above the trend. That car is a point that doesn't fit the pattern: the line badly underpredicts its price, so its residual is large and positive.


When rr Misleads

  • An rr close to −1-1 or 11 does not necessarily mean a linear model is appropriate. Gently curved data can give r=0.97r = 0.97 while the residual plot shows clear curvature.
  • An rr near 0 means no linear association; a strong curved relationship is still possible.
  • Correlation does not imply causation: a confounding variable may drive both variables.

Unusual Features Check 🎯

📏 Interpolation vs. Extrapolation

TermMeaningReliability
InterpolationPredicting for an xx within the interval of xx values used to fit the lineReasonable if the model fits
ExtrapolationPredicting for an xx beyond that intervalLess reliable the farther you go

Example: For children aged 3 to 12 years, y^=30.2+2.4x\hat{y} = 30.2 + 2.4x, where xx = age (years) and yy = height (inches).

  • Age 8: y^=30.2+2.4(8)=49.4\hat{y} = 30.2 + 2.4(8) = 49.4 inches (interpolation).
  • Age 40: y^=30.2+2.4(40)=126.2\hat{y} = 30.2 + 2.4(40) = 126.2 inches, over 10 feet (extrapolation; growth stops, so the line no longer applies).

📝 Interpreting Slope and Intercept in Context

Slope: "For each additional year of age, the predicted height increases by 2.4 inches."

Intercept: "At age 0, the predicted height is 30.2 inches." But age 0 is outside the 3-to-12-year data, so this is an extrapolation and should not be trusted.

The intercept also has no logical interpretation when it is impossible for the response, for example a negative predicted height, weight or count.

⚠️ AP Tip: Always name both variables, use "predicted," and give units. Say whether x=0x = 0 is inside the data before interpreting the intercept.

Using the Height Model 🧮

y^=30.2+2.4x\hat{y} = 30.2 + 2.4x, with xx = age (years, data from 3 to 12) and yy = height (inches).

1) Predicted height at age 8?

2) Predicted height at age 40 (an extrapolation)?

3) A 10-year-old is 52 inches tall. What is the residual?

Reading the Line Carefully 🔍

Exit Quiz — Unusual Points, Extrapolation & Interpretation ✅

Part 6: Problem-Solving Workshop

📊 Problem-Solving Workshop

Part 6 of 7 — Full Regression Analysis Problems


Workshop Goals

Skill
📐 Read the LSRL from technology output
📝 Interpret slope, intercept, rr, and r2r^2 in context
📉 Analyze residuals and residual plots
⚠️ Identify unusual points
🎯 Recognize the limits of the model

🔑 AP Tip: Free-response regression questions typically ask you to interpret slope/r2r^2 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 (xx, °F) and ice cream sales (yy, $100s) for 15 summer days.

Technology output:

TermCoefficient
Constant−3.50-3.50
Temperature0.150.15

r2=91.1%r^2 = 91.1\%

Step 1 — Write the LSRL: y^=−3.50+0.15x\hat{y} = -3.50 + 0.15x

Step 2 — Interpret the slope: "For each additional degree Fahrenheit in daily high temperature, the predicted ice cream sales increase by $15 (0.15 hundreds of dollars)."

Step 3 — Interpret r2r^2: "91.1% of the variation in ice cream sales is explained by the linear relationship with daily high temperature."

Step 4 — Predict: At x=85°x = 85°F: y^=−3.50+0.15(85)=−3.50+12.75=9.25 ($925 in sales)\hat{y} = -3.50 + 0.15(85) = -3.50 + 12.75 = 9.25 \text{ (\$925 in sales)}

Step 5 — Check appropriateness:

  • Residual plot shows no obvious pattern → linear model is appropriate
  • r2=0.911r^2 = 0.911 → most of the variation in sales is explained
  • No points stand far from the pattern in the residual plot

Worked Example 2 — Study Hours and GPA

A sample of 30 college students. xx = weekly study hours, yy = GPA.

LSRL: y^=1.85+0.052x\hat{y} = 1.85 + 0.052x, r=0.68r = 0.68, r2=0.462r^2 = 0.462

Most students study 5–25 hours; one student studies 42 hours/week and has a GPA of 3.9.

Analysis:

  1. Slope interpretation: "For each additional hour of weekly studying, the predicted GPA increases by 0.052 points."

  2. r2r^2 interpretation: "46.2% of the variation in GPA is explained by the linear relationship with weekly study hours."

  3. The 42-hour student:

    • y^=1.85+0.052(42)=4.034\hat{y} = 1.85 + 0.052(42) = 4.034, so the predicted GPA is 4.034
    • Residual =3.9−4.034=−0.134= 3.9 - 4.034 = -0.134, a small residual
    • Although this xx is far from the other students, the point fits the general pattern
  4. Prediction for 50 hours: y^=1.85+0.052(50)=4.45\hat{y} = 1.85 + 0.052(50) = 4.45

    • This is extrapolation (beyond the data), and the prediction exceeds 4.0, the maximum GPA, so it is unreliable!

Common Mistakes on the AP Exam

MistakeCorrection
"Temperature causes sales to increase"Use "is associated with" or "predicts"
"91.1% of the data falls on the line""r2r^2 measures variation explained, not % of points on the line"
Interpreting the intercept literally when x=0x = 0 is outside the data"The intercept has no reasonable interpretation because x=0x = 0 is outside the range of data"
Forgetting units in slope interpretation"For each additional [unit of x], the predicted [y] [increases/decreases] by [slope] [units of y]"

Regression Analysis Practice 🎯

Computations 🧮

LSRL: y^=5.2+1.3x\hat{y} = 5.2 + 1.3x, r=0.85r = 0.85

1) Predict yy when x=10x = 10.

2) What is r2r^2? (two decimal places)

3) Observed y=22y = 22 when x=10x = 10. 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 Reference

ConceptWhat to know
LSRLy^=a+bx\hat{y} = a + bx; aa, bb and rr come from technology
Point of meansThe LSRL passes through (xˉ,yˉ)(\bar{x}, \bar{y}), so a=yˉ−bxˉa = \bar{y} - b\bar{x}
Least squaresThe LSRL minimizes the sum of squared residuals
r2r^2r2=r×rr^2 = r \times r, the proportion of variation in yy explained
Residualresidual =y−y^= y - \hat{y}

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 x=0x = 0 is within the data and the value makes sense.)

rr: "There is a [strong/moderate/weak], [positive/negative], linear association between [x] and [y]."

r2r^2: "[r2×100r^2 \times 100]% of the variation 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

TopicKey Takeaway
ScatterplotAlways plot data first; describe form, direction, strength, unusual features
LSRLMinimizes the sum of squared residuals; passes through (xˉ,yˉ)(\bar{x}, \bar{y})
Slope & InterceptSlope = predicted change per unit of xx; intercept = prediction at x=0x = 0 (if meaningful)
ResidualsResidual =y−y^= y - \hat{y}; positive means the model underpredicts; residual plot checks the form
rrDirection + strength of a linear association; −1≤r≤1-1 \leq r \leq 1; unit-free
r2r^2Proportion of variation explained; 0≤r2≤10 \leq r^2 \leq 1
Unusual featuresClusters and points that don't fit the pattern; describe and investigate them
ExtrapolationPredicting beyond the data — less reliable the farther you go

Decision Guide

Is the relationship linear?\text{Is the relationship linear?} ↓\downarrow Check scatterplot → Fit LSRL → Check residual plot\text{Check scatterplot → Fit LSRL → Check residual plot} ↓\downarrow Random scatter → Linear model OK\text{Random scatter → Linear model OK} Curved pattern → Linear model not the most appropriate\text{Curved pattern → Linear model not the most appropriate} ↓\downarrow Interpret: slope, r,r2 in context\text{Interpret: slope, } r, r^2 \text{ in context} ↓\downarrow Note unusual features\text{Note unusual features} ↓\downarrow Make predictions (within data range only)\text{Make predictions (within data range only)}

🔑 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 🧮

Technology gives b=1.5b = 1.5 and r=0.75r = 0.75. The means are xˉ=10\bar{x} = 10 and yˉ=25\bar{y} = 25.

1) Find the intercept aa.

2) Predict yy when x=14x = 14.

3) What is r2r^2? (two decimal places)

Concept Connections 🔍

Final Exam — Linear Regression ✅